/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_diags/diags_set_F.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/gcmfaces_diags/diags_set_F.m

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


Revision 1.10 - (hide annotations) (download)
Sun Feb 7 14:15:04 2016 UTC (9 years, 5 months ago) by gforget
Branch: MAIN
Changes since 1.9: +30 -63 lines
- revise handling of inputs and outputs

1 gforget 1.8
2 gforget 1.1 %select kBudget:
3     if ~isempty(setDiagsParams);
4     kBudget=setDiagsParams{1};
5     else;
6     kBudget=1;
7     end;
8    
9     %override default file name:
10     %---------------------------
11     tmp1=setDiags;
12     if kBudget>1;
13     tmp1=sprintf('F%02i',kBudget);
14     end;
15     fileMat=['diags_set_' tmp1];
16    
17     if userStep==1;%diags to be computed
18     listDiags=['glo_vol_ocn glo_vol_tot glo_vol_ice glo_bp'];
19 gforget 1.3 listDiags=[listDiags ' glo_heat_ocn glo_heat_tot glo_heat_ice'];
20     listDiags=[listDiags ' glo_salt_ocn glo_salt_tot glo_salt_ice'];
21     if sum([90 1170]~=mygrid.ioSize)==0;
22 gforget 1.1 listDiags=[listDiags ' gsbox_vol_ocn gsbox_vol_tot gsbox_vol_ice gsbox_bp'];
23     listDiags=[listDiags ' arctic_vol_ocn arctic_vol_tot arctic_vol_ice arctic_bp'];
24     listDiags=[listDiags ' gsbox_heat_ocn gsbox_heat_tot gsbox_heat_ice'];
25     listDiags=[listDiags ' arctic_heat_ocn arctic_heat_tot arctic_heat_ice'];
26     listDiags=[listDiags ' gsbox_salt_ocn gsbox_salt_tot gsbox_salt_ice'];
27     listDiags=[listDiags ' arctic_salt_ocn arctic_salt_tot arctic_salt_ice'];
28 gforget 1.3 end;
29 gforget 1.1
30     elseif userStep==2;%input files and variables
31 gforget 1.7 listFlds={ 'ETAN','SIheff','SIhsnow','THETA ','SALT ','PHIBOT','geothFlux'};
32 gforget 1.1 listFlds={listFlds{:},'SIatmFW ','oceFWflx','SItflux','TFLUX','SFLUX','oceSPflx','SRELAX'};
33     listFlds={listFlds{:},'oceQnet ','SIatmQnt','SIaaflux','SIsnPrcp','SIacSubl'};
34     listFlds={listFlds{:},'TRELAX','WTHMASS','WSLTMASS','oceSflux','oceQsw','oceSPtnd'};
35     if kBudget>1;
36     listFlds={listFlds{:},'ADVr_TH','DFrE_TH','DFrI_TH','ADVr_SLT','DFrE_SLT','DFrI_SLT','WVELMASS'};
37     end;
38     listFlds={listFlds{:},'SDIAG1','SDIAG2','SDIAG3'};
39     listFlds={listFlds{:},'UVELMASS','VVELMASS','AB_gT','AB_gS'};
40     listFlds={listFlds{:},'ADVx_TH ','ADVy_TH ','DFxE_TH ','DFyE_TH '};
41     listFlds={listFlds{:},'ADVx_SLT','ADVy_SLT','DFxE_SLT','DFyE_SLT'};
42     listFlds={listFlds{:},'ADVxHEFF','ADVyHEFF','DFxEHEFF','DFyEHEFF'};
43     listFlds={listFlds{:},'ADVxSNOW','ADVySNOW','DFxESNOW','DFyESNOW'};
44     listFldsNames=deblank(listFlds);
45     %
46     listFiles={'rate_budg2d_snap_set1','budg2d_hflux_set1','budg2d_zflux_set1','budg2d_zflux_set2'};
47     if kBudget==1;
48 gforget 1.8 listFiles={listFiles{:},'rate_budg2d_snap_set2','budg2d_hflux_set2','geothermalFlux'};
49 gforget 1.1 else;
50     tmp1=sprintf('rate_budg2d_snap_set3_%02i',kBudget);
51     tmp2=sprintf('budg2d_zflux_set3_%02i',kBudget);
52     tmp3=sprintf('budg2d_hflux_set3_%02i',kBudget);
53 gforget 1.7 tmp4=sprintf('geothermalFlux_%02i',kBudget);
54     listFiles={listFiles{:},tmp1,tmp2,tmp3,tmp4};
55 gforget 1.1 end;
56 gforget 1.6 listSubdirs={[dirMat 'BUDG/' ],[dirMat '../BUDG/' ],[dirModel 'diags/BUDG/'],[dirModel 'diags/']};
57 gforget 1.1
58     elseif userStep==3;%computational part;
59    
60     %preliminary tests
61     test1=isempty(dir([dirModel 'diags/BUDG/budg2d_snap_set1*']));
62     test2=isempty(dir([dirMat 'BUDG/rate_budg2d_snap_set1*']))&...
63     isempty(dir([dirMat '../BUDG/rate_budg2d_snap_set1*']));
64    
65     if (strcmp(setDiags,'F')&test1&test2);
66     fprintf('\n abort : global and regional budgets, due to missing \n');
67     fprintf(['\n ' dirModel 'diags/BUDG/budg2d_snap_set1* \n']);
68     return;
69     end;
70    
71     if (strcmp(setDiags,'F')&test2);
72     fprintf('\n abort : global and regional budgets, due to missing \n');
73     fprintf(['\n ' dirModel 'diags/BUDG/rate_budg2d_snap_set1* \n']);
74     return;
75     end;
76    
77     %override default file name:
78     %---------------------------
79     tmp1=setDiags;
80     if kBudget>1;
81     tmp1=sprintf('F%02i',kBudget);
82     end;
83     fileMat=['diags_set_' tmp1 '_' num2str(tt) '.mat'];
84    
85     %fill in optional fields:
86     %------------------------
87     if isempty(who('TRELAX')); TRELAX=0*mygrid.XC; end;
88     if isempty(who('SRELAX')); SRELAX=0*mygrid.XC; end;
89     if isempty(who('AB_gT')); AB_gT=0*mygrid.XC; end;
90     if isempty(who('AB_gS')); AB_gS=0*mygrid.XC; end;
91     if isempty(who('oceSPtnd')); oceSPtnd=0*mygrid.XC; end;
92     if isempty(who('oceSPflx')); oceSPflx=0*mygrid.XC; end;
93     if isempty(who('PHIBOT')); PHIBOT=0*mygrid.XC; end;
94 gforget 1.7 if isempty(who('geothFlux')); geothFlux=0; end;
95 gforget 1.1
96     %aliases from development phase (applies to 2012 core runs)
97     %---------------------------------------------------------
98     if ~isempty(who('SDIAG1')); SRELAX=SDIAG1; end;
99     if ~isempty(who('SDIAG2')); SIatmFW=SDIAG2; end;
100     if ~isempty(who('SDIAG3')); SItflux=SDIAG3; end;
101    
102    
103     %=======MASS=========
104    
105 gforget 1.10 [budgMo,budgMi,budgMoi]=calc_budget_mass(kBudget);
106 gforget 1.7
107 gforget 1.1 %bottom pressure for comparison:
108     bp=myparms.rhoconst/9.81*PHIBOT;
109    
110     %compute global integrals:
111     %-------------------------
112     msk=mygrid.mskC(:,:,kBudget);
113 gforget 1.10 glo_vol_tot=calc_budget_mean_mask(budgMo,msk);
114     glo_vol_ocn=calc_budget_mean_mask(budgMo,msk);
115     glo_vol_ice=calc_budget_mean_mask(budgMi,msk);
116 gforget 1.1 glo_bp=nansum(bp.*msk.*mygrid.RAC)/nansum(msk.*mygrid.RAC);
117 gforget 1.3
118     if sum([90 1170]~=mygrid.ioSize)==0;
119 gforget 1.1 %compute gsboxern hemisphere integrals:
120 gforget 1.5 msk=mygrid.mskC(:,:,kBudget).*v4_basin('atl').*(mygrid.YC>=26&mygrid.YC<=45);
121 gforget 1.10 gsbox_vol_tot=calc_budget_mean_mask(budgMo,msk);
122     gsbox_vol_ocn=calc_budget_mean_mask(budgMo,msk);
123     gsbox_vol_ice=calc_budget_mean_mask(budgMi,msk);
124 gforget 1.1 gsbox_bp=nansum(bp.*msk.*mygrid.RAC)/nansum(msk.*mygrid.RAC);
125    
126     %and arcticern hemisphere integrals:
127     msk=mygrid.mskC(:,:,kBudget).*v4_basin('arct');
128 gforget 1.10 arctic_vol_tot=calc_budget_mean_mask(budgMo,msk);
129     arctic_vol_ocn=calc_budget_mean_mask(budgMo,msk);
130     arctic_vol_ice=calc_budget_mean_mask(budgMi,msk);
131 gforget 1.1 arctic_bp=nansum(bp.*msk.*mygrid.RAC)/nansum(msk.*mygrid.RAC);
132 gforget 1.3 end;
133 gforget 1.1
134     %=======HEAT=======
135    
136 gforget 1.10 [budgHo,budgHi,budgHoi]=calc_budget_heat(kBudget);
137 gforget 1.7
138 gforget 1.1 %compute global integrals:
139     %-------------------------
140     msk=mygrid.mskC(:,:,kBudget);
141 gforget 1.10 glo_heat_tot=calc_budget_mean_mask(budgHo,msk);
142     glo_heat_ocn=calc_budget_mean_mask(budgHo,msk);
143     glo_heat_ice=calc_budget_mean_mask(budgHi,msk);
144 gforget 1.1
145 gforget 1.3 if sum([90 1170]~=mygrid.ioSize)==0;
146 gforget 1.1 %compute gsboxern hemisphere integrals:
147 gforget 1.5 msk=mygrid.mskC(:,:,kBudget).*v4_basin('atl').*(mygrid.YC>=26&mygrid.YC<=45);
148 gforget 1.10 gsbox_heat_tot=calc_budget_mean_mask(budgHo,msk);
149     gsbox_heat_ocn=calc_budget_mean_mask(budgHo,msk);
150     gsbox_heat_ice=calc_budget_mean_mask(budgHi,msk);
151 gforget 1.1
152     %and arcticern hemisphere integrals:
153     msk=mygrid.mskC(:,:,kBudget).*v4_basin('arct');
154 gforget 1.10 arctic_heat_tot=calc_budget_mean_mask(budgHo,msk);
155     arctic_heat_ocn=calc_budget_mean_mask(budgHo,msk);
156     arctic_heat_ice=calc_budget_mean_mask(budgHi,msk);
157 gforget 1.3 end;
158 gforget 1.1
159     %=======SALT=======
160    
161 gforget 1.10 [budgSo,budgSi,budgSoi]=calc_budget_salt(kBudget);
162 gforget 1.7
163 gforget 1.1 %compute global integrals:
164     %-------------------------
165     msk=mygrid.mskC(:,:,kBudget);
166 gforget 1.10 glo_salt_tot=calc_budget_mean_mask(budgSo,msk);
167     glo_salt_ocn=calc_budget_mean_mask(budgSo,msk);
168     glo_salt_ice=calc_budget_mean_mask(budgSi,msk);
169 gforget 1.3
170     if sum([90 1170]~=mygrid.ioSize)==0;
171 gforget 1.1 %compute gsboxern hemisphere integrals:
172 gforget 1.5 msk=mygrid.mskC(:,:,kBudget).*v4_basin('atl').*(mygrid.YC>=26&mygrid.YC<=45);
173 gforget 1.10 gsbox_salt_tot=calc_budget_mean_mask(budgSo,msk);
174     gsbox_salt_ocn=calc_budget_mean_mask(budgSo,msk);
175     gsbox_salt_ice=calc_budget_mean_mask(budgSi,msk);
176 gforget 1.1
177     %and arcticern hemisphere integrals:
178     msk=mygrid.mskC(:,:,kBudget).*v4_basin('arct');
179 gforget 1.10 arctic_salt_tot=calc_budget_mean_mask(budgSo,msk);
180     arctic_salt_ocn=calc_budget_mean_mask(budgSo,msk);
181     arctic_salt_ice=calc_budget_mean_mask(budgSi,msk);
182 gforget 1.3 end;
183 gforget 1.1
184     %===================== COMPUTATIONAL SEQUENCE ENDS =========================%
185     %===================== PLOTTING SEQUENCE BEGINS =========================%
186    
187 gforget 1.3 elseif userStep==-1&multiBasins==1;%plotting
188 gforget 1.1
189     if isempty(setDiagsParams);
190     choicePlot={'all'};
191     elseif isnumeric(setDiagsParams{1})&length(setDiagsParams)==1;
192     choicePlot={'all'};
193     elseif isnumeric(setDiagsParams{1});
194     choicePlot={setDiagsParams{2:end}};
195     else;
196     choicePlot=setDiagsParams;
197     end;
198    
199     tt=[1:length(alldiag.listTimes)];
200     TT=alldiag.listTimes(tt);
201     nt=length(TT);
202    
203     if (kBudget==1)&(sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'mass')));
204    
205     %1.1) ocean+seaice mass budgets
206     %------------------------------
207     figureL;
208     %global volume budget:
209     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_vol_tot,'kg/m2','Global Mean Mass (incl. ice)');
210     %add bp:
211     dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.glo_bp);
212     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
213     %gsboxern hemisphere budget:
214 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_vol_tot,'kg/m2','Gulf Stream Box Mass (incl. ice)');
215 gforget 1.1 %add bp:
216     dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.gsbox_bp);
217     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
218     %arcticern hemisphere budget:
219 gforget 1.3 subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_vol_tot,'kg/m2','Arctic Mass (incl. ice)');
220 gforget 1.1 %add bp:
221     dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.arctic_bp);
222     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
223     %add to tex file
224     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
225     myCaption={myCaption{:},'mass budget (ocean+ice) in kg/m2.'};
226     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
227    
228     %1.2) ice mass budgets
229     %---------------------
230     figureL;
231     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_vol_ice,'kg/m2','Global Mean Mass (only ice)');
232     dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.glo_bp);
233     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
234 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_vol_ice,'kg/m2','Gulf Stream Box Mass (only ice)');
235 gforget 1.1 dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.gsbox_bp);
236     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
237 gforget 1.3 subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_vol_ice,'kg/m2','Arctic Mass (only ice)');
238 gforget 1.1 dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.arctic_bp);
239     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
240     %add to tex file
241     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
242     myCaption={myCaption{:},'mass budget (ice only) in kg/m2.'};
243     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
244    
245     end;
246    
247     if (sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'mass')));
248    
249     %1.3) ocean mass budgets
250     %-----------------------
251     figureL;
252     %global volume budget:
253     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_vol_ocn,'kg/m2','Global Mean Mass (only ocean)');
254     dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.glo_bp);
255     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
256 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_vol_ocn,'kg/m2','Gulf Stream Box Mass (only ocean)');
257 gforget 1.1 dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.gsbox_bp);
258     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
259 gforget 1.3 subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_vol_ocn,'kg/m2','Arctic Mass (only ocean)');
260 gforget 1.1 dt=median(diff(TT))*86400; bp=dt*cumsum(alldiag.arctic_bp);
261     plot(TT,bp,'k'); aa=legend; bb=get(aa,'String'); bb={bb{:},'bp'}; legend(bb,'Orientation','horizontal');
262     %add to tex file
263     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
264     myCaption={myCaption{:},'mass budget (ocean only) in kg/m2.'};
265     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
266    
267     end;
268    
269     if (kBudget==1)&(sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'heat')));
270    
271     %2.1) ocean+seaice heat budgets
272     %------------------------------
273     figureL;
274     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_heat_tot,'J/m2','Global Mean Ocean Heat (incl. ice)');
275 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_heat_tot,'J/m2','Gulf Stream Box Ocean Heat (incl. ice)');
276     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_heat_tot,'J/m2','Arctic Ocean Heat (incl. ice)');
277 gforget 1.1 %add to tex file
278     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
279     myCaption={myCaption{:},'heat budget (ocean+ice) in J/m2.'};
280     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
281    
282     %2.2) ice heat budgets
283     %---------------------
284     figureL;
285     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_heat_ice,'J/m2','Global Mean Ocean Heat (only ice)');
286 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_heat_ice,'J/m2','Gulf Stream Box Ocean Heat (only ice)');
287     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_heat_ice,'J/m2','Arctic Ocean Heat (only ice)');
288 gforget 1.1 %add to tex file
289     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
290     myCaption={myCaption{:},'heat budget (ice only) in J/m2.'};
291     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
292    
293     end;
294    
295     if (sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'heat')));
296    
297     %2.3) ocean heat budgets
298     %-----------------------
299     figureL;
300     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_heat_ocn,'J/m2','Global Mean Ocean Heat (only ocean)');
301 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_heat_ocn,'J/m2','Gulf Stream Box Ocean Heat (only ocean)');
302     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_heat_ocn,'J/m2','Arctic Ocean Heat (only ocean)');
303 gforget 1.1 %add to tex file
304     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
305     myCaption={myCaption{:},'heat budget (ocean only) in J/m2.'};
306     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
307    
308     end;
309    
310     if (kBudget==1)&(sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'salt')));
311    
312     %3.1) ocean+seaice salt budgets
313     %------------------------------
314     figureL;
315     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_salt_tot,'g/m2','Global Mean Ocean Salt (incl. ice)');
316 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_salt_tot,'g/m2','Gulf Stream Box Ocean Salt (incl. ice)');
317     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_salt_tot,'g/m2','Arctic Ocean Salt (incl. ice)');
318 gforget 1.1 %add to tex file
319     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
320     myCaption={myCaption{:},'salt budget (ocean+ice) in g/m2.'};
321     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
322    
323     %2.2) ice salt budgets
324     %---------------------
325     figureL;
326     subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_salt_ice,'g/m2','Global Mean Ocean Salt (only ice)');
327 gforget 1.3 subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_salt_ice,'g/m2','Gulf Stream Box Ocean Salt (only ice)');
328     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_salt_ice,'g/m2','Arctic Ocean Salt (only ice)');
329 gforget 1.1 %add to tex file
330     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
331     myCaption={myCaption{:},'salt budget (ice only) in g/m2.'};
332     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
333    
334     end;
335    
336    
337     if (sum(strcmp(choicePlot,'all'))|sum(strcmp(choicePlot,'salt')));
338    
339     %3.3) ocean salt budgets
340     %-----------------------
341     figureL;
342 gforget 1.4 subplot(3,1,1); disp_budget_mean_mask(TT,alldiag.glo_salt_ocn,'g/m2','Global Mean Ocean Salt (only ocean)');
343     subplot(3,1,2); disp_budget_mean_mask(TT,alldiag.gsbox_salt_ocn,'g/m2','Gulf Stream Box Ocean Salt (only ocean)');
344     subplot(3,1,3); disp_budget_mean_mask(TT,alldiag.arctic_salt_ocn,'g/m2','Arctic Ocean Salt (only ocean)');
345 gforget 1.1 %add to tex file
346     myCaption={myYmeanTxt,' global (upper) gsbox (mid) and arctic (lower), '};
347     myCaption={myCaption{:},'salt budget (ocean only) in g/m2.'};
348     if addToTex&multiTimes; write2tex(fileTex,2,myCaption,gcf); elseif ~multiTimes; close; end;
349    
350     end;
351    
352     end;

  ViewVC Help
Powered by ViewVC 1.1.22