1 |
prefix='dynStD'; |
prefix='dynStD'; |
2 |
namA={'r16b','r17a'}; |
namA={'g02','b02'}; |
3 |
%namA={'r17a'}; |
%namA={'r17a'}; |
4 |
Nexp=size(namA,2); |
Nexp=size(namA,2); |
5 |
%- |
%- |
|
%namA(2)={'r16a'}; |
|
6 |
|
|
7 |
% $Header$ |
% $Header$ |
8 |
% $Name$ |
% $Name$ |
56 |
fprintf('save to "sav_StD.mat" file ...'); |
fprintf('save to "sav_StD.mat" file ...'); |
57 |
save('sav_StD.mat','vvA','tiA','ntA','rList','listV'); |
save('sav_StD.mat','vvA','tiA','ntA','rList','listV'); |
58 |
fprintf(' done\n') |
fprintf(' done\n') |
59 |
end |
end |
60 |
elseif krd < 0, |
elseif krd < 0, |
61 |
fprintf('load from "sav_StD.mat" file ...'); |
fprintf('load from "sav_StD.mat" file ...'); |
62 |
load sav_StD |
load sav_StD |
84 |
list_on=zeros(1,nbV); |
list_on=zeros(1,nbV); |
85 |
nbG=8; |
nbG=8; |
86 |
nbG=min(nbG,nbV); list_on(1:nbG)=1 ; |
nbG=min(nbG,nbV); list_on(1:nbG)=1 ; |
87 |
|
%if nbG < nbV, list_on=0; list_on(nbG:nbV)=1; end %- to get 2nd set of plots |
88 |
%list_on(1:6)=[1 1 1 1 1 1]; |
%list_on(1:6)=[1 1 1 1 1 1]; |
89 |
|
|
90 |
isA=ones(1,Nexp); ieA=ntA; |
isA=ones(1,Nexp); ieA=ntA; |
91 |
%- limit the length : for search of isA <->1500y: find(ttA(:,2) == 1500) |
%- limit the length : for search of isA <->1500y: find(ttA(:,2) == 1500) |
92 |
%isA=isA*31 ; % drop the 1rst mnth (1 Monitor/d) |
%isA=isA*31 ; % drop the 1rst mnth (1 Monitor/d) |
93 |
isA=isA*2 ; % drop the 1rst mnth (1 Monitor/30d) |
isA=isA*2 ; % drop the 1rst mnth (1 Monitor/30d) |
94 |
%isA(1)=31 ; isA(2)=4 ; % drop the 1rst mnth |
%isA(1)=31 ; isA(2)=4 ; % drop the 1rst mnth |
102 |
linA(6,:)='c-'; |
linA(6,:)='c-'; |
103 |
|
|
104 |
ieA=min(ieA,nItMx); |
ieA=min(ieA,nItMx); |
105 |
%titall='AIM , Cubic-G (32x32) , cpl-FM Forcing' ; |
%titall='AIM , Cubic-G (32x32) , cpl-FM Forcing' ; |
106 |
titall='Global Ocean, Cubic-G (32x32) , CORE Forc (2)' ; |
titall='Global Ocean, Cubic-G (32x32) , CORE Forc (2)' ; |
107 |
%titall='Dyncore test-case 5 (cs-32)' ; |
%titall='Dyncore test-case 5 (cs-32)' ; |
108 |
|
|
109 |
%========================================================= |
%========================================================= |
110 |
|
|
111 |
for ng=1:nbV, |
ng=0; |
112 |
|
for jv=1:nbV, |
113 |
%------------------- |
%------------------- |
114 |
flag=list_on(ng); kl=0; |
flag=list_on(jv); kl=0; |
115 |
vv1=vvA(:,:,:,:,ng,:); namV=char(listV(ng)); |
vv1=vvA(:,:,:,:,jv,:); namV=char(listV(jv)); |
116 |
titv=strrep(namV,'_','\_'); |
titv=strrep(namV,'_','\_'); |
117 |
%if strcmp(namV,'Eta'), vv1=vv1/100; titv='Eta [mb]'; end |
%if strcmp(namV,'Eta'), vv1=vv1/100; titv='Eta [mb]'; end |
118 |
%if strcmp(namV,'T'), kl=1; end % <-- to get surf.Temp |
%if strcmp(namV,'T'), kl=1; end % <-- to get surf.Temp |
|
%if ng == 1, flag=2*list_on(1) ; end |
|
119 |
if kl > 0, titv=[titv,'\_',int2str(kl)]; |
if kl > 0, titv=[titv,'\_',int2str(kl)]; |
120 |
fprintf([' var= ',namV,' at level k= %i \n'],kl); |
fprintf([' var= ',namV,' at level k= %i \n'],kl); |
121 |
end |
end |
122 |
|
|
123 |
if flag == 1 |
if flag == 1 |
124 |
%-- |
%-- |
125 |
|
ng=ng+1; |
126 |
|
%- reset "ng" to jv for fix fig number (independent of which one is in list_on): |
127 |
|
%ng=jv; |
128 |
figure(ng); set(ng,'position',[100+100*ng 60+40*ng 500 700]);clf; |
figure(ng); set(ng,'position',[100+100*ng 60+40*ng 500 700]);clf; |
129 |
var=squeeze(vv1(1+kl,:,1,:,:)); dd=zeros(5,Nexp); av=zeros(5,Nexp); |
var=squeeze(vv1(1+kl,:,1,:,:)); dd=zeros(5,Nexp); av=zeros(5,Nexp); |
130 |
for n=1:Nexp, |
for n=1:Nexp, |
154 |
set(T,'HorizontalAlignment','center','FontSize',12); |
set(T,'HorizontalAlignment','center','FontSize',12); |
155 |
Td=text(0.99,0.01,date); |
Td=text(0.99,0.01,date); |
156 |
set(Td,'HorizontalAlignment','right','FontSize',6); |
set(Td,'HorizontalAlignment','right','FontSize',6); |
157 |
%--- |
%--- |
158 |
end |
end |
159 |
|
|
160 |
%------------------- |
%------------------- |
161 |
end |
end |
162 |
|
|
163 |
%========================================================= |
%========================================================= |