/[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.2 by enderton, Wed Feb 2 15:38:21 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,slc,pst,...
152                           LoadGridData,DiagDebug,GridSuffixTemp,ZcordFileTemp,...                           LoadGridData,DiagDebug,GridSuffixTemp,ZcordFileTemp,...
153                           IndexTemp,DimTemp,GradsTemp,Year0IterTemp,MonthsTemp);                           IndexTemp,DimTemp,GradsTemp,Year0IterTemp,MonthsTemp);
154  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Line 156  if LoadData Line 156  if LoadData
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

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

  ViewVC Help
Powered by ViewVC 1.1.22