gcmfaces icon indicating copy to clipboard operation
gcmfaces copied to clipboard

removed trailing * in rdmds calls

Open emmomp opened this issue 4 years ago • 0 comments

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.

emmomp avatar Nov 03 '20 11:11 emmomp