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

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

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

revision 1.4 by gforget, Tue Feb 3 16:29:09 2015 UTC revision 1.5 by gforget, Wed Feb 4 11:41:30 2015 UTC
# Line 85  end; Line 85  end;
85    
86  if choiceStruct==3;  if choiceStruct==3;
87    
88    budgName='budgHo';    %budgName='budgHo';
89    
90    if budgName(end)=='o'; listFlds={'tend','trU','trV','trWtop'};    if budgName(end)=='o'; listFlds={'tend','trU','trV','trWtop'};
91    else; listFlds={'tend','trU','trV','trWtop','trWbot'};    else; listFlds={'tend','trU','trV','trWtop','trWbot'};
# Line 123  if choiceStruct==3; Line 123  if choiceStruct==3;
123        fldName='trW';        fldName='trW';
124      end;      end;
125    
126        %switch back to upward convention
127        if strcmp(fldName(1:3),'trW');
128          tmp1=getfield(structIn.vars,fldName);
129          structIn.vars=setfield(structIn.vars,fldName,-tmp1);
130        end;
131    
132      %general description      %general description
133      tmp1=diags_read_from_mat(dirMat,fileMat,'specs',1);      tmp1=diags_read_from_mat(dirMat,fileMat,'specs',1);
134      specs=tmp1.specs;      specs=tmp1.specs;
# Line 143  if choiceStruct==3; Line 149  if choiceStruct==3;
149      case 'tend'; vars(nv).longName='tendency term';      case 'tend'; vars(nv).longName='tendency term';
150      case 'trU'; vars(nv).longName='horizontal transport (U)';      case 'trU'; vars(nv).longName='horizontal transport (U)';
151      case 'trV'; vars(nv).longName='horizontal transport (V)';      case 'trV'; vars(nv).longName='horizontal transport (V)';
152      case 'trW'; vars(nv).longName='vertical transport (W)';      case 'trW'; vars(nv).longName='upward vertical transport (W)';
153      case 'trWtop'; vars(nv).longName='vertical transport (W)';      case 'trWtop'; vars(nv).longName='upward vertical transport (W)';
154      case 'trWbot'; vars(nv).longName='vertical transport (W)';      case 'trWbot'; vars(nv).longName='upward vertical transport (W)';
155      end;      end;
156      nv=length(vars)+1;      nv=length(vars)+1;
157      vars(nv).fldName='t0'; vars(nv).longName='initial time'; vars(nv).units='s'; nv=length(vars)+1;      vars(nv).fldName='t0'; vars(nv).longName='initial time'; vars(nv).units='s'; nv=length(vars)+1;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22