1 | %
|
---|
2 |
|
---|
3 | % initialisation
|
---|
4 | clear;
|
---|
5 | close all;
|
---|
6 |
|
---|
7 |
|
---|
8 | % etape 1 :on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
9 | % on compile sous forme d'un seul fichier
|
---|
10 |
|
---|
11 | uwnd700=zeros(122,49,144,28);
|
---|
12 |
|
---|
13 | siz=31+28+31+30+31+1;
|
---|
14 | sizbis=31+28+31+30+31+30+31+31+30;
|
---|
15 | ncload('uwnd700.1979.nc'); uwnd700(:,:,:,1)=uwnd(siz:sizbis,1,:,:); clear uwnd;
|
---|
16 | ncload('uwnd700.1980.nc'); uwnd700(:,:,:,2)=uwnd(siz+1:sizbis+1,1,:,:); clear uwnd;
|
---|
17 | ncload('uwnd700.1981.nc'); uwnd700(:,:,:,3)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
18 | ncload('uwnd700.1982.nc'); uwnd700(:,:,:,4)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
19 | ncload('uwnd700.1983.nc'); uwnd700(:,:,:,5)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
20 | ncload('uwnd700.1984.nc'); uwnd700(:,:,:,6)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
21 | ncload('uwnd700.1985.nc'); uwnd700(:,:,:,7)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
22 | ncload('uwnd700.1986.nc'); uwnd700(:,:,:,8)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
23 | ncload('uwnd700.1987.nc'); uwnd700(:,:,:,9)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
24 | ncload('uwnd700.1988.nc'); uwnd700(:,:,:,10)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
25 | ncload('uwnd700.1989.nc'); uwnd700(:,:,:,11)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
26 | ncload('uwnd700.1990.nc'); uwnd700(:,:,:,12)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
27 | ncload('uwnd700.1991.nc'); uwnd700(:,:,:,13)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
28 | ncload('uwnd700.1992.nc'); uwnd700(:,:,:,14)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
29 | ncload('uwnd700.1993.nc'); uwnd700(:,:,:,15)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
30 | ncload('uwnd700.1994.nc'); uwnd700(:,:,:,16)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
31 | ncload('uwnd700.1995.nc'); uwnd700(:,:,:,17)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
32 | ncload('uwnd700.1996.nc'); uwnd700(:,:,:,18)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
33 | ncload('uwnd700.1997.nc'); uwnd700(:,:,:,19)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
34 | ncload('uwnd700.1998.nc'); uwnd700(:,:,:,20)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
35 | ncload('uwnd700.1999.nc'); uwnd700(:,:,:,21)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
36 | ncload('uwnd700.2000.nc'); uwnd700(:,:,:,22)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
37 | ncload('uwnd700.2001.nc'); uwnd700(:,:,:,23)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
38 | ncload('uwnd700.2002.nc'); uwnd700(:,:,:,24)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
39 | ncload('uwnd700.2003.nc'); uwnd700(:,:,:,25)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
40 | ncload('uwnd700.2004.nc'); uwnd700(:,:,:,26)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
41 | ncload('uwnd700.2005.nc'); uwnd700(:,:,:,27)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
42 | ncload('uwnd700.2006.nc'); uwnd700(:,:,:,28)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
43 |
|
---|
44 | uwnd700=uwnd700*0.01;
|
---|
45 | uwnd700=uwnd700-187.65;
|
---|
46 | clear siz1 siz1bis;
|
---|
47 |
|
---|
48 | uwnd=permute(uwnd700,[1 4 2 3]);
|
---|
49 | clear uwnd700;
|
---|
50 |
|
---|
51 |
|
---|
52 | %%%%%%%%%%%%%%% FICHIER OLR
|
---|
53 | % ouverture / lecture du fichier
|
---|
54 | load eof12_rossby_30100.txt
|
---|
55 | ind_olr=reshape(eof12_rossby_30100,122,28);
|
---|
56 | k=122*28;
|
---|
57 | clear eof12_rossby_30100
|
---|
58 | % on calcule l ecart type sur la serie entiere de l OLR
|
---|
59 | ind_olr1=reshape(ind_olr, k,1);
|
---|
60 | ind_olr2=std(ind_olr1);
|
---|
61 | clear ind_olr1;
|
---|
62 |
|
---|
63 | % GEOPOTENTIEL
|
---|
64 | % intialisation des tableaux
|
---|
65 | uwnd700_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
66 | uwnd700_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
67 |
|
---|
68 | compteurmax=0;
|
---|
69 | compteurmin=0;
|
---|
70 |
|
---|
71 | % boucle sur les annees
|
---|
72 | for a=1:28;
|
---|
73 | clear delta;
|
---|
74 | delta=zeros(122,1);
|
---|
75 | % boucle sur les jours : on prepare avant
|
---|
76 | for b=1:122;
|
---|
77 | if b>1;
|
---|
78 | delta(b)=ind_olr(b,a)-ind_olr(b-1,a);
|
---|
79 | end;
|
---|
80 | end;
|
---|
81 | % boucle sur les jours
|
---|
82 | for b=1:122;
|
---|
83 | % 1ere condition (laisser une marge de 10)
|
---|
84 | if (b>22 && b<112);
|
---|
85 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
86 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && ind_olr(b,a)>ind_olr2);
|
---|
87 | compteurmax=compteurmax+1;
|
---|
88 | uwnd700_filtre_compomax(compteurmax,1,:,:)=uwnd(b-21,a,:,:);
|
---|
89 | uwnd700_filtre_compomax(compteurmax,2,:,:)=uwnd(b-20,a,:,:);
|
---|
90 | uwnd700_filtre_compomax(compteurmax,3,:,:)=uwnd(b-19,a,:,:);
|
---|
91 | uwnd700_filtre_compomax(compteurmax,4,:,:)=uwnd(b-18,a,:,:);
|
---|
92 | uwnd700_filtre_compomax(compteurmax,5,:,:)=uwnd(b-17,a,:,:);
|
---|
93 | uwnd700_filtre_compomax(compteurmax,6,:,:)=uwnd(b-16,a,:,:);
|
---|
94 | uwnd700_filtre_compomax(compteurmax,7,:,:)=uwnd(b-15,a,:,:);
|
---|
95 | uwnd700_filtre_compomax(compteurmax,8,:,:)=uwnd(b-14,a,:,:);
|
---|
96 | uwnd700_filtre_compomax(compteurmax,9,:,:)=uwnd(b-13,a,:,:);
|
---|
97 | uwnd700_filtre_compomax(compteurmax,10,:,:)=uwnd(b-12,a,:,:);
|
---|
98 | uwnd700_filtre_compomax(compteurmax,11,:,:)=uwnd(b-11,a,:,:);
|
---|
99 |
|
---|
100 | uwnd700_filtre_compomax(compteurmax,12,:,:)=uwnd(b-10,a,:,:);
|
---|
101 | uwnd700_filtre_compomax(compteurmax,13,:,:)=uwnd(b-9,a,:,:);
|
---|
102 | uwnd700_filtre_compomax(compteurmax,14,:,:)=uwnd(b-8,a,:,:);
|
---|
103 | uwnd700_filtre_compomax(compteurmax,15,:,:)=uwnd(b-7,a,:,:);
|
---|
104 | uwnd700_filtre_compomax(compteurmax,16,:,:)=uwnd(b-6,a,:,:);
|
---|
105 | uwnd700_filtre_compomax(compteurmax,17,:,:)=uwnd(b-5,a,:,:);
|
---|
106 | uwnd700_filtre_compomax(compteurmax,18,:,:)=uwnd(b-4,a,:,:);
|
---|
107 | uwnd700_filtre_compomax(compteurmax,19,:,:)=uwnd(b-3,a,:,:);
|
---|
108 | uwnd700_filtre_compomax(compteurmax,20,:,:)=uwnd(b-2,a,:,:);
|
---|
109 | uwnd700_filtre_compomax(compteurmax,21,:,:)=uwnd(b-1,a,:,:);
|
---|
110 |
|
---|
111 | uwnd700_filtre_compomax(compteurmax,22,:,:)=uwnd(b,a,:,:);
|
---|
112 | uwnd700_filtre_compomax(compteurmax,23,:,:)=uwnd(b+1,a,:,:);
|
---|
113 | uwnd700_filtre_compomax(compteurmax,24,:,:)=uwnd(b+2,a,:,:);
|
---|
114 | uwnd700_filtre_compomax(compteurmax,25,:,:)=uwnd(b+3,a,:,:);
|
---|
115 | uwnd700_filtre_compomax(compteurmax,26,:,:)=uwnd(b+4,a,:,:);
|
---|
116 | uwnd700_filtre_compomax(compteurmax,27,:,:)=uwnd(b+5,a,:,:);
|
---|
117 | uwnd700_filtre_compomax(compteurmax,28,:,:)=uwnd(b+6,a,:,:);
|
---|
118 | uwnd700_filtre_compomax(compteurmax,29,:,:)=uwnd(b+7,a,:,:);
|
---|
119 | uwnd700_filtre_compomax(compteurmax,30,:,:)=uwnd(b+8,a,:,:);
|
---|
120 | uwnd700_filtre_compomax(compteurmax,31,:,:)=uwnd(b+9,a,:,:);
|
---|
121 |
|
---|
122 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
123 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && ind_olr(b,a)<(-ind_olr2));
|
---|
124 | compteurmin=compteurmin+1;
|
---|
125 | uwnd700_filtre_compomin(compteurmin,1,:,:)=uwnd(b-21,a,:,:);
|
---|
126 | uwnd700_filtre_compomin(compteurmin,2,:,:)=uwnd(b-20,a,:,:);
|
---|
127 | uwnd700_filtre_compomin(compteurmin,3,:,:)=uwnd(b-19,a,:,:);
|
---|
128 | uwnd700_filtre_compomin(compteurmin,4,:,:)=uwnd(b-18,a,:,:);
|
---|
129 | uwnd700_filtre_compomin(compteurmin,5,:,:)=uwnd(b-17,a,:,:);
|
---|
130 | uwnd700_filtre_compomin(compteurmin,6,:,:)=uwnd(b-16,a,:,:);
|
---|
131 | uwnd700_filtre_compomin(compteurmin,7,:,:)=uwnd(b-15,a,:,:);
|
---|
132 | uwnd700_filtre_compomin(compteurmin,8,:,:)=uwnd(b-14,a,:,:);
|
---|
133 | uwnd700_filtre_compomin(compteurmin,9,:,:)=uwnd(b-13,a,:,:);
|
---|
134 | uwnd700_filtre_compomin(compteurmin,10,:,:)=uwnd(b-12,a,:,:);
|
---|
135 | uwnd700_filtre_compomin(compteurmin,11,:,:)=uwnd(b-11,a,:,:);
|
---|
136 |
|
---|
137 | uwnd700_filtre_compomin(compteurmin,12,:,:)=uwnd(b-10,a,:,:);
|
---|
138 | uwnd700_filtre_compomin(compteurmin,13,:,:)=uwnd(b-9,a,:,:);
|
---|
139 | uwnd700_filtre_compomin(compteurmin,14,:,:)=uwnd(b-8,a,:,:);
|
---|
140 | uwnd700_filtre_compomin(compteurmin,15,:,:)=uwnd(b-7,a,:,:);
|
---|
141 | uwnd700_filtre_compomin(compteurmin,16,:,:)=uwnd(b-6,a,:,:);
|
---|
142 | uwnd700_filtre_compomin(compteurmin,17,:,:)=uwnd(b-5,a,:,:);
|
---|
143 | uwnd700_filtre_compomin(compteurmin,18,:,:)=uwnd(b-4,a,:,:);
|
---|
144 | uwnd700_filtre_compomin(compteurmin,19,:,:)=uwnd(b-3,a,:,:);
|
---|
145 | uwnd700_filtre_compomin(compteurmin,20,:,:)=uwnd(b-2,a,:,:);
|
---|
146 | uwnd700_filtre_compomin(compteurmin,21,:,:)=uwnd(b-1,a,:,:);
|
---|
147 |
|
---|
148 | uwnd700_filtre_compomin(compteurmin,22,:,:)=uwnd(b,a,:,:);
|
---|
149 | uwnd700_filtre_compomin(compteurmin,23,:,:)=uwnd(b+1,a,:,:);
|
---|
150 | uwnd700_filtre_compomin(compteurmin,24,:,:)=uwnd(b+2,a,:,:);
|
---|
151 | uwnd700_filtre_compomin(compteurmin,25,:,:)=uwnd(b+3,a,:,:);
|
---|
152 | uwnd700_filtre_compomin(compteurmin,26,:,:)=uwnd(b+4,a,:,:);
|
---|
153 | uwnd700_filtre_compomin(compteurmin,27,:,:)=uwnd(b+5,a,:,:);
|
---|
154 | uwnd700_filtre_compomin(compteurmin,28,:,:)=uwnd(b+6,a,:,:);
|
---|
155 | uwnd700_filtre_compomin(compteurmin,29,:,:)=uwnd(b+7,a,:,:);
|
---|
156 | uwnd700_filtre_compomin(compteurmin,30,:,:)=uwnd(b+8,a,:,:);
|
---|
157 | uwnd700_filtre_compomin(compteurmin,31,:,:)=uwnd(b+9,a,:,:);
|
---|
158 |
|
---|
159 | end;
|
---|
160 | end;
|
---|
161 | end;
|
---|
162 | end;
|
---|
163 |
|
---|
164 |
|
---|
165 | % on fait la somme des valeurs de uwnd700_filtreentiel sur le nbre d occurences
|
---|
166 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
167 | uwnd700_filtre_compomin1(:,:,:)=nanmean(uwnd700_filtre_compomin);
|
---|
168 | clear uwnd700_filtre_compomin;
|
---|
169 | uwnd700_filtre_compomax1(:,:,:)=nanmean(uwnd700_filtre_compomax);
|
---|
170 | clear uwnd700_filtre_compomax;
|
---|
171 |
|
---|
172 | x=[-10:1:10]';
|
---|
173 |
|
---|
174 | figure(1);
|
---|
175 | orient('landscape');
|
---|
176 | lat=lat';
|
---|
177 |
|
---|
178 | for e=1:31;
|
---|
179 | clear delta_uwnd700_filtre_min;
|
---|
180 | delta_uwnd700_filtre_min=zeros(49,144);
|
---|
181 | for b=1:49;
|
---|
182 | for c=1:144;
|
---|
183 | delta_uwnd700_filtre_min(b,c)=uwnd700_filtre_compomin1(e,b,c)-uwnd700_filtre_compomax1(e,b,c);
|
---|
184 | end;
|
---|
185 | end;
|
---|
186 | delta_uwnd700=zeros(49,144);
|
---|
187 | delta_uwnd700(:,1:72)=delta_uwnd700_filtre_min(:,73:144);
|
---|
188 | delta_uwnd700(:,73:144)=delta_uwnd700_filtre_min(:,1:72);
|
---|
189 | delta_uwnd700_filtre_min=flipud(delta_uwnd700);
|
---|
190 |
|
---|
191 | if e==1;
|
---|
192 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins21',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
193 | elseif e==2;
|
---|
194 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins20',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
195 | elseif e==3;
|
---|
196 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins19',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
197 | elseif e==4;
|
---|
198 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins18',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
199 | elseif e==5;
|
---|
200 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins17',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
201 | elseif e==6;
|
---|
202 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins16',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
203 | elseif e==7;
|
---|
204 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins15',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
205 | elseif e==8;
|
---|
206 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins14',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
207 | elseif e==9;
|
---|
208 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins13',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
209 | elseif e==10;
|
---|
210 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins12',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
211 | elseif e==11;
|
---|
212 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins11',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
213 | elseif e==12;
|
---|
214 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins10',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
215 | elseif e==13;
|
---|
216 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins9',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
217 | elseif e==14;
|
---|
218 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins8',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
219 | elseif e==15;
|
---|
220 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins7',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
221 | elseif e==16;
|
---|
222 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins6',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
223 | elseif e==17;
|
---|
224 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins5',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
225 | elseif e==18;
|
---|
226 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins4',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
227 | elseif e==19;
|
---|
228 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins3',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
229 | elseif e==20;
|
---|
230 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins2',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
231 | elseif e==21;
|
---|
232 | sauvegrads('composite_uwnd700_mode_rossby_30100_moins1',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
233 | elseif e==22;
|
---|
234 | sauvegrads('composite_uwnd700_mode_rossby_30100_0',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
235 | elseif e==23;
|
---|
236 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus1',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
237 | elseif e==24;
|
---|
238 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus2',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
239 | elseif e==25;
|
---|
240 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus3',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
241 | elseif e==26;
|
---|
242 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus4',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
243 | elseif e==27;
|
---|
244 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus5',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
245 | elseif e==28;
|
---|
246 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus6',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
247 | elseif e==29;
|
---|
248 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus7',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
249 | elseif e==30;
|
---|
250 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus8',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
251 | elseif e==31;
|
---|
252 | sauvegrads('composite_uwnd700_mode_rossby_30100_plus9',delta_uwnd700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
253 | end
|
---|
254 |
|
---|
255 | end
|
---|