Next: 3.7 Tutorials
Up: 3.6 Running MITgcm
Previous: 3.6.1 Output files
Contents
The ``traditional'' or mdsio model data are written according to a
``meta/data'' file format. Each variable is associated with two files
with suffix names .data and .meta. The
.data file contains the data written in binary form
(big_endian by default). The .meta file is a ``header'' file
that contains information about the size and the structure of the
.data file. This way of organizing the output is particularly
useful when running multi-processors calculations. The base version of
the model includes a few matlab utilities to read output files written
in this format. The matlab scripts are located in the directory
utils/matlab under the root tree. The script rdmds.m
reads the data. Look at the comments inside the script to see how to
use it.
Some examples of reading and visualizing some output in Matlab:
% matlab
>> H=rdmds('Depth');
>> contourf(H');colorbar;
>> title('Depth of fluid as used by model');
>> eta=rdmds('Eta',10);
>> imagesc(eta');axis ij;colorbar;
>> title('Surface height at iter=10');
>> eta=rdmds('Eta',[0:10:100]);
>> for n=1:11; imagesc(eta(:,:,n)');axis ij;colorbar;pause(.5);end
Similar scripts for netCDF output (rdmnc.m) are available.
mitgcm-support@dev.mitgcm.org
Copyright © 2002
Massachusetts Institute of Technology |
|
|