/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/MITprof_subset.m
ViewVC logotype

Diff of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/MITprof_subset.m

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

revision 1.4 by gforget, Tue Dec 11 19:06:35 2012 UTC revision 1.5 by gforget, Sun Jun 2 16:48:20 2013 UTC
# Line 45  for iSub=1:nSub; Line 45  for iSub=1:nSub;
45              tmp1=tmp1(KK);              tmp1=tmp1(KK);
46          elseif strcmp('depth',varargin{(iSub-1)*2+1});          elseif strcmp('depth',varargin{(iSub-1)*2+1});
47              if size(tmp1,2)==length(MITprof.prof_depth); tmp1=tmp1(:,KK); end;              if size(tmp1,2)==length(MITprof.prof_depth); tmp1=tmp1(:,KK); end;
48          else;          elseif ~strcmp(fldNames{iFld},'prof_depth');;
49              if size(tmp1,1)==size(prof_sub,1); tmp1=tmp1(KK,:); end;              if size(tmp1,1)==size(prof_sub,1); tmp1=tmp1(KK,:); end;
50          end;          end;
51          eval(['MITprofSub.' fldNames{iFld} '=tmp1;']);          eval(['MITprofSub.' fldNames{iFld} '=tmp1;']);

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

  ViewVC Help
Powered by ViewVC 1.1.22