MITgcm / gcmfaces

gcmfaces is a Matlab / Octave toolbox that handles gridded earth variables in generic fashion. Read more at:
http://gcmfaces.readthedocs.io/en/latest/
MIT License
24 stars 21 forks source link

grid_load error using Matlab 2018b #5

Closed DaniJonesOcean closed 5 years ago

DaniJonesOcean commented 5 years ago

Hi Gael,

I ran into the following error using Matlab 2018b Update 2 with a fresh copy of gcmfaces that I downloaded yesterday (12 Feb). I got this error both on MacOS (10.14.2) and a Unix HPC system.

I do not get this error with Matlab 2014b.

Error using dir
Characters adjacent to a ** wildcard must be file separators.

Error in rdmds (line 149)
allfiles=dir( sprintf('%s*.meta',fname) );

Error in rdmds2gcmfaces (line 11)
v0=rdmds(varargin{1:end});

Error in grid_load (line 130)
      eval(['mygrid.' list0{iFld} '=rdmds2gcmfaces([mygrid.dirGrid
      ''' list0{iFld} '*'']);']);

Error in animate_subducted_tracer_cuts (line 33)
grid_load(gloc,5,'compact',1);
DaniJonesOcean commented 5 years ago

I also tried removing the fourth argument "1" from grid_load, but this did not get rid of the error.

DaniJonesOcean commented 5 years ago

I downloaded a fresh copy of gcmfaces (11 Mar), and I'm happy to report that this error no longer occurs.

DaniJonesOcean commented 5 years ago

Note: I discovered that my installation was trying to call an out-of-date version of "rdmds" that was not part of gcmfaces. So this was not a gcmfaces issue after all. Once I deleted the out-of-date "rdmds.m" file, Matlab was able to find the correct version of the function and was able to properly load my data files.