[MITgcm-devel] proposed rdmds.m modification
gael forget
gforget at mit.edu
Fri Sep 12 16:57:09 EDT 2014
Dear all,
the following modification should make rdmds.m behavior
more robust across platforms (mac,linux vs pc).
< [Dir,NAME,EXT] = fileparts(fname);
< if ~isempty(Dir); Dir=[Dir filesep]; end;
---
> NS=findstr('/',fname);
> if size(NS)>0
> Dir=fname(1:NS(end));
> else
> Dir='./';
> end
I did in this modification in the copy of rdmds.m in gcmfaces
( MITgcm_contrib/gael/matlab_class/gcmfaces_IO/rdmds.m ).
Shall we do the same to MITgcm/utils/matlab/rdmds.m ?
Gael
More information about the MITgcm-devel
mailing list