1 | % initialisation
|
---|
2 | close all;
|
---|
3 | clear;
|
---|
4 |
|
---|
5 | % etape 1 :on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
6 | % on compile sous forme d'un seul fichier
|
---|
7 |
|
---|
8 | uwnd925=zeros(122,49,144,28);
|
---|
9 |
|
---|
10 | siz=31+28+31+30+31+1; sizbis=31+28+31+30+31+30+31+31+30;
|
---|
11 | ncload('uwnd925.1979.nc'); uwnd925(:,:,:,1)=uwnd(siz:sizbis,1,:,:); clear uwnd;
|
---|
12 | ncload('uwnd925.1980.nc'); uwnd925(:,:,:,2)=uwnd(siz+1:sizbis+1,1,:,:); clear uwnd;
|
---|
13 | ncload('uwnd925.1981.nc'); uwnd925(:,:,:,3)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
14 | ncload('uwnd925.1982.nc'); uwnd925(:,:,:,4)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
15 | ncload('uwnd925.1983.nc'); uwnd925(:,:,:,5)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
16 | ncload('uwnd925.1984.nc'); uwnd925(:,:,:,6)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
17 | ncload('uwnd925.1985.nc'); uwnd925(:,:,:,7)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
18 | ncload('uwnd925.1986.nc'); uwnd925(:,:,:,8)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
19 | ncload('uwnd925.1987.nc'); uwnd925(:,:,:,9)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
20 | ncload('uwnd925.1988.nc'); uwnd925(:,:,:,10)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
21 | ncload('uwnd925.1989.nc'); uwnd925(:,:,:,11)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
22 | ncload('uwnd925.1990.nc'); uwnd925(:,:,:,12)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
23 | ncload('uwnd925.1991.nc'); uwnd925(:,:,:,13)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
24 | ncload('uwnd925.1992.nc'); uwnd925(:,:,:,14)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
25 | ncload('uwnd925.1993.nc'); uwnd925(:,:,:,15)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
26 | ncload('uwnd925.1994.nc'); uwnd925(:,:,:,16)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
27 | ncload('uwnd925.1995.nc'); uwnd925(:,:,:,17)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
28 | ncload('uwnd925.1996.nc'); uwnd925(:,:,:,18)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
29 | ncload('uwnd925.1997.nc'); uwnd925(:,:,:,19)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
30 | ncload('uwnd925.1998.nc'); uwnd925(:,:,:,20)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
31 | ncload('uwnd925.1999.nc'); uwnd925(:,:,:,21)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
32 | ncload('uwnd925.2000.nc'); uwnd925(:,:,:,22)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
33 | ncload('uwnd925.2001.nc'); uwnd925(:,:,:,23)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
34 | ncload('uwnd925.2002.nc'); uwnd925(:,:,:,24)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
35 | ncload('uwnd925.2003.nc'); uwnd925(:,:,:,25)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
36 | ncload('uwnd925.2004.nc'); uwnd925(:,:,:,26)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd;
|
---|
37 | ncload('uwnd925.2005.nc'); uwnd925(:,:,:,27)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
38 | ncload('uwnd925.2006.nc'); uwnd925(:,:,:,28)=uwnd(siz:sizbis,1,:,:);clear uwnd;
|
---|
39 |
|
---|
40 |
|
---|
41 | clear siz1 siz1bis;
|
---|
42 |
|
---|
43 | uwnd=permute(uwnd925,[1 4 2 3]);
|
---|
44 | clear uwnd925;
|
---|
45 |
|
---|
46 |
|
---|
47 | %%%%%%%%%%%%%%% FICHIER OLR
|
---|
48 | % ouverture / lecture du fichier
|
---|
49 | load eof12_rossby_1030.txt; ind_olr=reshape(eof12_rossby_1030,122,28);
|
---|
50 | clear eof12_rossby_1030;
|
---|
51 |
|
---|
52 | k=122*28;
|
---|
53 |
|
---|
54 | % on calcule l ecart type sur la serie entiere de l OLR
|
---|
55 | ind_olr1=reshape(ind_olr, k,1);
|
---|
56 | ind_olr2=std(ind_olr1); clear ind_olr1;
|
---|
57 |
|
---|
58 |
|
---|
59 | % intialisation des tableaux
|
---|
60 | uwnd925_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
61 | uwnd925_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
62 |
|
---|
63 | compteurmax=0;
|
---|
64 | compteurmin=0;
|
---|
65 |
|
---|
66 | for a=1:28; % boucle sur les annees
|
---|
67 | clear delta;
|
---|
68 | delta=zeros(122,1);
|
---|
69 | for b=1:122; % boucle sur les jours : on prepare avant
|
---|
70 | if b>1;
|
---|
71 | delta(b)=ind_olr(b,a)-ind_olr(b-1,a);
|
---|
72 | end;
|
---|
73 | end;
|
---|
74 | for b=1:122; % boucle sur les jours
|
---|
75 | if (b>20 & b<112); % 1ere condition (laisser une marge de 10)
|
---|
76 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
77 | if (delta(b+1)<0 & delta(b)<0 & delta(b-1)>0 & delta(b-2)>0 & ind_olr(b,a)>ind_olr2);
|
---|
78 | compteurmax=compteurmax+1;
|
---|
79 | uwnd925_filtre_compomax(compteurmax,1,:,:)=uwnd(b-20,a,:,:);
|
---|
80 | uwnd925_filtre_compomax(compteurmax,2,:,:)=uwnd(b-19,a,:,:);
|
---|
81 | uwnd925_filtre_compomax(compteurmax,3,:,:)=uwnd(b-18,a,:,:);
|
---|
82 | uwnd925_filtre_compomax(compteurmax,4,:,:)=uwnd(b-17,a,:,:);
|
---|
83 | uwnd925_filtre_compomax(compteurmax,5,:,:)=uwnd(b-16,a,:,:);
|
---|
84 | uwnd925_filtre_compomax(compteurmax,6,:,:)=uwnd(b-15,a,:,:);
|
---|
85 | uwnd925_filtre_compomax(compteurmax,7,:,:)=uwnd(b-14,a,:,:);
|
---|
86 | uwnd925_filtre_compomax(compteurmax,8,:,:)=uwnd(b-13,a,:,:);
|
---|
87 | uwnd925_filtre_compomax(compteurmax,9,:,:)=uwnd(b-12,a,:,:);
|
---|
88 | uwnd925_filtre_compomax(compteurmax,10,:,:)=uwnd(b-11,a,:,:);
|
---|
89 |
|
---|
90 | uwnd925_filtre_compomax(compteurmax,11,:,:)=uwnd(b-10,a,:,:);
|
---|
91 | uwnd925_filtre_compomax(compteurmax,12,:,:)=uwnd(b-9,a,:,:);
|
---|
92 | uwnd925_filtre_compomax(compteurmax,13,:,:)=uwnd(b-8,a,:,:);
|
---|
93 | uwnd925_filtre_compomax(compteurmax,14,:,:)=uwnd(b-7,a,:,:);
|
---|
94 | uwnd925_filtre_compomax(compteurmax,15,:,:)=uwnd(b-6,a,:,:);
|
---|
95 | uwnd925_filtre_compomax(compteurmax,16,:,:)=uwnd(b-5,a,:,:);
|
---|
96 | uwnd925_filtre_compomax(compteurmax,17,:,:)=uwnd(b-4,a,:,:);
|
---|
97 | uwnd925_filtre_compomax(compteurmax,18,:,:)=uwnd(b-3,a,:,:);
|
---|
98 | uwnd925_filtre_compomax(compteurmax,19,:,:)=uwnd(b-2,a,:,:);
|
---|
99 | uwnd925_filtre_compomax(compteurmax,20,:,:)=uwnd(b-1,a,:,:);
|
---|
100 |
|
---|
101 | uwnd925_filtre_compomax(compteurmax,21,:,:)=uwnd(b,a,:,:);
|
---|
102 | uwnd925_filtre_compomax(compteurmax,22,:,:)=uwnd(b+1,a,:,:);
|
---|
103 | uwnd925_filtre_compomax(compteurmax,23,:,:)=uwnd(b+2,a,:,:);
|
---|
104 | uwnd925_filtre_compomax(compteurmax,24,:,:)=uwnd(b+3,a,:,:);
|
---|
105 | uwnd925_filtre_compomax(compteurmax,25,:,:)=uwnd(b+4,a,:,:);
|
---|
106 | uwnd925_filtre_compomax(compteurmax,26,:,:)=uwnd(b+5,a,:,:);
|
---|
107 | uwnd925_filtre_compomax(compteurmax,27,:,:)=uwnd(b+6,a,:,:);
|
---|
108 | uwnd925_filtre_compomax(compteurmax,28,:,:)=uwnd(b+7,a,:,:);
|
---|
109 | uwnd925_filtre_compomax(compteurmax,29,:,:)=uwnd(b+8,a,:,:);
|
---|
110 | uwnd925_filtre_compomax(compteurmax,30,:,:)=uwnd(b+9,a,:,:);
|
---|
111 | uwnd925_filtre_compomax(compteurmax,31,:,:)=uwnd(b+10,a,:,:);
|
---|
112 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
113 | elseif (delta(b+1)>0 & delta(b)>0 & delta(b-1)<0 & delta(b-2)<0 & ind_olr(b,a)<(-ind_olr2));
|
---|
114 | compteurmin=compteurmin+1;
|
---|
115 |
|
---|
116 | uwnd925_filtre_compomin(compteurmin,1,:,:)=uwnd(b-20,a,:,:);
|
---|
117 | uwnd925_filtre_compomin(compteurmin,2,:,:)=uwnd(b-19,a,:,:);
|
---|
118 | uwnd925_filtre_compomin(compteurmin,3,:,:)=uwnd(b-18,a,:,:);
|
---|
119 | uwnd925_filtre_compomin(compteurmin,4,:,:)=uwnd(b-17,a,:,:);
|
---|
120 | uwnd925_filtre_compomin(compteurmin,5,:,:)=uwnd(b-16,a,:,:);
|
---|
121 | uwnd925_filtre_compomin(compteurmin,6,:,:)=uwnd(b-15,a,:,:);
|
---|
122 | uwnd925_filtre_compomin(compteurmin,7,:,:)=uwnd(b-14,a,:,:);
|
---|
123 | uwnd925_filtre_compomin(compteurmin,8,:,:)=uwnd(b-13,a,:,:);
|
---|
124 | uwnd925_filtre_compomin(compteurmin,9,:,:)=uwnd(b-12,a,:,:);
|
---|
125 | uwnd925_filtre_compomin(compteurmin,10,:,:)=uwnd(b-11,a,:,:);
|
---|
126 |
|
---|
127 | uwnd925_filtre_compomin(compteurmin,11,:,:)=uwnd(b-10,a,:,:);
|
---|
128 | uwnd925_filtre_compomin(compteurmin,12,:,:)=uwnd(b-9,a,:,:);
|
---|
129 | uwnd925_filtre_compomin(compteurmin,13,:,:)=uwnd(b-8,a,:,:);
|
---|
130 | uwnd925_filtre_compomin(compteurmin,14,:,:)=uwnd(b-7,a,:,:);
|
---|
131 | uwnd925_filtre_compomin(compteurmin,15,:,:)=uwnd(b-6,a,:,:);
|
---|
132 | uwnd925_filtre_compomin(compteurmin,16,:,:)=uwnd(b-5,a,:,:);
|
---|
133 | uwnd925_filtre_compomin(compteurmin,17,:,:)=uwnd(b-4,a,:,:);
|
---|
134 | uwnd925_filtre_compomin(compteurmin,18,:,:)=uwnd(b-3,a,:,:);
|
---|
135 | uwnd925_filtre_compomin(compteurmin,19,:,:)=uwnd(b-2,a,:,:);
|
---|
136 | uwnd925_filtre_compomin(compteurmin,20,:,:)=uwnd(b-1,a,:,:);
|
---|
137 |
|
---|
138 | uwnd925_filtre_compomin(compteurmin,21,:,:)=uwnd(b,a,:,:);
|
---|
139 | uwnd925_filtre_compomin(compteurmin,22,:,:)=uwnd(b+1,a,:,:);
|
---|
140 | uwnd925_filtre_compomin(compteurmin,23,:,:)=uwnd(b+2,a,:,:);
|
---|
141 | uwnd925_filtre_compomin(compteurmin,24,:,:)=uwnd(b+3,a,:,:);
|
---|
142 | uwnd925_filtre_compomin(compteurmin,25,:,:)=uwnd(b+4,a,:,:);
|
---|
143 | uwnd925_filtre_compomin(compteurmin,26,:,:)=uwnd(b+5,a,:,:);
|
---|
144 | uwnd925_filtre_compomin(compteurmin,27,:,:)=uwnd(b+6,a,:,:);
|
---|
145 | uwnd925_filtre_compomin(compteurmin,28,:,:)=uwnd(b+7,a,:,:);
|
---|
146 | uwnd925_filtre_compomin(compteurmin,29,:,:)=uwnd(b+8,a,:,:);
|
---|
147 | uwnd925_filtre_compomin(compteurmin,30,:,:)=uwnd(b+9,a,:,:);
|
---|
148 | uwnd925_filtre_compomin(compteurmin,31,:,:)=uwnd(b+10,a,:,:);
|
---|
149 | end;
|
---|
150 | end;
|
---|
151 | end;
|
---|
152 | end;
|
---|
153 |
|
---|
154 |
|
---|
155 | % on fait la somme des valeurs de uwnd925_filtreentiel sur le nbre d occurences
|
---|
156 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
157 | uwnd925_filtre_compomin1(:,:,:)=nanmean(uwnd925_filtre_compomin); clear uwnd925_filtre_compomin;
|
---|
158 | uwnd925_filtre_compomax1(:,:,:)=nanmean(uwnd925_filtre_compomax); clear uwnd925_filtre_compomax;
|
---|
159 |
|
---|
160 |
|
---|
161 |
|
---|
162 |
|
---|
163 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
164 |
|
---|
165 | % etape 1 :on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
166 | % on compile sous forme d'un seul fichier
|
---|
167 |
|
---|
168 | vwnd925=zeros(122,49,144,28);
|
---|
169 |
|
---|
170 | siz=31+28+31+30+31+1; sizbis=31+28+31+30+31+30+31+31+30;
|
---|
171 | ncload('vwnd925.1979.nc'); vwnd925(:,:,:,1)=vwnd(siz:sizbis,1,:,:); clear vwnd;
|
---|
172 | ncload('vwnd925.1980.nc'); vwnd925(:,:,:,2)=vwnd(siz+1:sizbis+1,1,:,:); clear vwnd;
|
---|
173 | ncload('vwnd925.1981.nc'); vwnd925(:,:,:,3)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
174 | ncload('vwnd925.1982.nc'); vwnd925(:,:,:,4)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
175 | ncload('vwnd925.1983.nc'); vwnd925(:,:,:,5)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
176 | ncload('vwnd925.1984.nc'); vwnd925(:,:,:,6)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
177 | ncload('vwnd925.1985.nc'); vwnd925(:,:,:,7)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
178 | ncload('vwnd925.1986.nc'); vwnd925(:,:,:,8)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
179 | ncload('vwnd925.1987.nc'); vwnd925(:,:,:,9)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
180 | ncload('vwnd925.1988.nc'); vwnd925(:,:,:,10)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
181 | ncload('vwnd925.1989.nc'); vwnd925(:,:,:,11)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
182 | ncload('vwnd925.1990.nc'); vwnd925(:,:,:,12)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
183 | ncload('vwnd925.1991.nc'); vwnd925(:,:,:,13)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
184 | ncload('vwnd925.1992.nc'); vwnd925(:,:,:,14)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
185 | ncload('vwnd925.1993.nc'); vwnd925(:,:,:,15)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
186 | ncload('vwnd925.1994.nc'); vwnd925(:,:,:,16)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
187 | ncload('vwnd925.1995.nc'); vwnd925(:,:,:,17)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
188 | ncload('vwnd925.1996.nc'); vwnd925(:,:,:,18)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
189 | ncload('vwnd925.1997.nc'); vwnd925(:,:,:,19)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
190 | ncload('vwnd925.1998.nc'); vwnd925(:,:,:,20)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
191 | ncload('vwnd925.1999.nc'); vwnd925(:,:,:,21)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
192 | ncload('vwnd925.2000.nc'); vwnd925(:,:,:,22)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
193 | ncload('vwnd925.2001.nc'); vwnd925(:,:,:,23)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
194 | ncload('vwnd925.2002.nc'); vwnd925(:,:,:,24)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
195 | ncload('vwnd925.2003.nc'); vwnd925(:,:,:,25)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
196 | ncload('vwnd925.2004.nc'); vwnd925(:,:,:,26)=vwnd(siz+1:sizbis+1,1,:,:);clear vwnd;
|
---|
197 | ncload('vwnd925.2005.nc'); vwnd925(:,:,:,27)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
198 | ncload('vwnd925.2006.nc'); vwnd925(:,:,:,28)=vwnd(siz:sizbis,1,:,:);clear vwnd;
|
---|
199 |
|
---|
200 | clear siz1 siz1bis;
|
---|
201 |
|
---|
202 | vwnd=permute(vwnd925,[1 4 2 3]);
|
---|
203 | clear vwnd925;
|
---|
204 |
|
---|
205 | %%%%%%%%%%%%%% FICHIER OLR
|
---|
206 | % ouverture / lecture du fichier
|
---|
207 | load eof12_rossby_1030.txt; ind_olr=reshape(eof12_rossby_1030,122,28);
|
---|
208 | clear eof12_rossby_1030
|
---|
209 | k=122*28;
|
---|
210 |
|
---|
211 | % on calcule l ecart type sur la serie entiere de l OLR
|
---|
212 | ind_olr1=reshape(ind_olr, k,1);
|
---|
213 | ind_olr2=std(ind_olr1); clear ind_olr1;
|
---|
214 |
|
---|
215 |
|
---|
216 | % intialisation des tableaux
|
---|
217 | vwnd925_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
218 | vwnd925_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
219 |
|
---|
220 | compteurmax=0;
|
---|
221 | compteurmin=0;
|
---|
222 |
|
---|
223 | for a=1:28; % boucle sur les annees
|
---|
224 | clear delta;
|
---|
225 | delta=zeros(122,1);
|
---|
226 | for b=1:122; % boucle sur les jours : on prepare avant
|
---|
227 | if b>1;
|
---|
228 | delta(b)=ind_olr(b,a)-ind_olr(b-1,a);
|
---|
229 | end;
|
---|
230 | end;
|
---|
231 | for b=1:122; % boucle sur les jours
|
---|
232 | if (b>20 & b<112); % 1ere condition (laisser une marge de 10)
|
---|
233 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
234 | if (delta(b+1)<0 & delta(b)<0 & delta(b-1)>0 & delta(b-2)>0 & ind_olr(b,a)>ind_olr2);
|
---|
235 | compteurmax=compteurmax+1;
|
---|
236 | vwnd925_filtre_compomax(compteurmax,1,:,:)=vwnd(b-20,a,:,:);
|
---|
237 | vwnd925_filtre_compomax(compteurmax,2,:,:)=vwnd(b-19,a,:,:);
|
---|
238 | vwnd925_filtre_compomax(compteurmax,3,:,:)=vwnd(b-18,a,:,:);
|
---|
239 | vwnd925_filtre_compomax(compteurmax,4,:,:)=vwnd(b-17,a,:,:);
|
---|
240 | vwnd925_filtre_compomax(compteurmax,5,:,:)=vwnd(b-16,a,:,:);
|
---|
241 | vwnd925_filtre_compomax(compteurmax,6,:,:)=vwnd(b-15,a,:,:);
|
---|
242 | vwnd925_filtre_compomax(compteurmax,7,:,:)=vwnd(b-14,a,:,:);
|
---|
243 | vwnd925_filtre_compomax(compteurmax,8,:,:)=vwnd(b-13,a,:,:);
|
---|
244 | vwnd925_filtre_compomax(compteurmax,9,:,:)=vwnd(b-12,a,:,:);
|
---|
245 | vwnd925_filtre_compomax(compteurmax,10,:,:)=vwnd(b-11,a,:,:);
|
---|
246 |
|
---|
247 | vwnd925_filtre_compomax(compteurmax,11,:,:)=vwnd(b-10,a,:,:);
|
---|
248 | vwnd925_filtre_compomax(compteurmax,12,:,:)=vwnd(b-9,a,:,:);
|
---|
249 | vwnd925_filtre_compomax(compteurmax,13,:,:)=vwnd(b-8,a,:,:);
|
---|
250 | vwnd925_filtre_compomax(compteurmax,14,:,:)=vwnd(b-7,a,:,:);
|
---|
251 | vwnd925_filtre_compomax(compteurmax,15,:,:)=vwnd(b-6,a,:,:);
|
---|
252 | vwnd925_filtre_compomax(compteurmax,16,:,:)=vwnd(b-5,a,:,:);
|
---|
253 | vwnd925_filtre_compomax(compteurmax,17,:,:)=vwnd(b-4,a,:,:);
|
---|
254 | vwnd925_filtre_compomax(compteurmax,18,:,:)=vwnd(b-3,a,:,:);
|
---|
255 | vwnd925_filtre_compomax(compteurmax,19,:,:)=vwnd(b-2,a,:,:);
|
---|
256 | vwnd925_filtre_compomax(compteurmax,20,:,:)=vwnd(b-1,a,:,:);
|
---|
257 |
|
---|
258 | vwnd925_filtre_compomax(compteurmax,21,:,:)=vwnd(b,a,:,:);
|
---|
259 | vwnd925_filtre_compomax(compteurmax,22,:,:)=vwnd(b+1,a,:,:);
|
---|
260 | vwnd925_filtre_compomax(compteurmax,23,:,:)=vwnd(b+2,a,:,:);
|
---|
261 | vwnd925_filtre_compomax(compteurmax,24,:,:)=vwnd(b+3,a,:,:);
|
---|
262 | vwnd925_filtre_compomax(compteurmax,25,:,:)=vwnd(b+4,a,:,:);
|
---|
263 | vwnd925_filtre_compomax(compteurmax,26,:,:)=vwnd(b+5,a,:,:);
|
---|
264 | vwnd925_filtre_compomax(compteurmax,27,:,:)=vwnd(b+6,a,:,:);
|
---|
265 | vwnd925_filtre_compomax(compteurmax,28,:,:)=vwnd(b+7,a,:,:);
|
---|
266 | vwnd925_filtre_compomax(compteurmax,29,:,:)=vwnd(b+8,a,:,:);
|
---|
267 | vwnd925_filtre_compomax(compteurmax,30,:,:)=vwnd(b+9,a,:,:);
|
---|
268 | vwnd925_filtre_compomax(compteurmax,31,:,:)=vwnd(b+10,a,:,:);
|
---|
269 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
270 | elseif (delta(b+1)>0 & delta(b)>0 & delta(b-1)<0 & delta(b-2)<0 & ind_olr(b,a)<(-ind_olr2));
|
---|
271 | compteurmin=compteurmin+1;
|
---|
272 |
|
---|
273 | vwnd925_filtre_compomin(compteurmin,1,:,:)=vwnd(b-20,a,:,:);
|
---|
274 | vwnd925_filtre_compomin(compteurmin,2,:,:)=vwnd(b-19,a,:,:);
|
---|
275 | vwnd925_filtre_compomin(compteurmin,3,:,:)=vwnd(b-18,a,:,:);
|
---|
276 | vwnd925_filtre_compomin(compteurmin,4,:,:)=vwnd(b-17,a,:,:);
|
---|
277 | vwnd925_filtre_compomin(compteurmin,5,:,:)=vwnd(b-16,a,:,:);
|
---|
278 | vwnd925_filtre_compomin(compteurmin,6,:,:)=vwnd(b-15,a,:,:);
|
---|
279 | vwnd925_filtre_compomin(compteurmin,7,:,:)=vwnd(b-14,a,:,:);
|
---|
280 | vwnd925_filtre_compomin(compteurmin,8,:,:)=vwnd(b-13,a,:,:);
|
---|
281 | vwnd925_filtre_compomin(compteurmin,9,:,:)=vwnd(b-12,a,:,:);
|
---|
282 | vwnd925_filtre_compomin(compteurmin,10,:,:)=vwnd(b-11,a,:,:);
|
---|
283 |
|
---|
284 | vwnd925_filtre_compomin(compteurmin,11,:,:)=vwnd(b-10,a,:,:);
|
---|
285 | vwnd925_filtre_compomin(compteurmin,12,:,:)=vwnd(b-9,a,:,:);
|
---|
286 | vwnd925_filtre_compomin(compteurmin,13,:,:)=vwnd(b-8,a,:,:);
|
---|
287 | vwnd925_filtre_compomin(compteurmin,14,:,:)=vwnd(b-7,a,:,:);
|
---|
288 | vwnd925_filtre_compomin(compteurmin,15,:,:)=vwnd(b-6,a,:,:);
|
---|
289 | vwnd925_filtre_compomin(compteurmin,16,:,:)=vwnd(b-5,a,:,:);
|
---|
290 | vwnd925_filtre_compomin(compteurmin,17,:,:)=vwnd(b-4,a,:,:);
|
---|
291 | vwnd925_filtre_compomin(compteurmin,18,:,:)=vwnd(b-3,a,:,:);
|
---|
292 | vwnd925_filtre_compomin(compteurmin,19,:,:)=vwnd(b-2,a,:,:);
|
---|
293 | vwnd925_filtre_compomin(compteurmin,20,:,:)=vwnd(b-1,a,:,:);
|
---|
294 |
|
---|
295 | vwnd925_filtre_compomin(compteurmin,21,:,:)=vwnd(b,a,:,:);
|
---|
296 | vwnd925_filtre_compomin(compteurmin,22,:,:)=vwnd(b+1,a,:,:);
|
---|
297 | vwnd925_filtre_compomin(compteurmin,23,:,:)=vwnd(b+2,a,:,:);
|
---|
298 | vwnd925_filtre_compomin(compteurmin,24,:,:)=vwnd(b+3,a,:,:);
|
---|
299 | vwnd925_filtre_compomin(compteurmin,25,:,:)=vwnd(b+4,a,:,:);
|
---|
300 | vwnd925_filtre_compomin(compteurmin,26,:,:)=vwnd(b+5,a,:,:);
|
---|
301 | vwnd925_filtre_compomin(compteurmin,27,:,:)=vwnd(b+6,a,:,:);
|
---|
302 | vwnd925_filtre_compomin(compteurmin,28,:,:)=vwnd(b+7,a,:,:);
|
---|
303 | vwnd925_filtre_compomin(compteurmin,29,:,:)=vwnd(b+8,a,:,:);
|
---|
304 | vwnd925_filtre_compomin(compteurmin,30,:,:)=vwnd(b+9,a,:,:);
|
---|
305 | vwnd925_filtre_compomin(compteurmin,31,:,:)=vwnd(b+10,a,:,:);
|
---|
306 | end;
|
---|
307 | end;
|
---|
308 | end;
|
---|
309 | end;
|
---|
310 |
|
---|
311 |
|
---|
312 | % on fait la somme des valeurs de vwnd925_filtreentiel sur le nbre d occurences
|
---|
313 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
314 | vwnd925_filtre_compomin1(:,:,:)=nanmean(vwnd925_filtre_compomin); clear vwnd925_filtre_compomin;
|
---|
315 | vwnd925_filtre_compomax1(:,:,:)=nanmean(vwnd925_filtre_compomax); clear vwnd925_filtre_compomax;
|
---|
316 |
|
---|
317 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
318 |
|
---|
319 | figure(1);
|
---|
320 | orient('landscape');
|
---|
321 |
|
---|
322 | for e=1:4;
|
---|
323 | a=4-(e-1)+1;
|
---|
324 | f=2*(a-1)+1;
|
---|
325 |
|
---|
326 | clear delta_uwnd925_filtre_min;
|
---|
327 | clear delta_vwnd925_filtre_min;
|
---|
328 | delta_uwnd925_filtre_min=zeros(49,144);
|
---|
329 | delta_vwnd925_filtre_min=zeros(49,144);
|
---|
330 | for b=1:49;
|
---|
331 | for c=1:144;
|
---|
332 | delta_uwnd925_filtre_min(b,c)=uwnd925_filtre_compomin1(f,b,c)-uwnd925_filtre_compomax1(f,b,c);
|
---|
333 | delta_vwnd925_filtre_min(b,c)=vwnd925_filtre_compomin1(f,b,c)-vwnd925_filtre_compomax1(f,b,c);
|
---|
334 |
|
---|
335 | end;
|
---|
336 | end;
|
---|
337 | subplot(4,1,5-e);
|
---|
338 |
|
---|
339 | delta_uwnd925_filtre=zeros(49,144);
|
---|
340 | delta_vwnd925_filtre=zeros(49,144);
|
---|
341 | delta_uwnd925_filtre(:,1:72)=delta_uwnd925_filtre_min(:,73:144);
|
---|
342 | delta_uwnd925_filtre(:,73:144)=delta_uwnd925_filtre_min(:,1:72);
|
---|
343 | delta_vwnd925_filtre(:,1:72)=delta_vwnd925_filtre_min(:,73:144);
|
---|
344 | delta_vwnd925_filtre(:,73:144)=delta_vwnd925_filtre_min(:,1:72);
|
---|
345 | xi=[-180:3.75:176.25]; xi=xi'; yi=[-87.1591:3.708895:87.1591];
|
---|
346 | clear carteu cartev;
|
---|
347 | carteu=interp2(lon-180,lat,delta_uwnd925_filtre,xi,yi);
|
---|
348 | cartev=interp2(lon-180,lat,delta_vwnd925_filtre,xi,yi);
|
---|
349 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
350 | if e==1;
|
---|
351 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' 60W';' 40W';' 20W';' 0 ';' 20E';' 40E';' 60E'; ' 80E';'100E';'120E'],'fontsize',6);
|
---|
352 | else;
|
---|
353 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' ';' ';' ';' ';' ';' ';' ';' ';' ';' '],'fontsize',6);
|
---|
354 | end
|
---|
355 | set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0 ';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
|
---|
356 | cartemonde1;
|
---|
357 | set (gca,'tickDir','out');
|
---|
358 | axis equal
|
---|
359 | axis([-60 120 -20 40]);
|
---|
360 |
|
---|
361 | if e==4;
|
---|
362 | title('Geopotential winds 925hPa -EOF12 ER1030d - ITCZ 7.5-12.5','fontsize',8) ;
|
---|
363 | end
|
---|
364 | text(-150,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
365 | pos_vert=e/6.1;
|
---|
366 | % set(gca,'position',[0.2 pos_vert 0.3 1/6.1])
|
---|
367 | set(gca,'position',[0.2 pos_vert 0.4 1/6.1])
|
---|
368 | end;
|
---|
369 |
|
---|
370 |
|
---|
371 | print -depsc2 composite_wind925_EOF12_ER1030_part1.eps;
|
---|
372 |
|
---|
373 |
|
---|
374 |
|
---|
375 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
376 |
|
---|
377 | figure(2);
|
---|
378 | orient('landscape');
|
---|
379 |
|
---|
380 | for e=1:4;
|
---|
381 | a=4-(e-1)+1+4;
|
---|
382 | f=2*(a-1)+1;
|
---|
383 |
|
---|
384 | clear delta_uwnd925_filtre_min;
|
---|
385 | clear delta_vwnd925_filtre_min;
|
---|
386 | delta_uwnd925_filtre_min=zeros(49,144);
|
---|
387 | delta_vwnd925_filtre_min=zeros(49,144);
|
---|
388 | for b=1:49;
|
---|
389 | for c=1:144;
|
---|
390 | delta_uwnd925_filtre_min(b,c)=uwnd925_filtre_compomin1(f,b,c)-uwnd925_filtre_compomax1(f,b,c);
|
---|
391 | delta_vwnd925_filtre_min(b,c)=vwnd925_filtre_compomin1(f,b,c)-vwnd925_filtre_compomax1(f,b,c);
|
---|
392 |
|
---|
393 | end;
|
---|
394 | end;
|
---|
395 | subplot(4,1,5-e);
|
---|
396 |
|
---|
397 | delta_uwnd925_filtre=zeros(49,144);
|
---|
398 | delta_vwnd925_filtre=zeros(49,144);
|
---|
399 | delta_uwnd925_filtre(:,1:72)=delta_uwnd925_filtre_min(:,73:144);
|
---|
400 | delta_uwnd925_filtre(:,73:144)=delta_uwnd925_filtre_min(:,1:72);
|
---|
401 | delta_vwnd925_filtre(:,1:72)=delta_vwnd925_filtre_min(:,73:144);
|
---|
402 | delta_vwnd925_filtre(:,73:144)=delta_vwnd925_filtre_min(:,1:72);
|
---|
403 | xi=[-180:3.75:176.25]; xi=xi'; yi=[-87.1591:3.708895:87.1591];
|
---|
404 | clear carteu cartev;
|
---|
405 | carteu=interp2(lon-180,lat,delta_uwnd925_filtre,xi,yi);
|
---|
406 | cartev=interp2(lon-180,lat,delta_vwnd925_filtre,xi,yi);
|
---|
407 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
408 | if e==1;
|
---|
409 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' 60W';' 40W';' 20W';' 0 ';' 20E';' 40E';' 60E'; ' 80E';'100E';'120E'],'fontsize',6);
|
---|
410 | else;
|
---|
411 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' ';' ';' ';' ';' ';' ';' ';' ';' ';' '],'fontsize',6);
|
---|
412 | end
|
---|
413 | set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0 ';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
|
---|
414 | cartemonde1;
|
---|
415 | set (gca,'tickDir','out');
|
---|
416 | axis equal
|
---|
417 | axis([-60 120 -20 40]);
|
---|
418 |
|
---|
419 | if e==4;
|
---|
420 | title('Geopotential winds 925hPa -EOF12 ER1030d - ITCZ 7.5-12.5','fontsize',8) ;
|
---|
421 | end
|
---|
422 | text(-150,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
423 | pos_vert=e/6.1;
|
---|
424 | set(gca,'position',[0.2 pos_vert 0.4 1/6.1])
|
---|
425 | end;
|
---|
426 |
|
---|
427 |
|
---|
428 | print -depsc2 composite_wind925_EOF12_ER1030_part2.eps;
|
---|
429 |
|
---|
430 |
|
---|
431 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
432 |
|
---|
433 | figure(3);
|
---|
434 | orient('landscape');
|
---|
435 |
|
---|
436 | for e=1:4;
|
---|
437 | a=4-(e-1)+1+8;
|
---|
438 | f=2*(a-1)+1;
|
---|
439 |
|
---|
440 | clear delta_uwnd925_filtre_min;
|
---|
441 | clear delta_vwnd925_filtre_min;
|
---|
442 | delta_uwnd925_filtre_min=zeros(49,144);
|
---|
443 | delta_vwnd925_filtre_min=zeros(49,144);
|
---|
444 | for b=1:49;
|
---|
445 | for c=1:144;
|
---|
446 | delta_uwnd925_filtre_min(b,c)=uwnd925_filtre_compomin1(f,b,c)-uwnd925_filtre_compomax1(f,b,c);
|
---|
447 | delta_vwnd925_filtre_min(b,c)=vwnd925_filtre_compomin1(f,b,c)-vwnd925_filtre_compomax1(f,b,c);
|
---|
448 |
|
---|
449 | end;
|
---|
450 | end;
|
---|
451 | subplot(4,1,5-e);
|
---|
452 |
|
---|
453 | delta_uwnd925_filtre=zeros(49,144);
|
---|
454 | delta_vwnd925_filtre=zeros(49,144);
|
---|
455 | delta_uwnd925_filtre(:,1:72)=delta_uwnd925_filtre_min(:,73:144);
|
---|
456 | delta_uwnd925_filtre(:,73:144)=delta_uwnd925_filtre_min(:,1:72);
|
---|
457 | delta_vwnd925_filtre(:,1:72)=delta_vwnd925_filtre_min(:,73:144);
|
---|
458 | delta_vwnd925_filtre(:,73:144)=delta_vwnd925_filtre_min(:,1:72);
|
---|
459 | xi=[-180:3.75:176.25]; xi=xi'; yi=[-87.1591:3.708895:87.1591];
|
---|
460 | clear carteu cartev;
|
---|
461 | carteu=interp2(lon-180,lat,delta_uwnd925_filtre,xi,yi);
|
---|
462 | cartev=interp2(lon-180,lat,delta_vwnd925_filtre,xi,yi);
|
---|
463 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
464 | if e==1;
|
---|
465 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' 60W';' 40W';' 20W';' 0 ';' 20E';' 40E';' 60E'; ' 80E';'100E';'120E'],'fontsize',6);
|
---|
466 | else;
|
---|
467 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' ';' ';' ';' ';' ';' ';' ';' ';' ';' '],'fontsize',6);
|
---|
468 | end
|
---|
469 | set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0 ';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
|
---|
470 | cartemonde1;
|
---|
471 | set (gca,'tickDir','out');
|
---|
472 | axis equal
|
---|
473 | axis([-60 120 -20 40]);
|
---|
474 |
|
---|
475 | if e==4;
|
---|
476 | title('Geopotential winds 925hPa -EOF12 ER1030d - ITCZ 7.5-12.5','fontsize',8) ;
|
---|
477 | end
|
---|
478 | text(-150,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
479 | pos_vert=e/6.1;
|
---|
480 | set(gca,'position',[0.2 pos_vert 0.4 1/6.1])
|
---|
481 | end;
|
---|
482 |
|
---|
483 |
|
---|
484 | print -depsc2 composite_wind925_EOF12_ER1030_part3.eps;
|
---|
485 |
|
---|
486 |
|
---|
487 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
488 |
|
---|
489 | figure(4);
|
---|
490 | orient('landscape');
|
---|
491 |
|
---|
492 | for e=1:4;
|
---|
493 | a=4-(e-1)+1+10;
|
---|
494 | f=2*(a-1)+1;
|
---|
495 |
|
---|
496 | clear delta_uwnd925_filtre_min;
|
---|
497 | clear delta_vwnd925_filtre_min;
|
---|
498 | delta_uwnd925_filtre_min=zeros(49,144);
|
---|
499 | delta_vwnd925_filtre_min=zeros(49,144);
|
---|
500 | for b=1:49;
|
---|
501 | for c=1:144;
|
---|
502 | delta_uwnd925_filtre_min(b,c)=uwnd925_filtre_compomin1(f,b,c)-uwnd925_filtre_compomax1(f,b,c);
|
---|
503 | delta_vwnd925_filtre_min(b,c)=vwnd925_filtre_compomin1(f,b,c)-vwnd925_filtre_compomax1(f,b,c);
|
---|
504 |
|
---|
505 | end;
|
---|
506 | end;
|
---|
507 | subplot(4,1,5-e);
|
---|
508 |
|
---|
509 | delta_uwnd925_filtre=zeros(49,144);
|
---|
510 | delta_vwnd925_filtre=zeros(49,144);
|
---|
511 | delta_uwnd925_filtre(:,1:72)=delta_uwnd925_filtre_min(:,73:144);
|
---|
512 | delta_uwnd925_filtre(:,73:144)=delta_uwnd925_filtre_min(:,1:72);
|
---|
513 | delta_vwnd925_filtre(:,1:72)=delta_vwnd925_filtre_min(:,73:144);
|
---|
514 | delta_vwnd925_filtre(:,73:144)=delta_vwnd925_filtre_min(:,1:72);
|
---|
515 | xi=[-180:3.75:176.25]; xi=xi'; yi=[-87.1591:3.708895:87.1591];
|
---|
516 | clear carteu cartev;
|
---|
517 | carteu=interp2(lon-180,lat,delta_uwnd925_filtre,xi,yi);
|
---|
518 | cartev=interp2(lon-180,lat,delta_vwnd925_filtre,xi,yi);
|
---|
519 | aa=quiver(xi,yi,carteu,cartev,'k');
|
---|
520 | if e==1;
|
---|
521 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' 60W';' 40W';' 20W';' 0 ';' 20E';' 40E';' 60E'; ' 80E';'100E';'120E'],'fontsize',6);
|
---|
522 | else;
|
---|
523 | set (gca,'XTick',[-60:20:120],'XTickLabel',[' ';' ';' ';' ';' ';' ';' ';' ';' ';' '],'fontsize',6);
|
---|
524 | end
|
---|
525 | set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0 ';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
|
---|
526 | cartemonde1;
|
---|
527 | set (gca,'tickDir','out');
|
---|
528 | axis equal
|
---|
529 | axis([-60 120 -20 40]);
|
---|
530 |
|
---|
531 | if e==4;
|
---|
532 | title('Geopotential winds 925hPa -EOF12 ER1030d - ITCZ 7.5-12.5','fontsize',8) ;
|
---|
533 | end
|
---|
534 | text(-150,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
535 | pos_vert=e/6.1;
|
---|
536 | set(gca,'position',[0.2 pos_vert 0.4 1/6.1])
|
---|
537 | end;
|
---|
538 |
|
---|
539 | print -depsc2 composite_wind925_EOF12_ER1030_part4.eps;
|
---|
540 |
|
---|
541 |
|
---|
542 |
|
---|