[MITgcm-support] visualizing some output in matlab

MARIO DURAN CAMEJO mdcamejo at ing.uc3m.es
Thu Jan 29 09:54:26 EST 2015


Thanks to you too, Martin!

Mario

2015-01-29 15:51 GMT+01:00 Martin Losch <Martin.Losch at awi.de>:

> The matlab function rdmds/rdmeta and rdmnc (for netcdf) are in utils/matlab
>
> help rdmds should get you started. Adding to Dustin’s instruction:
>
> A = rdmds(‘U’,1111);
>
> should also do it.
> M.
>
> > On 29 Jan 2015, at 15:51, Dustin Carroll <dcarroll at uoregon.edu> wrote:
> >
> > Hi Mario,
> >
> > After you run your model you will have either *.meta & *.data or *.nc
> files (netCDF) depending on what output type you specified.
> >
> > To load the meta/data files you can use
> >
> > A = RDMDS(fileName)
> >
> > where fileName is a string containing the “header” for the file name
> >
> > i.e., if your file is U.000001111.000.000.meta, fileName is ‘000001111’
> >
> > You’ll want to make sure that the current working directory in Matlab is
> set to where your MITgcm *.meta & *.data files are too,
> >
> > cd(myDirectory)
> > A = RDMDS(‘000001111’);
> >
> > where myDirectory is the path to your folder
> >
> > Cheers,
> > Dustin
> >
> >
> >
> > 12    %   A = RDMDS(FNAME) reads data described by meta/data file format.
> > 13    %   FNAME is a string containing the "head" of the file names.
> > 14    %
> > 15    %   eg. To load the meta-data files
> > 16    %       T.0000002880.000.000.meta, T.0000002880.000.000.data
> > 17    %       T.0000002880.001.000.meta, T.0000002880.001.000.data
> > 18    %       T.0000002880.002.000.meta, T.0000002880.002.000.data
> > 19    %       T.0000002880.003.000.meta, T.0000002880.003.000.data
> > 20    %   use
> > 21    %      >> A=rdmds('T.0000002880');
> >
> >
> >
> >> On Jan 29, 2015, at 6:36 AM, MARIO DURAN CAMEJO <mdcamejo at ing.uc3m.es>
> wrote:
> >>
> >> rdmds
> >
> > _______________________________________________
> > MITgcm-support mailing list
> > MITgcm-support at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>



-- 
MARIO DURAN CAMEJO
Universidad Carlos III de Madrid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20150129/b11eef95/attachment.htm>


More information about the MITgcm-support mailing list