1 | % initialisation
|
---|
2 | clear; close all;
|
---|
3 |
|
---|
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 | hgt700=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('hgt700.1979.nc'); hgt700(:,:,:,1)=hgt(siz:sizbis,1,:,:); clear hgt;
|
---|
12 | ncload('hgt700.1980.nc'); hgt700(:,:,:,2)=hgt(siz+1:sizbis+1,1,:,:); clear hgt;
|
---|
13 | ncload('hgt700.1981.nc'); hgt700(:,:,:,3)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
14 | ncload('hgt700.1982.nc'); hgt700(:,:,:,4)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
15 | ncload('hgt700.1983.nc'); hgt700(:,:,:,5)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
16 | ncload('hgt700.1984.nc'); hgt700(:,:,:,6)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
17 | ncload('hgt700.1985.nc'); hgt700(:,:,:,7)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
18 | ncload('hgt700.1986.nc'); hgt700(:,:,:,8)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
19 | ncload('hgt700.1987.nc'); hgt700(:,:,:,9)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
20 | ncload('hgt700.1988.nc'); hgt700(:,:,:,10)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
21 | ncload('hgt700.1989.nc'); hgt700(:,:,:,11)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
22 | ncload('hgt700.1990.nc'); hgt700(:,:,:,12)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
23 | ncload('hgt700.1991.nc'); hgt700(:,:,:,13)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
24 | ncload('hgt700.1992.nc'); hgt700(:,:,:,14)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
25 | ncload('hgt700.1993.nc'); hgt700(:,:,:,15)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
26 | ncload('hgt700.1994.nc'); hgt700(:,:,:,16)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
27 | ncload('hgt700.1995.nc'); hgt700(:,:,:,17)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
28 | ncload('hgt700.1996.nc'); hgt700(:,:,:,18)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
29 | ncload('hgt700.1997.nc'); hgt700(:,:,:,19)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
30 | ncload('hgt700.1998.nc'); hgt700(:,:,:,20)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
31 | ncload('hgt700.1999.nc'); hgt700(:,:,:,21)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
32 | ncload('hgt700.2000.nc'); hgt700(:,:,:,22)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
33 | ncload('hgt700.2001.nc'); hgt700(:,:,:,23)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
34 | ncload('hgt700.2002.nc'); hgt700(:,:,:,24)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
35 | ncload('hgt700.2003.nc'); hgt700(:,:,:,25)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
36 | ncload('hgt700.2004.nc'); hgt700(:,:,:,26)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
37 | ncload('hgt700.2005.nc'); hgt700(:,:,:,27)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
38 | ncload('hgt700.2006.nc'); hgt700(:,:,:,28)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
39 |
|
---|
40 |
|
---|
41 | clear siz1 siz1bis;
|
---|
42 |
|
---|
43 | hgt=permute(hgt700,[1 4 2 3]);
|
---|
44 | clear hgt700;
|
---|
45 |
|
---|
46 |
|
---|
47 | %%%%%%%%%%%%%%% FICHIER OLR
|
---|
48 | % ouverture / lecture du fichier
|
---|
49 | load eof12_rossby_30100.txt
|
---|
50 | ind_olr=reshape(eof12_rossby_30100,122,28);
|
---|
51 | k=122*28;
|
---|
52 | clear eof12_rossby_30100
|
---|
53 | % on calcule l ecart type sur la serie entiere de l OLR
|
---|
54 | ind_olr1=reshape(ind_olr, k,1);
|
---|
55 | ind_olr2=std(ind_olr1); clear ind_olr1;
|
---|
56 |
|
---|
57 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
58 | % GEOPOTENTIEL
|
---|
59 | % intialisation des tableaux
|
---|
60 | hgt700_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
61 | hgt700_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>22 && 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 | hgt700_filtre_compomax(compteurmax,1,:,:)=hgt(b-21,a,:,:);
|
---|
80 | hgt700_filtre_compomax(compteurmax,2,:,:)=hgt(b-20,a,:,:);
|
---|
81 | hgt700_filtre_compomax(compteurmax,3,:,:)=hgt(b-19,a,:,:);
|
---|
82 | hgt700_filtre_compomax(compteurmax,4,:,:)=hgt(b-18,a,:,:);
|
---|
83 | hgt700_filtre_compomax(compteurmax,5,:,:)=hgt(b-17,a,:,:);
|
---|
84 | hgt700_filtre_compomax(compteurmax,6,:,:)=hgt(b-16,a,:,:);
|
---|
85 | hgt700_filtre_compomax(compteurmax,7,:,:)=hgt(b-15,a,:,:);
|
---|
86 | hgt700_filtre_compomax(compteurmax,8,:,:)=hgt(b-14,a,:,:);
|
---|
87 | hgt700_filtre_compomax(compteurmax,9,:,:)=hgt(b-13,a,:,:);
|
---|
88 | hgt700_filtre_compomax(compteurmax,10,:,:)=hgt(b-12,a,:,:);
|
---|
89 | hgt700_filtre_compomax(compteurmax,11,:,:)=hgt(b-11,a,:,:);
|
---|
90 |
|
---|
91 | hgt700_filtre_compomax(compteurmax,12,:,:)=hgt(b-10,a,:,:);
|
---|
92 | hgt700_filtre_compomax(compteurmax,13,:,:)=hgt(b-9,a,:,:);
|
---|
93 | hgt700_filtre_compomax(compteurmax,14,:,:)=hgt(b-8,a,:,:);
|
---|
94 | hgt700_filtre_compomax(compteurmax,15,:,:)=hgt(b-7,a,:,:);
|
---|
95 | hgt700_filtre_compomax(compteurmax,16,:,:)=hgt(b-6,a,:,:);
|
---|
96 | hgt700_filtre_compomax(compteurmax,17,:,:)=hgt(b-5,a,:,:);
|
---|
97 | hgt700_filtre_compomax(compteurmax,18,:,:)=hgt(b-4,a,:,:);
|
---|
98 | hgt700_filtre_compomax(compteurmax,19,:,:)=hgt(b-3,a,:,:);
|
---|
99 | hgt700_filtre_compomax(compteurmax,20,:,:)=hgt(b-2,a,:,:);
|
---|
100 | hgt700_filtre_compomax(compteurmax,21,:,:)=hgt(b-1,a,:,:);
|
---|
101 |
|
---|
102 | hgt700_filtre_compomax(compteurmax,22,:,:)=hgt(b,a,:,:);
|
---|
103 | hgt700_filtre_compomax(compteurmax,23,:,:)=hgt(b+1,a,:,:);
|
---|
104 | hgt700_filtre_compomax(compteurmax,24,:,:)=hgt(b+2,a,:,:);
|
---|
105 | hgt700_filtre_compomax(compteurmax,25,:,:)=hgt(b+3,a,:,:);
|
---|
106 | hgt700_filtre_compomax(compteurmax,26,:,:)=hgt(b+4,a,:,:);
|
---|
107 | hgt700_filtre_compomax(compteurmax,27,:,:)=hgt(b+5,a,:,:);
|
---|
108 | hgt700_filtre_compomax(compteurmax,28,:,:)=hgt(b+6,a,:,:);
|
---|
109 | hgt700_filtre_compomax(compteurmax,29,:,:)=hgt(b+7,a,:,:);
|
---|
110 | hgt700_filtre_compomax(compteurmax,30,:,:)=hgt(b+8,a,:,:);
|
---|
111 | hgt700_filtre_compomax(compteurmax,31,:,:)=hgt(b+9,a,:,:);
|
---|
112 |
|
---|
113 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
114 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && ind_olr(b,a)<(-ind_olr2));
|
---|
115 | compteurmin=compteurmin+1;
|
---|
116 | hgt700_filtre_compomin(compteurmin,1,:,:)=hgt(b-21,a,:,:);
|
---|
117 | hgt700_filtre_compomin(compteurmin,2,:,:)=hgt(b-20,a,:,:);
|
---|
118 | hgt700_filtre_compomin(compteurmin,3,:,:)=hgt(b-19,a,:,:);
|
---|
119 | hgt700_filtre_compomin(compteurmin,4,:,:)=hgt(b-18,a,:,:);
|
---|
120 | hgt700_filtre_compomin(compteurmin,5,:,:)=hgt(b-17,a,:,:);
|
---|
121 | hgt700_filtre_compomin(compteurmin,6,:,:)=hgt(b-16,a,:,:);
|
---|
122 | hgt700_filtre_compomin(compteurmin,7,:,:)=hgt(b-15,a,:,:);
|
---|
123 | hgt700_filtre_compomin(compteurmin,8,:,:)=hgt(b-14,a,:,:);
|
---|
124 | hgt700_filtre_compomin(compteurmin,9,:,:)=hgt(b-13,a,:,:);
|
---|
125 | hgt700_filtre_compomin(compteurmin,10,:,:)=hgt(b-12,a,:,:);
|
---|
126 | hgt700_filtre_compomin(compteurmin,11,:,:)=hgt(b-11,a,:,:);
|
---|
127 |
|
---|
128 | hgt700_filtre_compomin(compteurmin,12,:,:)=hgt(b-10,a,:,:);
|
---|
129 | hgt700_filtre_compomin(compteurmin,13,:,:)=hgt(b-9,a,:,:);
|
---|
130 | hgt700_filtre_compomin(compteurmin,14,:,:)=hgt(b-8,a,:,:);
|
---|
131 | hgt700_filtre_compomin(compteurmin,15,:,:)=hgt(b-7,a,:,:);
|
---|
132 | hgt700_filtre_compomin(compteurmin,16,:,:)=hgt(b-6,a,:,:);
|
---|
133 | hgt700_filtre_compomin(compteurmin,17,:,:)=hgt(b-5,a,:,:);
|
---|
134 | hgt700_filtre_compomin(compteurmin,18,:,:)=hgt(b-4,a,:,:);
|
---|
135 | hgt700_filtre_compomin(compteurmin,19,:,:)=hgt(b-3,a,:,:);
|
---|
136 | hgt700_filtre_compomin(compteurmin,20,:,:)=hgt(b-2,a,:,:);
|
---|
137 | hgt700_filtre_compomin(compteurmin,21,:,:)=hgt(b-1,a,:,:);
|
---|
138 |
|
---|
139 | hgt700_filtre_compomin(compteurmin,22,:,:)=hgt(b,a,:,:);
|
---|
140 | hgt700_filtre_compomin(compteurmin,23,:,:)=hgt(b+1,a,:,:);
|
---|
141 | hgt700_filtre_compomin(compteurmin,24,:,:)=hgt(b+2,a,:,:);
|
---|
142 | hgt700_filtre_compomin(compteurmin,25,:,:)=hgt(b+3,a,:,:);
|
---|
143 | hgt700_filtre_compomin(compteurmin,26,:,:)=hgt(b+4,a,:,:);
|
---|
144 | hgt700_filtre_compomin(compteurmin,27,:,:)=hgt(b+5,a,:,:);
|
---|
145 | hgt700_filtre_compomin(compteurmin,28,:,:)=hgt(b+6,a,:,:);
|
---|
146 | hgt700_filtre_compomin(compteurmin,29,:,:)=hgt(b+7,a,:,:);
|
---|
147 | hgt700_filtre_compomin(compteurmin,30,:,:)=hgt(b+8,a,:,:);
|
---|
148 | hgt700_filtre_compomin(compteurmin,31,:,:)=hgt(b+9,a,:,:);
|
---|
149 |
|
---|
150 | end;
|
---|
151 | end;
|
---|
152 | end;
|
---|
153 | end;
|
---|
154 |
|
---|
155 |
|
---|
156 | % on fait la somme des valeurs de hgt700_filtreentiel sur le nbre d occurences
|
---|
157 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
158 | hgt700_filtre_compomin1(:,:,:)=nanmean(hgt700_filtre_compomin); clear hgt700_filtre_compomin;
|
---|
159 | hgt700_filtre_compomax1(:,:,:)=nanmean(hgt700_filtre_compomax); clear hgt700_filtre_compomax;
|
---|
160 |
|
---|
161 | x=[-10:1:10]'; %'
|
---|
162 |
|
---|
163 | figure(1);
|
---|
164 | orient('landscape');
|
---|
165 | lat=lat';
|
---|
166 |
|
---|
167 | for e=1:31;
|
---|
168 | clear delta_hgt700_filtre_min;
|
---|
169 | delta_hgt700_filtre_min=zeros(49,144);
|
---|
170 | for b=1:49;
|
---|
171 | for c=1:144;
|
---|
172 | delta_hgt700_filtre_min(b,c)=hgt700_filtre_compomin1(e,b,c)-hgt700_filtre_compomax1(e,b,c);
|
---|
173 | end;
|
---|
174 | end;
|
---|
175 | delta_hgt700=zeros(49,144);
|
---|
176 | delta_hgt700(:,1:72)=delta_hgt700_filtre_min(:,73:144);
|
---|
177 | delta_hgt700(:,73:144)=delta_hgt700_filtre_min(:,1:72);
|
---|
178 | delta_hgt700_filtre_min=flipud(delta_hgt700);
|
---|
179 |
|
---|
180 | if e==1;
|
---|
181 | sauvegrads('composite_hgt700_mode_rossby_30100_moins21',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
182 | elseif e==2;
|
---|
183 | sauvegrads('composite_hgt700_mode_rossby_30100_moins20',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
184 | elseif e==3;
|
---|
185 | sauvegrads('composite_hgt700_mode_rossby_30100_moins19',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
186 | elseif e==4;
|
---|
187 | sauvegrads('composite_hgt700_mode_rossby_30100_moins18',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
188 | elseif e==5;
|
---|
189 | sauvegrads('composite_hgt700_mode_rossby_30100_moins17',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
190 | elseif e==6;
|
---|
191 | sauvegrads('composite_hgt700_mode_rossby_30100_moins16',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
192 | elseif e==7;
|
---|
193 | sauvegrads('composite_hgt700_mode_rossby_30100_moins15',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
194 | elseif e==8;
|
---|
195 | sauvegrads('composite_hgt700_mode_rossby_30100_moins14',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
196 | elseif e==9;
|
---|
197 | sauvegrads('composite_hgt700_mode_rossby_30100_moins13',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
198 | elseif e==10;
|
---|
199 | sauvegrads('composite_hgt700_mode_rossby_30100_moins12',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
200 | elseif e==11;
|
---|
201 | sauvegrads('composite_hgt700_mode_rossby_30100_moins11',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
202 | elseif e==12;
|
---|
203 | sauvegrads('composite_hgt700_mode_rossby_30100_moins10',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
204 | elseif e==13;
|
---|
205 | sauvegrads('composite_hgt700_mode_rossby_30100_moins9',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
206 | elseif e==14;
|
---|
207 | sauvegrads('composite_hgt700_mode_rossby_30100_moins8',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
208 | elseif e==15;
|
---|
209 | sauvegrads('composite_hgt700_mode_rossby_30100_moins7',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
210 | elseif e==16;
|
---|
211 | sauvegrads('composite_hgt700_mode_rossby_30100_moins6',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
212 | elseif e==17;
|
---|
213 | sauvegrads('composite_hgt700_mode_rossby_30100_moins5',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
214 | elseif e==18;
|
---|
215 | sauvegrads('composite_hgt700_mode_rossby_30100_moins4',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
216 | elseif e==19;
|
---|
217 | sauvegrads('composite_hgt700_mode_rossby_30100_moins3',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
218 | elseif e==20;
|
---|
219 | sauvegrads('composite_hgt700_mode_rossby_30100_moins2',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
220 | elseif e==21;
|
---|
221 | sauvegrads('composite_hgt700_mode_rossby_30100_moins1',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
222 | elseif e==22;
|
---|
223 | sauvegrads('composite_hgt700_mode_rossby_30100_0',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
224 | elseif e==23;
|
---|
225 | sauvegrads('composite_hgt700_mode_rossby_30100_plus1',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
226 | elseif e==24;
|
---|
227 | sauvegrads('composite_hgt700_mode_rossby_30100_plus2',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
228 | elseif e==25;
|
---|
229 | sauvegrads('composite_hgt700_mode_rossby_30100_plus3',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
230 | elseif e==26;
|
---|
231 | sauvegrads('composite_hgt700_mode_rossby_30100_plus4',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
232 | elseif e==27;
|
---|
233 | sauvegrads('composite_hgt700_mode_rossby_30100_plus5',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
234 | elseif e==28;
|
---|
235 | sauvegrads('composite_hgt700_mode_rossby_30100_plus6',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
236 | elseif e==29;
|
---|
237 | sauvegrads('composite_hgt700_mode_rossby_30100_plus7',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
238 | elseif e==30;
|
---|
239 | sauvegrads('composite_hgt700_mode_rossby_30100_plus8',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
240 | elseif e==31;
|
---|
241 | sauvegrads('composite_hgt700_mode_rossby_30100_plus9',delta_hgt700_filtre_min,[-180 2.5 -10 2.5]);
|
---|
242 | end
|
---|
243 | delta_hgt700_filtre_min=flipud(delta_hgt700_filtre_min);
|
---|
244 | end
|
---|