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

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

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

revision 1.1 by gforget, Wed Feb 10 14:46:49 2010 UTC revision 1.3 by gforget, Tue Jun 21 21:18:48 2011 UTC
# Line 1  Line 1 
1  function [fldOut]=rdmds2gcmfaces(fileName,varargin);  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    
9  if nargin==3; tt=varargin{1}; nFaces=varargin{2};  v0=rdmds(varargin{1:end});
10  elseif nargin==2; tt=varargin{1}; nFaces=5;  fldOut=convert2gcmfaces(v0);
 else; tt=[]; nFaces=5;  
 end;  
   
 if ~isempty(tt); v0=rdmds(fileName,tt); else; v0=rdmds(fileName); end;  
   
 fldOut=convert2gcmfaces(v0,nFaces);  
11    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22