/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_IO/rdmds2gcmfaces.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/gcmfaces_IO/rdmds2gcmfaces.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Jun 21 21:18:48 2011 UTC (14 years ago) by gforget
Branch: MAIN
Changes since 1.2: +9 -12 lines
- convert2gcmfaces	remove the complicated logic (incl. fileFormat part)
			remove the nFaces argument
			get fileFormat and nFaces from mygrid.
- grid_load		remove the isempty(mygrid) test and load grid each time instead
			remove the rest of the complicated logic at the beginning
			set the list of arguments to dirGrid,nFaces,fileFormat
			add dirGrid,nFaces,fileFormat to mygrid for later use
- rdmds2gcmfaces	remove the complicated logic (incl. fileFormat part)
			remove nFaces argument accordingly
			now all arguments (varargin) are simply passed to rdmds

1 gforget 1.3 function [fldOut]=rdmds2gcmfaces(varargin);
2     %object: read with rmds then apply convert2gcmfaces
3     %input: varargin are the options to pass to rdmds (type help rdmds)
4     %output: fldOut is a gcmfaces object
5     %
6     %note: an earlier version was expecting nFaces to be passed
7     % as the last argument; this is not the case anymore.
8 gforget 1.1
9 gforget 1.3 v0=rdmds(varargin{1:end});
10     fldOut=convert2gcmfaces(v0);
11 gforget 1.1

  ViewVC Help
Powered by ViewVC 1.1.22