1 | %
|
---|
2 |
|
---|
3 | % initialisation
|
---|
4 | clear;
|
---|
5 | close all;
|
---|
6 |
|
---|
7 | % etape 1 :on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
8 | % on compile sous forme d'un seul fichier
|
---|
9 |
|
---|
10 | uwnd200=zeros(122,49,144,22);
|
---|
11 |
|
---|
12 | siz=31+28+31+30+31+1;
|
---|
13 | sizbis=31+28+31+30+31+30+31+31+30;
|
---|
14 | ncload('uwnd200.1979.nc'); uwnd200(:,:,:,1)=uwnd(siz:sizbis,1,:,:); clear uwnd;
|
---|
15 | ncload('uwnd200.1980.nc'); uwnd200(:,:,:,2)=uwnd(siz+1:sizbis+1,1,:,:); clear uwnd;
|
---|
16 | ncload('uwnd200.1981.nc'); uwnd200(:,:,:,3)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
17 | ncload('uwnd200.1982.nc'); uwnd200(:,:,:,4)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
18 | ncload('uwnd200.1983.nc'); uwnd200(:,:,:,5)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
19 | ncload('uwnd200.1984.nc'); uwnd200(:,:,:,6)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
20 | ncload('uwnd200.1985.nc'); uwnd200(:,:,:,7)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
21 | ncload('uwnd200.1986.nc'); uwnd200(:,:,:,8)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
22 | ncload('uwnd200.1987.nc'); uwnd200(:,:,:,9)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
23 | ncload('uwnd200.1988.nc'); uwnd200(:,:,:,10)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
24 | ncload('uwnd200.1989.nc'); uwnd200(:,:,:,11)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
25 | ncload('uwnd200.1990.nc'); uwnd200(:,:,:,12)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
26 | ncload('uwnd200.1991.nc'); uwnd200(:,:,:,13)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
27 | ncload('uwnd200.1992.nc'); uwnd200(:,:,:,14)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
28 | ncload('uwnd200.1993.nc'); uwnd200(:,:,:,15)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
29 | ncload('uwnd200.1994.nc'); uwnd200(:,:,:,16)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
30 | ncload('uwnd200.1995.nc'); uwnd200(:,:,:,17)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
31 | ncload('uwnd200.1996.nc'); uwnd200(:,:,:,18)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
32 | ncload('uwnd200.1997.nc'); uwnd200(:,:,:,19)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
33 | ncload('uwnd200.1998.nc'); uwnd200(:,:,:,20)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
34 | ncload('uwnd200.1999.nc'); uwnd200(:,:,:,21)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
35 | ncload('uwnd200.2000.nc'); uwnd200(:,:,:,22)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
36 | clear siz1 siz1bis;
|
---|
37 |
|
---|
38 | uwnd=permute(uwnd200,[1 4 2 3]);
|
---|
39 | clear uwnd200;
|
---|
40 |
|
---|
41 | load eof2_olr_rossby_jjas.txt;
|
---|
42 | % on met sous la forme annee mois
|
---|
43 | olr_eof=reshape(eof2_olr_rossby_jjas,122,22);
|
---|
44 | clear eof2_olr_rossby_jjas;
|
---|
45 |
|
---|
46 | % on calcule l ecart type sur la serie temporelle de l'olr
|
---|
47 | k=122*22;
|
---|
48 | olrbis=reshape(olr_eof,k,1);
|
---|
49 | olrbis=std(olrbis);
|
---|
50 |
|
---|
51 | % intialisation des tableaux
|
---|
52 | uwnd200_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
53 | uwnd200_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
54 |
|
---|
55 | compteurmax=0;
|
---|
56 | compteurmin=0;
|
---|
57 |
|
---|
58 | % boucle sur les annees
|
---|
59 | for a=1:22;
|
---|
60 | clear delta;
|
---|
61 | delta=zeros(122,1);
|
---|
62 | % boucle sur les jours : on prepare avant
|
---|
63 | for b=1:122;
|
---|
64 | if b>1;
|
---|
65 | delta(b)=olr_eof(b,a)-olr_eof(b-1,a);
|
---|
66 | end;
|
---|
67 | end;
|
---|
68 | % boucle sur les jours
|
---|
69 | for b=1:122;
|
---|
70 | % 1ere condition (laisser une marge de 10)
|
---|
71 | if (b>20 && b<112);
|
---|
72 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
73 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && olr_eof(b,a)>olrbis);
|
---|
74 | compteurmax=compteurmax+1;
|
---|
75 | uwnd200_filtre_compomax(compteurmax,1,:,:)=uwnd(b-20,a,:,:);
|
---|
76 | uwnd200_filtre_compomax(compteurmax,2,:,:)=uwnd(b-19,a,:,:);
|
---|
77 | uwnd200_filtre_compomax(compteurmax,3,:,:)=uwnd(b-18,a,:,:);
|
---|
78 | uwnd200_filtre_compomax(compteurmax,4,:,:)=uwnd(b-17,a,:,:);
|
---|
79 | uwnd200_filtre_compomax(compteurmax,5,:,:)=uwnd(b-16,a,:,:);
|
---|
80 | uwnd200_filtre_compomax(compteurmax,6,:,:)=uwnd(b-15,a,:,:);
|
---|
81 | uwnd200_filtre_compomax(compteurmax,7,:,:)=uwnd(b-14,a,:,:);
|
---|
82 | uwnd200_filtre_compomax(compteurmax,8,:,:)=uwnd(b-13,a,:,:);
|
---|
83 | uwnd200_filtre_compomax(compteurmax,9,:,:)=uwnd(b-12,a,:,:);
|
---|
84 | uwnd200_filtre_compomax(compteurmax,10,:,:)=uwnd(b-11,a,:,:);
|
---|
85 |
|
---|
86 | uwnd200_filtre_compomax(compteurmax,11,:,:)=uwnd(b-10,a,:,:);
|
---|
87 | uwnd200_filtre_compomax(compteurmax,12,:,:)=uwnd(b-9,a,:,:);
|
---|
88 | uwnd200_filtre_compomax(compteurmax,13,:,:)=uwnd(b-8,a,:,:);
|
---|
89 | uwnd200_filtre_compomax(compteurmax,14,:,:)=uwnd(b-7,a,:,:);
|
---|
90 | uwnd200_filtre_compomax(compteurmax,15,:,:)=uwnd(b-6,a,:,:);
|
---|
91 | uwnd200_filtre_compomax(compteurmax,16,:,:)=uwnd(b-5,a,:,:);
|
---|
92 | uwnd200_filtre_compomax(compteurmax,17,:,:)=uwnd(b-4,a,:,:);
|
---|
93 | uwnd200_filtre_compomax(compteurmax,18,:,:)=uwnd(b-3,a,:,:);
|
---|
94 | uwnd200_filtre_compomax(compteurmax,19,:,:)=uwnd(b-2,a,:,:);
|
---|
95 | uwnd200_filtre_compomax(compteurmax,20,:,:)=uwnd(b-1,a,:,:);
|
---|
96 |
|
---|
97 | uwnd200_filtre_compomax(compteurmax,21,:,:)=uwnd(b,a,:,:);
|
---|
98 | uwnd200_filtre_compomax(compteurmax,22,:,:)=uwnd(b+1,a,:,:);
|
---|
99 | uwnd200_filtre_compomax(compteurmax,23,:,:)=uwnd(b+2,a,:,:);
|
---|
100 | uwnd200_filtre_compomax(compteurmax,24,:,:)=uwnd(b+3,a,:,:);
|
---|
101 | uwnd200_filtre_compomax(compteurmax,25,:,:)=uwnd(b+4,a,:,:);
|
---|
102 | uwnd200_filtre_compomax(compteurmax,26,:,:)=uwnd(b+5,a,:,:);
|
---|
103 | uwnd200_filtre_compomax(compteurmax,27,:,:)=uwnd(b+6,a,:,:);
|
---|
104 | uwnd200_filtre_compomax(compteurmax,28,:,:)=uwnd(b+7,a,:,:);
|
---|
105 | uwnd200_filtre_compomax(compteurmax,29,:,:)=uwnd(b+8,a,:,:);
|
---|
106 | uwnd200_filtre_compomax(compteurmax,30,:,:)=uwnd(b+9,a,:,:);
|
---|
107 | uwnd200_filtre_compomax(compteurmax,31,:,:)=uwnd(b+10,a,:,:);
|
---|
108 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
109 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis));
|
---|
110 | compteurmin=compteurmin+1;
|
---|
111 |
|
---|
112 | uwnd200_filtre_compomin(compteurmin,1,:,:)=uwnd(b-20,a,:,:);
|
---|
113 | uwnd200_filtre_compomin(compteurmin,2,:,:)=uwnd(b-19,a,:,:);
|
---|
114 | uwnd200_filtre_compomin(compteurmin,3,:,:)=uwnd(b-18,a,:,:);
|
---|
115 | uwnd200_filtre_compomin(compteurmin,4,:,:)=uwnd(b-17,a,:,:);
|
---|
116 | uwnd200_filtre_compomin(compteurmin,5,:,:)=uwnd(b-16,a,:,:);
|
---|
117 | uwnd200_filtre_compomin(compteurmin,6,:,:)=uwnd(b-15,a,:,:);
|
---|
118 | uwnd200_filtre_compomin(compteurmin,7,:,:)=uwnd(b-14,a,:,:);
|
---|
119 | uwnd200_filtre_compomin(compteurmin,8,:,:)=uwnd(b-13,a,:,:);
|
---|
120 | uwnd200_filtre_compomin(compteurmin,9,:,:)=uwnd(b-12,a,:,:);
|
---|
121 | uwnd200_filtre_compomin(compteurmin,10,:,:)=uwnd(b-11,a,:,:);
|
---|
122 |
|
---|
123 | uwnd200_filtre_compomin(compteurmin,11,:,:)=uwnd(b-10,a,:,:);
|
---|
124 | uwnd200_filtre_compomin(compteurmin,12,:,:)=uwnd(b-9,a,:,:);
|
---|
125 | uwnd200_filtre_compomin(compteurmin,13,:,:)=uwnd(b-8,a,:,:);
|
---|
126 | uwnd200_filtre_compomin(compteurmin,14,:,:)=uwnd(b-7,a,:,:);
|
---|
127 | uwnd200_filtre_compomin(compteurmin,15,:,:)=uwnd(b-6,a,:,:);
|
---|
128 | uwnd200_filtre_compomin(compteurmin,16,:,:)=uwnd(b-5,a,:,:);
|
---|
129 | uwnd200_filtre_compomin(compteurmin,17,:,:)=uwnd(b-4,a,:,:);
|
---|
130 | uwnd200_filtre_compomin(compteurmin,18,:,:)=uwnd(b-3,a,:,:);
|
---|
131 | uwnd200_filtre_compomin(compteurmin,19,:,:)=uwnd(b-2,a,:,:);
|
---|
132 | uwnd200_filtre_compomin(compteurmin,20,:,:)=uwnd(b-1,a,:,:);
|
---|
133 |
|
---|
134 | uwnd200_filtre_compomin(compteurmin,21,:,:)=uwnd(b,a,:,:);
|
---|
135 | uwnd200_filtre_compomin(compteurmin,22,:,:)=uwnd(b+1,a,:,:);
|
---|
136 | uwnd200_filtre_compomin(compteurmin,23,:,:)=uwnd(b+2,a,:,:);
|
---|
137 | uwnd200_filtre_compomin(compteurmin,24,:,:)=uwnd(b+3,a,:,:);
|
---|
138 | uwnd200_filtre_compomin(compteurmin,25,:,:)=uwnd(b+4,a,:,:);
|
---|
139 | uwnd200_filtre_compomin(compteurmin,26,:,:)=uwnd(b+5,a,:,:);
|
---|
140 | uwnd200_filtre_compomin(compteurmin,27,:,:)=uwnd(b+6,a,:,:);
|
---|
141 | uwnd200_filtre_compomin(compteurmin,28,:,:)=uwnd(b+7,a,:,:);
|
---|
142 | uwnd200_filtre_compomin(compteurmin,29,:,:)=uwnd(b+8,a,:,:);
|
---|
143 | uwnd200_filtre_compomin(compteurmin,30,:,:)=uwnd(b+9,a,:,:);
|
---|
144 | uwnd200_filtre_compomin(compteurmin,31,:,:)=uwnd(b+10,a,:,:);
|
---|
145 | end;
|
---|
146 | end;
|
---|
147 | end;
|
---|
148 | end;
|
---|
149 |
|
---|
150 |
|
---|
151 | % on fait la somme des valeurs de uwnd200_filtreentiel sur le nbre d occurences
|
---|
152 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
153 | uwnd200_filtre_compomin1(:,:,:)=nanmean(uwnd200_filtre_compomin);
|
---|
154 | clear uwnd200_filtre_compomin;
|
---|
155 | uwnd200_filtre_compomax1(:,:,:)=nanmean(uwnd200_filtre_compomax);
|
---|
156 | clear uwnd200_filtre_compomax;
|
---|
157 |
|
---|
158 | % etape 1 :on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
159 | % on compile sous forme d'un seul fichier
|
---|
160 |
|
---|
161 | vwnd200=zeros(122,49,144,22);
|
---|
162 |
|
---|
163 | siz=31+28+31+30+31+1;
|
---|
164 | sizbis=31+28+31+30+31+30+31+31+30;
|
---|
165 | ncload('vwnd200.1979.nc'); vwnd200(:,:,:,1)=vwnd(siz:sizbis,1,:,:); clear vwnd;
|
---|
166 | ncload('vwnd200.1980.nc'); vwnd200(:,:,:,2)=vwnd(siz+1:sizbis+1,1,:,:); clear vwnd;
|
---|
167 | ncload('vwnd200.1981.nc'); vwnd200(:,:,:,3)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
168 | ncload('vwnd200.1982.nc'); vwnd200(:,:,:,4)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
169 | ncload('vwnd200.1983.nc'); vwnd200(:,:,:,5)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
170 | ncload('vwnd200.1984.nc'); vwnd200(:,:,:,6)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
171 | ncload('vwnd200.1985.nc'); vwnd200(:,:,:,7)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
172 | ncload('vwnd200.1986.nc'); vwnd200(:,:,:,8)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
173 | ncload('vwnd200.1987.nc'); vwnd200(:,:,:,9)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
174 | ncload('vwnd200.1988.nc'); vwnd200(:,:,:,10)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
175 | ncload('vwnd200.1989.nc'); vwnd200(:,:,:,11)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
176 | ncload('vwnd200.1990.nc'); vwnd200(:,:,:,12)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
177 | ncload('vwnd200.1991.nc'); vwnd200(:,:,:,13)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
178 | ncload('vwnd200.1992.nc'); vwnd200(:,:,:,14)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
179 | ncload('vwnd200.1993.nc'); vwnd200(:,:,:,15)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
180 | ncload('vwnd200.1994.nc'); vwnd200(:,:,:,16)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
181 | ncload('vwnd200.1995.nc'); vwnd200(:,:,:,17)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
182 | ncload('vwnd200.1996.nc'); vwnd200(:,:,:,18)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
183 | ncload('vwnd200.1997.nc'); vwnd200(:,:,:,19)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
184 | ncload('vwnd200.1998.nc'); vwnd200(:,:,:,20)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
185 | ncload('vwnd200.1999.nc'); vwnd200(:,:,:,21)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
186 | ncload('vwnd200.2000.nc'); vwnd200(:,:,:,22)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
187 | clear siz1 siz1bis;
|
---|
188 |
|
---|
189 | vwnd=permute(vwnd200,[1 4 2 3]);
|
---|
190 | clear vwnd200;
|
---|
191 |
|
---|
192 | load eof2_olr_rossby_jjas.txt;
|
---|
193 | % on met sous la forme annee mois
|
---|
194 | olr_eof=reshape(eof2_olr_rossby_jjas,122,22);
|
---|
195 | clear eof2_olr_rossby_jjas;
|
---|
196 |
|
---|
197 | % on calcule l ecart type sur la serie temporelle de l'olr
|
---|
198 | k=122*22;
|
---|
199 | olrbis=reshape(olr_eof,k,1);
|
---|
200 | olrbis=std(olrbis);
|
---|
201 |
|
---|
202 | % intialisation des tableaux
|
---|
203 | vwnd200_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
204 | vwnd200_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
205 |
|
---|
206 | compteurmax=0;
|
---|
207 | compteurmin=0;
|
---|
208 |
|
---|
209 | % boucle sur les annees
|
---|
210 | for a=1:22;
|
---|
211 | clear delta;
|
---|
212 | delta=zeros(122,1);
|
---|
213 | % boucle sur les jours : on prepare avant
|
---|
214 | for b=1:122;
|
---|
215 | if b>1;
|
---|
216 | delta(b)=olr_eof(b,a)-olr_eof(b-1,a);
|
---|
217 | end;
|
---|
218 | end;
|
---|
219 | % boucle sur les jours
|
---|
220 | for b=1:122;
|
---|
221 | % 1ere condition (laisser une marge de 10)
|
---|
222 | if (b>20 && b<112);
|
---|
223 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
224 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && olr_eof(b,a)>olrbis);
|
---|
225 | compteurmax=compteurmax+1;
|
---|
226 | vwnd200_filtre_compomax(compteurmax,1,:,:)=vwnd(b-20,a,:,:);
|
---|
227 | vwnd200_filtre_compomax(compteurmax,2,:,:)=vwnd(b-19,a,:,:);
|
---|
228 | vwnd200_filtre_compomax(compteurmax,3,:,:)=vwnd(b-18,a,:,:);
|
---|
229 | vwnd200_filtre_compomax(compteurmax,4,:,:)=vwnd(b-17,a,:,:);
|
---|
230 | vwnd200_filtre_compomax(compteurmax,5,:,:)=vwnd(b-16,a,:,:);
|
---|
231 | vwnd200_filtre_compomax(compteurmax,6,:,:)=vwnd(b-15,a,:,:);
|
---|
232 | vwnd200_filtre_compomax(compteurmax,7,:,:)=vwnd(b-14,a,:,:);
|
---|
233 | vwnd200_filtre_compomax(compteurmax,8,:,:)=vwnd(b-13,a,:,:);
|
---|
234 | vwnd200_filtre_compomax(compteurmax,9,:,:)=vwnd(b-12,a,:,:);
|
---|
235 | vwnd200_filtre_compomax(compteurmax,10,:,:)=vwnd(b-11,a,:,:);
|
---|
236 |
|
---|
237 | vwnd200_filtre_compomax(compteurmax,11,:,:)=vwnd(b-10,a,:,:);
|
---|
238 | vwnd200_filtre_compomax(compteurmax,12,:,:)=vwnd(b-9,a,:,:);
|
---|
239 | vwnd200_filtre_compomax(compteurmax,13,:,:)=vwnd(b-8,a,:,:);
|
---|
240 | vwnd200_filtre_compomax(compteurmax,14,:,:)=vwnd(b-7,a,:,:);
|
---|
241 | vwnd200_filtre_compomax(compteurmax,15,:,:)=vwnd(b-6,a,:,:);
|
---|
242 | vwnd200_filtre_compomax(compteurmax,16,:,:)=vwnd(b-5,a,:,:);
|
---|
243 | vwnd200_filtre_compomax(compteurmax,17,:,:)=vwnd(b-4,a,:,:);
|
---|
244 | vwnd200_filtre_compomax(compteurmax,18,:,:)=vwnd(b-3,a,:,:);
|
---|
245 | vwnd200_filtre_compomax(compteurmax,19,:,:)=vwnd(b-2,a,:,:);
|
---|
246 | vwnd200_filtre_compomax(compteurmax,20,:,:)=vwnd(b-1,a,:,:);
|
---|
247 |
|
---|
248 | vwnd200_filtre_compomax(compteurmax,21,:,:)=vwnd(b,a,:,:);
|
---|
249 | vwnd200_filtre_compomax(compteurmax,22,:,:)=vwnd(b+1,a,:,:);
|
---|
250 | vwnd200_filtre_compomax(compteurmax,23,:,:)=vwnd(b+2,a,:,:);
|
---|
251 | vwnd200_filtre_compomax(compteurmax,24,:,:)=vwnd(b+3,a,:,:);
|
---|
252 | vwnd200_filtre_compomax(compteurmax,25,:,:)=vwnd(b+4,a,:,:);
|
---|
253 | vwnd200_filtre_compomax(compteurmax,26,:,:)=vwnd(b+5,a,:,:);
|
---|
254 | vwnd200_filtre_compomax(compteurmax,27,:,:)=vwnd(b+6,a,:,:);
|
---|
255 | vwnd200_filtre_compomax(compteurmax,28,:,:)=vwnd(b+7,a,:,:);
|
---|
256 | vwnd200_filtre_compomax(compteurmax,29,:,:)=vwnd(b+8,a,:,:);
|
---|
257 | vwnd200_filtre_compomax(compteurmax,30,:,:)=vwnd(b+9,a,:,:);
|
---|
258 | vwnd200_filtre_compomax(compteurmax,31,:,:)=vwnd(b+10,a,:,:);
|
---|
259 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
260 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis));
|
---|
261 | compteurmin=compteurmin+1;
|
---|
262 |
|
---|
263 | vwnd200_filtre_compomin(compteurmin,1,:,:)=vwnd(b-20,a,:,:);
|
---|
264 | vwnd200_filtre_compomin(compteurmin,2,:,:)=vwnd(b-19,a,:,:);
|
---|
265 | vwnd200_filtre_compomin(compteurmin,3,:,:)=vwnd(b-18,a,:,:);
|
---|
266 | vwnd200_filtre_compomin(compteurmin,4,:,:)=vwnd(b-17,a,:,:);
|
---|
267 | vwnd200_filtre_compomin(compteurmin,5,:,:)=vwnd(b-16,a,:,:);
|
---|
268 | vwnd200_filtre_compomin(compteurmin,6,:,:)=vwnd(b-15,a,:,:);
|
---|
269 | vwnd200_filtre_compomin(compteurmin,7,:,:)=vwnd(b-14,a,:,:);
|
---|
270 | vwnd200_filtre_compomin(compteurmin,8,:,:)=vwnd(b-13,a,:,:);
|
---|
271 | vwnd200_filtre_compomin(compteurmin,9,:,:)=vwnd(b-12,a,:,:);
|
---|
272 | vwnd200_filtre_compomin(compteurmin,10,:,:)=vwnd(b-11,a,:,:);
|
---|
273 |
|
---|
274 | vwnd200_filtre_compomin(compteurmin,11,:,:)=vwnd(b-10,a,:,:);
|
---|
275 | vwnd200_filtre_compomin(compteurmin,12,:,:)=vwnd(b-9,a,:,:);
|
---|
276 | vwnd200_filtre_compomin(compteurmin,13,:,:)=vwnd(b-8,a,:,:);
|
---|
277 | vwnd200_filtre_compomin(compteurmin,14,:,:)=vwnd(b-7,a,:,:);
|
---|
278 | vwnd200_filtre_compomin(compteurmin,15,:,:)=vwnd(b-6,a,:,:);
|
---|
279 | vwnd200_filtre_compomin(compteurmin,16,:,:)=vwnd(b-5,a,:,:);
|
---|
280 | vwnd200_filtre_compomin(compteurmin,17,:,:)=vwnd(b-4,a,:,:);
|
---|
281 | vwnd200_filtre_compomin(compteurmin,18,:,:)=vwnd(b-3,a,:,:);
|
---|
282 | vwnd200_filtre_compomin(compteurmin,19,:,:)=vwnd(b-2,a,:,:);
|
---|
283 | vwnd200_filtre_compomin(compteurmin,20,:,:)=vwnd(b-1,a,:,:);
|
---|
284 |
|
---|
285 | vwnd200_filtre_compomin(compteurmin,21,:,:)=vwnd(b,a,:,:);
|
---|
286 | vwnd200_filtre_compomin(compteurmin,22,:,:)=vwnd(b+1,a,:,:);
|
---|
287 | vwnd200_filtre_compomin(compteurmin,23,:,:)=vwnd(b+2,a,:,:);
|
---|
288 | vwnd200_filtre_compomin(compteurmin,24,:,:)=vwnd(b+3,a,:,:);
|
---|
289 | vwnd200_filtre_compomin(compteurmin,25,:,:)=vwnd(b+4,a,:,:);
|
---|
290 | vwnd200_filtre_compomin(compteurmin,26,:,:)=vwnd(b+5,a,:,:);
|
---|
291 | vwnd200_filtre_compomin(compteurmin,27,:,:)=vwnd(b+6,a,:,:);
|
---|
292 | vwnd200_filtre_compomin(compteurmin,28,:,:)=vwnd(b+7,a,:,:);
|
---|
293 | vwnd200_filtre_compomin(compteurmin,29,:,:)=vwnd(b+8,a,:,:);
|
---|
294 | vwnd200_filtre_compomin(compteurmin,30,:,:)=vwnd(b+9,a,:,:);
|
---|
295 | vwnd200_filtre_compomin(compteurmin,31,:,:)=vwnd(b+10,a,:,:);
|
---|
296 | end;
|
---|
297 | end;
|
---|
298 | end;
|
---|
299 | end;
|
---|
300 |
|
---|
301 |
|
---|
302 | % on fait la somme des valeurs de vwnd200_filtreentiel sur le nbre d occurences
|
---|
303 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
304 | vwnd200_filtre_compomin1(:,:,:)=nanmean(vwnd200_filtre_compomin);
|
---|
305 | clear vwnd200_filtre_compomin;
|
---|
306 | vwnd200_filtre_compomax1(:,:,:)=nanmean(vwnd200_filtre_compomax);
|
---|
307 | clear vwnd200_filtre_compomax;
|
---|
308 |
|
---|
309 |
|
---|
310 | figure(1)
|
---|
311 | orient('landscape')
|
---|
312 | load pression.mat;
|
---|
313 |
|
---|
314 | for e=1:7;
|
---|
315 | a=7-(e-1)+1;
|
---|
316 | f=2*(a-1)+1;
|
---|
317 |
|
---|
318 | clear delta_uwnd200_filtre_min;
|
---|
319 | clear delta_vwnd200_filtre_min;
|
---|
320 | delta_uwnd200_filtre_min=zeros(49,144);
|
---|
321 | delta_vwnd200_filtre_min=zeros(49,144);
|
---|
322 | for b=1:49;
|
---|
323 | for c=1:144;
|
---|
324 | delta_uwnd200_filtre_min(b,c)=uwnd200_filtre_compomin1(f,b,c)-uwnd200_filtre_compomax1(f,b,c);
|
---|
325 | delta_vwnd200_filtre_min(b,c)=vwnd200_filtre_compomin1(f,b,c)-vwnd200_filtre_compomax1(f,b,c);
|
---|
326 |
|
---|
327 | end;
|
---|
328 | end;
|
---|
329 | subplot(7,1,8-e);
|
---|
330 |
|
---|
331 | delta_vwnd200_filtre=zeros(49,144);
|
---|
332 | delta_uwnd200_filtre=zeros(49,144);
|
---|
333 | delta_vwnd200_filtre(:,1:72)=delta_vwnd200_filtre_min(:,73:144);
|
---|
334 | delta_vwnd200_filtre(:,73:144)=delta_vwnd200_filtre_min(:,1:72);
|
---|
335 | delta_uwnd200_filtre(:,1:72)=delta_uwnd200_filtre_min(:,73:144);
|
---|
336 | delta_uwnd200_filtre(:,73:144)=delta_uwnd200_filtre_min(:,1:72);
|
---|
337 | xi=[-180:3.75:176.25];
|
---|
338 | xi=xi';
|
---|
339 | yi=[-87.1591:3.708895:87.1591];
|
---|
340 | clear carteu cartev;
|
---|
341 | carteu=interp2(lon-180,lat,delta_uwnd200_filtre,xi,yi);
|
---|
342 | cartev=interp2(lon-180,lat,delta_vwnd200_filtre,xi,yi);
|
---|
343 | clear coco ;
|
---|
344 | coco(:,:)=pression(a,:,:);
|
---|
345 | hgt=interp2(lon-180,lat,coco,xi,yi);
|
---|
346 | palette
|
---|
347 | aa=contourf(xi,yi,hgt,[-50:5:50],'LineStyle','none');
|
---|
348 | hold on;
|
---|
349 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
350 | if e==1;
|
---|
351 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
352 | else
|
---|
353 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
354 | end
|
---|
355 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
356 | cartemonde1;
|
---|
357 | if e==4;
|
---|
358 | co=colorbar;
|
---|
359 | set (co,'xtick',[-40:20:40],'xticklabel',[-40:20:40],'fontname','Arial','fontsize',6);
|
---|
360 | end;
|
---|
361 | set (gca,'tickDir','out');
|
---|
362 | axis equal
|
---|
363 | axis([-180 180 -10 40]);
|
---|
364 |
|
---|
365 | if e==7;
|
---|
366 | title('Composite geopotential + winds 200 hPa : differences min - max (mode Rossby EOF2)','fontsize',8) ;
|
---|
367 | end
|
---|
368 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
369 | pos_vert=e/10;
|
---|
370 | set (gca,'position',[0.2 pos_vert 0.5 0.1])
|
---|
371 | end;
|
---|
372 |
|
---|
373 |
|
---|
374 | print -depsc2 composite_rossby_eof2a_u200_hgt.eps;
|
---|
375 |
|
---|
376 | figure(2);
|
---|
377 | orient('landscape')
|
---|
378 | load pression.mat;
|
---|
379 |
|
---|
380 | for e=1:7;
|
---|
381 | a=7-(e-1)+1+7;
|
---|
382 | f=2*(a-1)+1;
|
---|
383 | clear delta_uwnd200_filtre_min;
|
---|
384 | clear delta_vwnd200_filtre_min;
|
---|
385 | delta_uwnd200_filtre_min=zeros(49,144);
|
---|
386 | delta_vwnd200_filtre_min=zeros(49,144);
|
---|
387 | for b=1:49;
|
---|
388 | for c=1:144;
|
---|
389 | delta_uwnd200_filtre_min(b,c)=uwnd200_filtre_compomin1(f,b,c)-uwnd200_filtre_compomax1(f,b,c);
|
---|
390 | delta_vwnd200_filtre_min(b,c)=vwnd200_filtre_compomin1(f,b,c)-vwnd200_filtre_compomax1(f,b,c);
|
---|
391 | end;
|
---|
392 | end;
|
---|
393 | subplot(7,1,8-e);
|
---|
394 |
|
---|
395 | delta_vwnd200_filtre=zeros(49,144);
|
---|
396 | delta_uwnd200_filtre=zeros(49,144);
|
---|
397 | delta_vwnd200_filtre(:,1:72)=delta_vwnd200_filtre_min(:,73:144);
|
---|
398 | delta_vwnd200_filtre(:,73:144)=delta_vwnd200_filtre_min(:,1:72);
|
---|
399 | delta_uwnd200_filtre(:,1:72)=delta_uwnd200_filtre_min(:,73:144);
|
---|
400 | delta_uwnd200_filtre(:,73:144)=delta_uwnd200_filtre_min(:,1:72);
|
---|
401 | xi=[-180:3.75:176.25];
|
---|
402 | xi=xi';
|
---|
403 | yi=[-87.1591:3.708895:87.1591];
|
---|
404 | clear carteu cartev;
|
---|
405 | carteu=interp2(lon-180,lat,delta_uwnd200_filtre,xi,yi);
|
---|
406 | cartev=interp2(lon-180,lat,delta_vwnd200_filtre,xi,yi);
|
---|
407 | clear coco ;
|
---|
408 | coco(:,:)=pression(a+7,:,:);
|
---|
409 | hgt=interp2(lon-180,lat,coco,xi,yi);
|
---|
410 | palette
|
---|
411 | aa=contourf(xi,yi,hgt,[-50:5:50],'LineStyle','none');
|
---|
412 | hold on;
|
---|
413 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
414 | if e==1;
|
---|
415 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
416 | else
|
---|
417 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
418 | end
|
---|
419 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
420 | cartemonde1;
|
---|
421 | if e==4;
|
---|
422 | co=colorbar;
|
---|
423 | set (co,'xtick',[-40:20:40],'xticklabel',[-40:10:40],'fontname','Arial','fontsize',6);
|
---|
424 | end;
|
---|
425 | set (gca,'tickDir','out');
|
---|
426 | axis equal
|
---|
427 | axis([-180 180 -10 40]);
|
---|
428 |
|
---|
429 | if e==7;
|
---|
430 | title('Composite geopotential + winds 200 hPa : differences min - max (mode Rossby EOF2)','fontsize',8) ;
|
---|
431 |
|
---|
432 | end
|
---|
433 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
434 | pos_vert=e/10;
|
---|
435 | set (gca,'position',[0.2 pos_vert 0.5 0.1])
|
---|
436 | end;
|
---|
437 |
|
---|
438 |
|
---|
439 | print -depsc2 composite_rossby_eof2b_u200_hgt.eps;
|
---|