1 | % |
---|
2 | |
---|
3 | %%%%%%%%%%%%%%% FICHIER pluie IRD |
---|
4 | % ouverture / lecture du fichier |
---|
5 | clear; |
---|
6 | close all; |
---|
7 | |
---|
8 | % on selectionne les mois d ete (attention aux annees bixestiles!) |
---|
9 | |
---|
10 | siz1=31+28+31+30+31+1; |
---|
11 | siz1bis=31+28+31+30+31+30+31+31+30; |
---|
12 | pluie=zeros(41,17,122,12); |
---|
13 | |
---|
14 | clear v fid; fid=fopen('pluvio.79.haut','r','b'); siz=41*17*365; |
---|
15 | v=fread(fid,siz,'float'); fclose(fid); |
---|
16 | v=reshape(v,41,17,365); |
---|
17 | clear a b c; |
---|
18 | for a=1:41; |
---|
19 | for b=1:17; |
---|
20 | for c=1:365; |
---|
21 | if v(a,b,c)>990; |
---|
22 | v(a,b,c)=NaN; |
---|
23 | elseif v(a,b,c)<0; |
---|
24 | v(a,b,c)=NaN; |
---|
25 | end; |
---|
26 | end; |
---|
27 | end; |
---|
28 | end; |
---|
29 | pluie(:,:,:,1)=v(:,:,siz1:siz1bis); % 1979 |
---|
30 | |
---|
31 | clear v fid; fid=fopen('pluvio.80.haut','r','b'); siz=41*17*366; |
---|
32 | v=fread(fid,siz,'float'); fclose(fid); |
---|
33 | v=reshape(v,41,17,366); |
---|
34 | clear a b c; |
---|
35 | for a=1:41; |
---|
36 | for b=1:17; |
---|
37 | for c=1:366; |
---|
38 | if v(a,b,c)>990; |
---|
39 | v(a,b,c)=NaN; |
---|
40 | elseif v(a,b,c)<0; |
---|
41 | v(a,b,c)=NaN; |
---|
42 | end; |
---|
43 | end; |
---|
44 | end; |
---|
45 | end; |
---|
46 | pluie(:,:,:,2)=v(:,:,siz1+1:siz1bis+1); % 1980 |
---|
47 | |
---|
48 | clear v fid; fid=fopen('pluvio.81.haut','r','b'); siz=41*17*365; |
---|
49 | v=fread(fid,siz,'float'); fclose(fid); |
---|
50 | v=reshape(v,41,17,365); |
---|
51 | clear a b c; |
---|
52 | for a=1:41; |
---|
53 | for b=1:17; |
---|
54 | for c=1:365; |
---|
55 | if v(a,b,c)>990; |
---|
56 | v(a,b,c)=NaN; |
---|
57 | elseif v(a,b,c)<0; |
---|
58 | v(a,b,c)=NaN; |
---|
59 | end; |
---|
60 | end; |
---|
61 | end; |
---|
62 | end; |
---|
63 | pluie(:,:,:,3)=v(:,:,siz1:siz1bis); % 1981 |
---|
64 | |
---|
65 | clear v fid; fid=fopen('pluvio.82.haut','r','b'); siz=41*17*365; |
---|
66 | v=fread(fid,siz,'float'); fclose(fid); |
---|
67 | v=reshape(v,41,17,365); |
---|
68 | clear a b c; |
---|
69 | for a=1:41; |
---|
70 | for b=1:17; |
---|
71 | for c=1:365; |
---|
72 | if v(a,b,c)>990; |
---|
73 | v(a,b,c)=NaN; |
---|
74 | elseif v(a,b,c)<0; |
---|
75 | v(a,b,c)=NaN; |
---|
76 | end; |
---|
77 | end; |
---|
78 | end; |
---|
79 | end; |
---|
80 | pluie(:,:,:,4)=v(:,:,siz1:siz1bis); % 1982 |
---|
81 | |
---|
82 | clear v fid; fid=fopen('pluvio.83.haut','r','b'); siz=41*17*365; |
---|
83 | v=fread(fid,siz,'float'); fclose(fid); |
---|
84 | v=reshape(v,41,17,365); |
---|
85 | clear a b c; |
---|
86 | for a=1:41; |
---|
87 | for b=1:17; |
---|
88 | for c=1:365; |
---|
89 | if v(a,b,c)>990; |
---|
90 | v(a,b,c)=NaN; |
---|
91 | elseif v(a,b,c)<0; |
---|
92 | v(a,b,c)=NaN; |
---|
93 | end; |
---|
94 | end; |
---|
95 | end; |
---|
96 | end; |
---|
97 | |
---|
98 | pluie(:,:,:,5)=v(:,:,siz1:siz1bis); % 1983 |
---|
99 | |
---|
100 | clear v fid; fid=fopen('pluvio.84.haut','r','b'); siz=41*17*366; |
---|
101 | v=fread(fid,siz,'float'); fclose(fid); |
---|
102 | v=reshape(v,41,17,366); |
---|
103 | clear a b c; |
---|
104 | for a=1:41; |
---|
105 | for b=1:17; |
---|
106 | for c=1:366; |
---|
107 | if v(a,b,c)>990; |
---|
108 | v(a,b,c)=NaN; |
---|
109 | elseif v(a,b,c)<0; |
---|
110 | v(a,b,c)=NaN; |
---|
111 | end; |
---|
112 | end; |
---|
113 | end; |
---|
114 | end; |
---|
115 | pluie(:,:,:,6)=v(:,:,siz1+1:siz1bis+1); % 1984 |
---|
116 | |
---|
117 | clear v fid; fid=fopen('pluvio.85.haut','r','b'); siz=41*17*365; |
---|
118 | v=fread(fid,siz,'float'); fclose(fid); |
---|
119 | v=reshape(v,41,17,365); |
---|
120 | clear a b c; |
---|
121 | for a=1:41; |
---|
122 | for b=1:17; |
---|
123 | for c=1:365; |
---|
124 | if v(a,b,c)>990; |
---|
125 | v(a,b,c)=NaN; |
---|
126 | elseif v(a,b,c)<0; |
---|
127 | v(a,b,c)=NaN; |
---|
128 | end; |
---|
129 | end; |
---|
130 | end; |
---|
131 | end; |
---|
132 | pluie(:,:,:,7)=v(:,:,siz1:siz1bis); % 1985 |
---|
133 | |
---|
134 | clear v fid; fid=fopen('pluvio.86.haut','r','b'); siz=41*17*365; |
---|
135 | v=fread(fid,siz,'float'); fclose(fid); |
---|
136 | v=reshape(v,41,17,365); |
---|
137 | clear a b c; |
---|
138 | for a=1:41; |
---|
139 | for b=1:17; |
---|
140 | for c=1:365; |
---|
141 | if v(a,b,c)>990; |
---|
142 | v(a,b,c)=NaN; |
---|
143 | elseif v(a,b,c)<0; |
---|
144 | v(a,b,c)=NaN; |
---|
145 | end; |
---|
146 | end; |
---|
147 | end; |
---|
148 | end; |
---|
149 | pluie(:,:,:,8)=v(:,:,siz1:siz1bis); % 1986 |
---|
150 | |
---|
151 | clear v fid; fid=fopen('pluvio.87.haut','r','b'); siz=41*17*365; |
---|
152 | v=fread(fid,siz,'float'); fclose(fid); |
---|
153 | v=reshape(v,41,17,365); |
---|
154 | clear a b c; |
---|
155 | for a=1:41; |
---|
156 | for b=1:17; |
---|
157 | for c=1:365; |
---|
158 | if v(a,b,c)>990; |
---|
159 | v(a,b,c)=NaN; |
---|
160 | elseif v(a,b,c)<0; |
---|
161 | v(a,b,c)=NaN; |
---|
162 | end; |
---|
163 | end; |
---|
164 | end; |
---|
165 | end; |
---|
166 | pluie(:,:,:,9)=v(:,:,siz1:siz1bis); % 1987 |
---|
167 | |
---|
168 | clear v fid; fid=fopen('pluvio.88.haut','r','b'); siz=41*17*366; |
---|
169 | v=fread(fid,siz,'float'); fclose(fid); |
---|
170 | v=reshape(v,41,17,366); |
---|
171 | clear a b c; |
---|
172 | for a=1:41; |
---|
173 | for b=1:17; |
---|
174 | for c=1:366; |
---|
175 | if v(a,b,c)>990; |
---|
176 | v(a,b,c)=NaN; |
---|
177 | elseif v(a,b,c)<0; |
---|
178 | v(a,b,c)=NaN; |
---|
179 | end; |
---|
180 | end; |
---|
181 | end; |
---|
182 | end; |
---|
183 | pluie(:,:,:,10)=v(:,:,siz1:siz1bis); % 1988 |
---|
184 | |
---|
185 | clear v fid; fid=fopen('pluvio.89.haut','r','b'); siz=41*17*365; |
---|
186 | v=fread(fid,siz,'float'); fclose(fid); |
---|
187 | v=reshape(v,41,17,365); |
---|
188 | clear a b c; |
---|
189 | for a=1:41; |
---|
190 | for b=1:17; |
---|
191 | for c=1:365; |
---|
192 | if v(a,b,c)>990; |
---|
193 | v(a,b,c)=NaN; |
---|
194 | elseif v(a,b,c)<0; |
---|
195 | v(a,b,c)=NaN; |
---|
196 | end; |
---|
197 | end; |
---|
198 | end; |
---|
199 | end; |
---|
200 | pluie(:,:,:,11)=v(:,:,siz1:siz1bis); % 1989 |
---|
201 | |
---|
202 | clear v fid; fid=fopen('pluvio.90.haut','r','b'); siz=41*17*365; |
---|
203 | v=fread(fid,siz,'float'); fclose(fid); |
---|
204 | v=reshape(v,41,17,365); |
---|
205 | clear a b c; |
---|
206 | for a=1:41; |
---|
207 | for b=1:17; |
---|
208 | for c=1:365; |
---|
209 | if v(a,b,c)>990; |
---|
210 | v(a,b,c)=NaN; |
---|
211 | elseif v(a,b,c)<0; |
---|
212 | v(a,b,c)=NaN; |
---|
213 | end; |
---|
214 | end; |
---|
215 | end; |
---|
216 | end; |
---|
217 | pluie(:,:,:,12)=v(:,:,siz1:siz1bis); % 1990 |
---|
218 | |
---|
219 | clear siz sizbis; |
---|
220 | clear v; |
---|
221 | |
---|
222 | status=load('eof12_rossby_1030.txt'); |
---|
223 | eof12_rossby_1030=status; |
---|
224 | clear status; |
---|
225 | |
---|
226 | % on met sous la forme annee mois |
---|
227 | eof12_rossby_1030=reshape(eof12_rossby_1030,122,28); |
---|
228 | % selection des annees avant 1990 |
---|
229 | olr_eof=eof12_rossby_1030(:,1:12); |
---|
230 | clear eof12_rossby_1030; |
---|
231 | |
---|
232 | % on calcule l ecart type sur la serie temporelle de l'olr |
---|
233 | k=122*12; |
---|
234 | olrbis=reshape(olr_eof,k,1); |
---|
235 | olrbis=std(olrbis); |
---|
236 | |
---|
237 | % intialisation des tableaux |
---|
238 | pluie_filtre_compomax=NaN*ones(30,31,17,41); |
---|
239 | pluie_filtre_compomin=NaN*ones(30,31,17,41); |
---|
240 | pluie=permute(pluie,[3 4 2 1]); |
---|
241 | compteurmax=0; |
---|
242 | compteurmin=0; |
---|
243 | |
---|
244 | % boucle sur les annees |
---|
245 | for a=1:12; |
---|
246 | clear delta; |
---|
247 | delta=zeros(122,1); |
---|
248 | % boucle sur les jours : on prepare avant |
---|
249 | for b=1:122; |
---|
250 | if b>1; |
---|
251 | delta(b)=olr_eof(b,a)-olr_eof(b-1,a); |
---|
252 | end; |
---|
253 | end; |
---|
254 | % boucle sur les jours |
---|
255 | for b=1:122; |
---|
256 | % 1ere condition (laisser une marge de 10) |
---|
257 | if (b>20 && b<112); |
---|
258 | % cas 1 : max deltas apres negetifs et deltas avant postifs |
---|
259 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && olr_eof(b,a)>olrbis); |
---|
260 | compteurmax=compteurmax+1; |
---|
261 | pluie_filtre_compomax(compteurmax,1,:,:)=pluie(b-20,a,:,:); |
---|
262 | pluie_filtre_compomax(compteurmax,2,:,:)=pluie(b-19,a,:,:); |
---|
263 | pluie_filtre_compomax(compteurmax,3,:,:)=pluie(b-18,a,:,:); |
---|
264 | pluie_filtre_compomax(compteurmax,4,:,:)=pluie(b-17,a,:,:); |
---|
265 | pluie_filtre_compomax(compteurmax,5,:,:)=pluie(b-16,a,:,:); |
---|
266 | pluie_filtre_compomax(compteurmax,6,:,:)=pluie(b-15,a,:,:); |
---|
267 | pluie_filtre_compomax(compteurmax,7,:,:)=pluie(b-14,a,:,:); |
---|
268 | pluie_filtre_compomax(compteurmax,8,:,:)=pluie(b-13,a,:,:); |
---|
269 | pluie_filtre_compomax(compteurmax,9,:,:)=pluie(b-12,a,:,:); |
---|
270 | pluie_filtre_compomax(compteurmax,10,:,:)=pluie(b-11,a,:,:); |
---|
271 | pluie_filtre_compomax(compteurmax,11,:,:)=pluie(b-10,a,:,:); |
---|
272 | pluie_filtre_compomax(compteurmax,12,:,:)=pluie(b-9,a,:,:); |
---|
273 | pluie_filtre_compomax(compteurmax,13,:,:)=pluie(b-8,a,:,:); |
---|
274 | pluie_filtre_compomax(compteurmax,14,:,:)=pluie(b-7,a,:,:); |
---|
275 | pluie_filtre_compomax(compteurmax,15,:,:)=pluie(b-6,a,:,:); |
---|
276 | pluie_filtre_compomax(compteurmax,16,:,:)=pluie(b-5,a,:,:); |
---|
277 | pluie_filtre_compomax(compteurmax,17,:,:)=pluie(b-4,a,:,:); |
---|
278 | pluie_filtre_compomax(compteurmax,18,:,:)=pluie(b-3,a,:,:); |
---|
279 | pluie_filtre_compomax(compteurmax,19,:,:)=pluie(b-2,a,:,:); |
---|
280 | pluie_filtre_compomax(compteurmax,20,:,:)=pluie(b-1,a,:,:); |
---|
281 | pluie_filtre_compomax(compteurmax,21,:,:)=pluie(b,a,:,:); |
---|
282 | pluie_filtre_compomax(compteurmax,22,:,:)=pluie(b+1,a,:,:); |
---|
283 | pluie_filtre_compomax(compteurmax,23,:,:)=pluie(b+2,a,:,:); |
---|
284 | pluie_filtre_compomax(compteurmax,24,:,:)=pluie(b+3,a,:,:); |
---|
285 | pluie_filtre_compomax(compteurmax,25,:,:)=pluie(b+4,a,:,:); |
---|
286 | pluie_filtre_compomax(compteurmax,26,:,:)=pluie(b+5,a,:,:); |
---|
287 | pluie_filtre_compomax(compteurmax,27,:,:)=pluie(b+6,a,:,:); |
---|
288 | pluie_filtre_compomax(compteurmax,28,:,:)=pluie(b+7,a,:,:); |
---|
289 | pluie_filtre_compomax(compteurmax,29,:,:)=pluie(b+8,a,:,:); |
---|
290 | pluie_filtre_compomax(compteurmax,30,:,:)=pluie(b+9,a,:,:); |
---|
291 | pluie_filtre_compomax(compteurmax,31,:,:)=pluie(b+10,a,:,:); |
---|
292 | % cas 2 : min deltas apres positifs et deltas avant negatifs |
---|
293 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis)); |
---|
294 | compteurmin=compteurmin+1; |
---|
295 | |
---|
296 | pluie_filtre_compomin(compteurmin,1,:,:)=pluie(b-20,a,:,:); |
---|
297 | pluie_filtre_compomin(compteurmin,2,:,:)=pluie(b-19,a,:,:); |
---|
298 | pluie_filtre_compomin(compteurmin,3,:,:)=pluie(b-18,a,:,:); |
---|
299 | pluie_filtre_compomin(compteurmin,4,:,:)=pluie(b-17,a,:,:); |
---|
300 | pluie_filtre_compomin(compteurmin,5,:,:)=pluie(b-16,a,:,:); |
---|
301 | pluie_filtre_compomin(compteurmin,6,:,:)=pluie(b-15,a,:,:); |
---|
302 | pluie_filtre_compomin(compteurmin,7,:,:)=pluie(b-14,a,:,:); |
---|
303 | pluie_filtre_compomin(compteurmin,8,:,:)=pluie(b-13,a,:,:); |
---|
304 | pluie_filtre_compomin(compteurmin,9,:,:)=pluie(b-12,a,:,:); |
---|
305 | pluie_filtre_compomin(compteurmin,10,:,:)=pluie(b-11,a,:,:); |
---|
306 | pluie_filtre_compomin(compteurmin,11,:,:)=pluie(b-10,a,:,:); |
---|
307 | pluie_filtre_compomin(compteurmin,12,:,:)=pluie(b-9,a,:,:); |
---|
308 | pluie_filtre_compomin(compteurmin,13,:,:)=pluie(b-8,a,:,:); |
---|
309 | pluie_filtre_compomin(compteurmin,14,:,:)=pluie(b-7,a,:,:); |
---|
310 | pluie_filtre_compomin(compteurmin,15,:,:)=pluie(b-6,a,:,:); |
---|
311 | pluie_filtre_compomin(compteurmin,16,:,:)=pluie(b-5,a,:,:); |
---|
312 | pluie_filtre_compomin(compteurmin,17,:,:)=pluie(b-4,a,:,:); |
---|
313 | pluie_filtre_compomin(compteurmin,18,:,:)=pluie(b-3,a,:,:); |
---|
314 | pluie_filtre_compomin(compteurmin,19,:,:)=pluie(b-2,a,:,:); |
---|
315 | pluie_filtre_compomin(compteurmin,20,:,:)=pluie(b-1,a,:,:); |
---|
316 | pluie_filtre_compomin(compteurmin,21,:,:)=pluie(b,a,:,:); |
---|
317 | pluie_filtre_compomin(compteurmin,22,:,:)=pluie(b+1,a,:,:); |
---|
318 | pluie_filtre_compomin(compteurmin,23,:,:)=pluie(b+2,a,:,:); |
---|
319 | pluie_filtre_compomin(compteurmin,24,:,:)=pluie(b+3,a,:,:); |
---|
320 | pluie_filtre_compomin(compteurmin,25,:,:)=pluie(b+4,a,:,:); |
---|
321 | pluie_filtre_compomin(compteurmin,26,:,:)=pluie(b+5,a,:,:); |
---|
322 | pluie_filtre_compomin(compteurmin,27,:,:)=pluie(b+6,a,:,:); |
---|
323 | pluie_filtre_compomin(compteurmin,28,:,:)=pluie(b+7,a,:,:); |
---|
324 | pluie_filtre_compomin(compteurmin,29,:,:)=pluie(b+8,a,:,:); |
---|
325 | pluie_filtre_compomin(compteurmin,30,:,:)=pluie(b+9,a,:,:); |
---|
326 | pluie_filtre_compomin(compteurmin,31,:,:)=pluie(b+10,a,:,:); |
---|
327 | end; |
---|
328 | end; |
---|
329 | end; |
---|
330 | end; |
---|
331 | |
---|
332 | % on fait la somme des valeurs de pluie_filtreentiel sur le nbre d occurences |
---|
333 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat) |
---|
334 | pluie_filtre_compomin1(:,:,:)=nanmean(pluie_filtre_compomin); |
---|
335 | clear pluie_filtre_compomin; |
---|
336 | pluie_filtre_compomax1(:,:,:)=nanmean(pluie_filtre_compomax); |
---|
337 | clear pluie_filtre_compomax; |
---|
338 | |
---|
339 | figure(1); |
---|
340 | orient('landscape'); |
---|
341 | figure(2); |
---|
342 | orient('landscape'); |
---|
343 | figure(3); |
---|
344 | orient('landscape'); |
---|
345 | |
---|
346 | for e=1:7; |
---|
347 | a=7-(e-1)+1; |
---|
348 | f=2*(a-1)+1; |
---|
349 | clear pluie_min pluie_max; |
---|
350 | pluie_min=zeros(17,41); |
---|
351 | pluie_max=zeros(17,41); |
---|
352 | pluie_min(:,:)=pluie_filtre_compomin1(f,:,:); |
---|
353 | pluie_max(:,:)=pluie_filtre_compomax1(f,:,:); |
---|
354 | |
---|
355 | for b=1:17; |
---|
356 | for c=1:41; |
---|
357 | if pluie_min(b,c)<0; |
---|
358 | pluie_min(b,c)=0; |
---|
359 | elseif pluie_min(b,c)>10; |
---|
360 | pluie_min(b,c)=10; |
---|
361 | end; |
---|
362 | if pluie_max(b,c)<0; |
---|
363 | pluie_max(b,c)=0; |
---|
364 | elseif pluie_max(b,c)>10; |
---|
365 | pluie_max(b,c)=10; |
---|
366 | end; |
---|
367 | end; |
---|
368 | end; |
---|
369 | pluie_min(1,1)=-0.0001; |
---|
370 | pluie_min(1,2)=10.0001; |
---|
371 | pluie_max(1,1)=-0.0001; |
---|
372 | pluie_max(1,2)=10.0001; |
---|
373 | lat=[-10:2.5:30]; |
---|
374 | lon=[-70:2.5:30]'; |
---|
375 | figure(1); |
---|
376 | subplot(7,1,8-e); |
---|
377 | palette |
---|
378 | aa=contourf(lon,lat,pluie_min,[0:0.5:10],'LineStyle','none'); |
---|
379 | if e==1; |
---|
380 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
381 | else |
---|
382 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
383 | end; |
---|
384 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
385 | if e==4; |
---|
386 | co=colorbar; |
---|
387 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); |
---|
388 | end; |
---|
389 | hold on; |
---|
390 | cartemonde1; |
---|
391 | set (gca,'tickDir','out'); |
---|
392 | axis equal; |
---|
393 | axis([-180 180 -10 40]); |
---|
394 | if e==7; |
---|
395 | title('Pluies IRD : Moyenne composite min (mode Rossby EOF2)','fontsize',8); |
---|
396 | end; |
---|
397 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
398 | pos_vert=e/10; |
---|
399 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
400 | % *************************** |
---|
401 | figure(2); |
---|
402 | subplot(7,1,8-e); |
---|
403 | palette |
---|
404 | aa=contourf(lon,lat,pluie_max,[0:0.5:10],'LineStyle','none'); |
---|
405 | if e==1; |
---|
406 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
407 | else |
---|
408 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
409 | end; |
---|
410 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
411 | if e==4; |
---|
412 | co=colorbar; |
---|
413 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); |
---|
414 | end; |
---|
415 | hold on; |
---|
416 | cartemonde1; |
---|
417 | set (gca,'tickDir','out'); |
---|
418 | axis equal; |
---|
419 | axis([-180 180 -10 40]); |
---|
420 | if e==7; |
---|
421 | title('Pluies IRD : Moyenne composite max (mode Rossby EOF2)','fontsize',8); |
---|
422 | end; |
---|
423 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
424 | pos_vert=e/10; |
---|
425 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
426 | %******************************************** |
---|
427 | |
---|
428 | figure(3); |
---|
429 | subplot(7,1,8-e); |
---|
430 | palette |
---|
431 | diff=pluie_min-pluie_max; |
---|
432 | diff(1,1)=-5.01; |
---|
433 | diff(1,2)=5.01; |
---|
434 | aa=contourf(lon,lat,diff,[-5:0.5:5],'LineStyle','none'); |
---|
435 | if e==1; |
---|
436 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
437 | else |
---|
438 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
439 | end; |
---|
440 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
441 | if e==4; |
---|
442 | co=colorbar; |
---|
443 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); |
---|
444 | end; |
---|
445 | hold on; |
---|
446 | cartemonde1; |
---|
447 | set (gca,'tickDir','out'); |
---|
448 | axis equal; |
---|
449 | axis([-180 180 -10 40]); |
---|
450 | if e==7; |
---|
451 | title('Pluies IRD : Differences composite min-max (mode Rossby EOF2)','fontsize',8); |
---|
452 | end; |
---|
453 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
454 | pos_vert=e/10; |
---|
455 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
456 | |
---|
457 | end; |
---|
458 | figure(1); |
---|
459 | print('-depsc2','composite_pluie_min_eof2a.eps'); |
---|
460 | figure(2); |
---|
461 | print('-depsc2','composite_pluie_max_eof2a.eps'); |
---|
462 | figure(3); |
---|
463 | print('-depsc2','composite_pluie_diff_eof2a.eps'); |
---|
464 | close all; |
---|
465 | |
---|
466 | figure(1); |
---|
467 | orient('landscape'); |
---|
468 | figure(2); |
---|
469 | orient('landscape'); |
---|
470 | figure(3); |
---|
471 | orient('landscape'); |
---|
472 | |
---|
473 | for e=1:7; |
---|
474 | a=7-(e-1)+7; |
---|
475 | f=2*(a-1)+1; |
---|
476 | clear pluie_min pluie_max; |
---|
477 | pluie_min=zeros(17,41); |
---|
478 | pluie_max=zeros(17,41); |
---|
479 | pluie_min(:,:)=pluie_filtre_compomin1(f,:,:); |
---|
480 | pluie_max(:,:)=pluie_filtre_compomax1(f,:,:); |
---|
481 | |
---|
482 | for b=1:17; |
---|
483 | for c=1:41; |
---|
484 | if pluie_min(b,c)<0; |
---|
485 | pluie_min(b,c)=0; |
---|
486 | elseif pluie_min(b,c)>10; |
---|
487 | pluie_min(b,c)=10; |
---|
488 | end; |
---|
489 | if pluie_max(b,c)<0; |
---|
490 | pluie_max(b,c)=0; |
---|
491 | elseif pluie_max(b,c)>10; |
---|
492 | pluie_max(b,c)=10; |
---|
493 | end; |
---|
494 | end; |
---|
495 | end; |
---|
496 | pluie_min(1,1)=-0.0001; |
---|
497 | pluie_min(1,2)=10.0001; |
---|
498 | pluie_max(1,1)=-0.0001; |
---|
499 | pluie_max(1,2)=10.0001; |
---|
500 | lat=[-10:2.5:30]; |
---|
501 | lon=[-70:2.5:30]'; |
---|
502 | figure(1); |
---|
503 | subplot(7,1,8-e); |
---|
504 | palette |
---|
505 | aa=contourf(lon,lat,pluie_min,[0:0.5:10],'LineStyle','none'); |
---|
506 | if e==1; |
---|
507 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
508 | else |
---|
509 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
510 | end; |
---|
511 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
512 | if e==4; |
---|
513 | co=colorbar; |
---|
514 | set (co,'xtick',[0:2:10],'xticklabel',[0:2:10],'fontname','Arial','fontsize',6); |
---|
515 | end; |
---|
516 | hold on; |
---|
517 | cartemonde1; |
---|
518 | set (gca,'tickDir','out'); |
---|
519 | axis equal; |
---|
520 | axis([-180 180 -10 40]); |
---|
521 | if e==7; |
---|
522 | title('Pluies IRD : Moyenne composite min (mode Rossby EOF2)','fontsize',8); |
---|
523 | end; |
---|
524 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
525 | pos_vert=e/10; |
---|
526 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
527 | % *************************** |
---|
528 | figure(2); |
---|
529 | subplot(7,1,8-e); |
---|
530 | palette |
---|
531 | aa=contourf(lon,lat,pluie_max,[0:0.5:10],'LineStyle','none'); |
---|
532 | if e==1; |
---|
533 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
534 | else |
---|
535 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
536 | end; |
---|
537 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
538 | if e==4; |
---|
539 | co=colorbar; |
---|
540 | set (co,'xtick',[0:2:10],'xticklabel',[0:2:10],'fontname','Arial','fontsize',6); |
---|
541 | end; |
---|
542 | hold on; |
---|
543 | cartemonde1; |
---|
544 | set (gca,'tickDir','out'); |
---|
545 | axis equal; |
---|
546 | axis([-180 180 -10 40]); |
---|
547 | if e==7; |
---|
548 | title('Pluies IRD : Moyenne composite max (mode Rossby EOF2)','fontsize',8); |
---|
549 | end; |
---|
550 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
551 | pos_vert=e/10; |
---|
552 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
553 | %******************************************** |
---|
554 | |
---|
555 | figure(3); |
---|
556 | subplot(7,1,8-e); |
---|
557 | palette |
---|
558 | diff=pluie_min-pluie_max; |
---|
559 | diff(1,1)=-5.01; |
---|
560 | diff(1,2)=5.01; |
---|
561 | aa=contourf(lon,lat,diff,[-5:0.5:5],'LineStyle','none'); |
---|
562 | if e==1; |
---|
563 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6); |
---|
564 | else |
---|
565 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); |
---|
566 | end; |
---|
567 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6); |
---|
568 | if e==4; |
---|
569 | co=colorbar; |
---|
570 | set (co,'xtick',[-5:1:5],'xticklabel',[-5:1:5],'fontname','Arial','fontsize',6); |
---|
571 | end; |
---|
572 | hold on; |
---|
573 | cartemonde1; |
---|
574 | set (gca,'tickDir','out'); |
---|
575 | axis equal; |
---|
576 | axis([-180 180 -10 40]); |
---|
577 | if e==7; |
---|
578 | title('Pluies IRD : Differences composite min-max (mode Rossby EOF2)','fontsize',8); |
---|
579 | end; |
---|
580 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); |
---|
581 | pos_vert=e/10; |
---|
582 | set (gca,'position',[0.2 pos_vert 0.5 0.1]); |
---|
583 | end; |
---|
584 | figure(1); |
---|
585 | print('-depsc2','composite_pluie_min_eof2b.eps'); |
---|
586 | figure(2); |
---|
587 | print('-depsc2','composite_pluie_max_eof2b.eps'); |
---|
588 | figure(3); |
---|
589 | print('-depsc2','composite_pluie_diff_eof2b.eps'); |
---|