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

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

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

revision 1.1 by enderton, Mon Jan 31 15:43:27 2005 UTC revision 1.4 by molod, Fri Apr 29 17:34:39 2005 UTC
# Line 108  if LoadData Line 108  if LoadData
108      %              Load data (calls DiagAverage and DiagSlice             %      %              Load data (calls DiagAverage and DiagSlice             %
109      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
110      for inplot = 1:nplot      for inplot = 1:nplot
111          nexp = length(page{inplot}); if nexp ~= 1, nexp = nexp - 1; end          ntrl = length(page{inplot}); if ntrl ~= 1, ntrl = ntrl - 1; end
112          for inexp = 1:nexp          for intrl = 1:ntrl
113              ExpInfo = page{inplot}{inexp};              ExpInfo = page{inplot}{intrl};
114                            
115              % Required Fields.              % Required Fields.
116                          fln = ExpInfo{ifln};  % FieldName    (Required)                          fln = ExpInfo{ifln};  % FieldName    (Required)
117                          exp = ExpInfo{iexp};  % Experiment   (Required)                          trl = ExpInfo{itrl};  % Experiment   (Required)
118                          dat = ExpInfo{idat};  % DataType     (Required)                          dat = ExpInfo{idat};  % DataType     (Required)
119                          dad = ExpInfo{idad};  % DataDir      (Required)                          dad = ExpInfo{idad};  % DataDir      (Required)
120                          grd = ExpInfo{igrd};  % GridDir      (Required)                          grd = ExpInfo{igrd};  % GridDir      (Required)
# Line 144  if LoadData Line 144  if LoadData
144                            
145    
146              % Make DiagLoad function call.              % Make DiagLoad function call.
147              disp(['Loading - Experiment:  ',exp,';  Field:  ',fln]);              disp(['Loading - Experiment:  ',trl,';  Field:  ',fln]);
148              [data{inplot}{inexp}, xax{inplot}{inexp},...              [data{inplot}{intrl}, xax{inplot}{intrl},...
149                yax{inplot}{inexp},time{inplot}{inexp},...                yax{inplot}{intrl},time{inplot}{intrl},...
150                pltslc{inplot}{inexp}] = ...                pltslc{inplot}{intrl}] = ...
151                  DiagLoad(fln,exp,dat,dad,grd,itr,tst,flu,ddf,gdf,avg,slc,pst,...                  DiagLoad(fln,trl,dat,dad,grd,itr,tst,flu,ddf,gdf,avg,...
152                           LoadGridData,DiagDebug,GridSuffixTemp,ZcordFileTemp,...                           slc,pst,LoadGridData,DiagDebug,GridSuffixTemp,...
153                           IndexTemp,DimTemp,GradsTemp,Year0IterTemp,MonthsTemp);                           ZcordFileTemp,IndexTemp,DimTemp,GradsTemp,...
154  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                           Year0IterTemp,SecPerYearTemp,MonthsTemp);
155  %                             Function body                               %  
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
156              % Save panel data for outside use.              % Save panel data for outside use.
157              if DumpData              if DumpData
158                  datadump = data{inplot}{inexp};                  datadump = data{inplot}{intrl};
159                  xaxdump = xax{inplot}{inexp};                  xaxdump = xax{inplot}{intrl};
160                  yaxdump = yax{inplot}{inexp};                  yaxdump = yax{inplot}{intrl};
161                  timedump = time{inplot}{inexp};                  timedump = time{inplot}{intrl};
162                  pltslcdump = pltslc{inplot}{inexp};                  pltslcdump = pltslc{inplot}{intrl};
163                  save(['Data',pagename,fln,flu,'.mat'],'datadump',...                  save(['Data',pagename,fln,flu,'.mat'],'datadump',...
164                       'xaxdump','yaxdump','timedump','pltslcdump');                       'xaxdump','yaxdump','timedump','pltslcdump');
165              end              end

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

  ViewVC Help
Powered by ViewVC 1.1.22