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

removed trailing * in rdmds calls #14

Closed emmomp closed 4 months ago

emmomp commented 3 years ago

The trailing wildcard characters '*' in calls to rdmds and rdmds2gcmfaces cause the following error in new versions of Matlab:

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

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

rdmds adds a trailing to fname, so if fname already contains a this causes the above error as ** has a specific meaning in newer Matlab versions.

The fix is to simply remove the wildcards in any calls to rdmds or rdmds2gcmfaces.