/[MITgcm]/MITgcm_contrib/enderton/Diagnostics/DiagSlice.m
ViewVC logotype

Diff of /MITgcm_contrib/enderton/Diagnostics/DiagSlice.m

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

revision 1.3 by molod, Tue Mar 1 20:09:11 2005 UTC revision 1.4 by molod, Tue Jun 28 21:33:52 2005 UTC
# Line 102  elseif isequal(slc,'Zon') Line 102  elseif isequal(slc,'Zon')
102              data=data(:,:,1)'; xax=Ylat;   yax=ZC;   pltslc='lathgt';              data=data(:,:,1)'; xax=Ylat;   yax=ZC;   pltslc='lathgt';
103          end          end
104      elseif isequal(datasize(1:2),[length(XL),length(YL)])      elseif isequal(datasize(1:2),[length(XL),length(YL)])
105          if ismember(fln,{'U','V','uVel','vVel','fizhi_U','fizhi_V'})          if ~isequal(pst,'Lin')
106              data = squeeze(mean(data,1))'; xax=YL; yax=ZC;  pltslc='lathgt';              data = squeeze(mean(data,1))'; xax=YL; yax=ZC;  pltslc='lathgt';
         elseif ismember(fln,{'TX','TY','USTR','VSTR'})  
             data = squeeze(mean(data,1))'; xax=YL; yax=NaN; pltslc='latfld';  
107          else          else
108              error(['Unknown field for U,V type zonal average data:  ',fln]);              data = squeeze(mean(data,1))'; xax=YL; yax=NaN; pltslc='latfld';
109          end          end
110      else      else
111          error('Incorrect dimensions for slc = ''Zon''');          error('Incorrect dimensions for slc = ''Zon''');

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

  ViewVC Help
Powered by ViewVC 1.1.22