/[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.5 by molod, Tue Jun 28 21:33:51 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,VectorTemp,MateTemp,...
154  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                           GradsTemp,Year0IterTemp,SecPerYearTemp,MonthsTemp,...
155  %                             Function body                               %                           FieldNameTemp);
156  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
157              % Save panel data for outside use.              % Save panel data for outside use.
158              if DumpData              if DumpData
159                  datadump = data{inplot}{inexp};                  datadump = data{inplot}{intrl};
160                  xaxdump = xax{inplot}{inexp};                  xaxdump = xax{inplot}{intrl};
161                  yaxdump = yax{inplot}{inexp};                  yaxdump = yax{inplot}{intrl};
162                  timedump = time{inplot}{inexp};                  timedump = time{inplot}{intrl};
163                  pltslcdump = pltslc{inplot}{inexp};                  pltslcdump = pltslc{inplot}{intrl};
164                  save(['Data',pagename,fln,flu,'.mat'],'datadump',...                  save(['Data',pagename,fln,flu,'.mat'],'datadump',...
165                       'xaxdump','yaxdump','timedump','pltslcdump');                       'xaxdump','yaxdump','timedump','pltslcdump');
166              end              end
# Line 182  end Line 182  end
182  % scripts will help you to make sense of this as needed.  % scripts will help you to make sense of this as needed.
183  disp(['Plotting results:']);  disp(['Plotting results:']);
184  DiagPlot(pagename,page,data,xax,yax,time,pltslc,...  DiagPlot(pagename,page,data,xax,yax,time,pltslc,...
          OutputDir,LoadGridData,SavePlots,DiagDebug);  
185             OutputDir,LoadGridData,SavePlots,DiagDebug);

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

  ViewVC Help
Powered by ViewVC 1.1.22