gcmfaces
gcmfaces copied to clipboard
removed trailing * in rdmds calls
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.