[MITgcm-support] rdmeta.m

Martin Losch martin.losch at awi.de
Thu Mar 9 03:16:26 EST 2017


Hi Byungho,

as far as I know, you are not supposed to use rdmeta.m, instead you use rdmds.m to read the *.data files, and rdmds uses rdmeta to get the number of grid points, etc, from the correpsonding *.meta files. I never encountered any problems with this.

Martin

> On 8 Mar 2017, at 23:50, Byungho Lim <blim at coas.oregonstate.edu> wrote:
> 
> Dear all,
> 
> I recently started learning MITgcm myself and, I think, there is a minor bug in rdmeta.m. I tried to read some meta files with the function and got an error message as follows:
> 
> Undefined function or variable 'ans'.
> 
> Error in rdmeta (line 62)
> allfiles=ans;
> 
> I guess this line could fix the issue with line 62.
> eval(['allfiles=ls(' char(39) fname '*.meta' char(39) ');']);
> 
> Regards,
> Byungho
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list