[10] | 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 | hgt925=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('hgt925.1979.nc'); hgt925(:,:,:,1)=hgt(siz:sizbis,1,:,:); clear hgt;
|
---|
| 12 | ncload('hgt925.1980.nc'); hgt925(:,:,:,2)=hgt(siz+1:sizbis+1,1,:,:); clear hgt;
|
---|
| 13 | ncload('hgt925.1981.nc'); hgt925(:,:,:,3)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 14 | ncload('hgt925.1982.nc'); hgt925(:,:,:,4)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 15 | ncload('hgt925.1983.nc'); hgt925(:,:,:,5)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 16 | ncload('hgt925.1984.nc'); hgt925(:,:,:,6)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 17 | ncload('hgt925.1985.nc'); hgt925(:,:,:,7)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 18 | ncload('hgt925.1986.nc'); hgt925(:,:,:,8)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 19 | ncload('hgt925.1987.nc'); hgt925(:,:,:,9)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 20 | ncload('hgt925.1988.nc'); hgt925(:,:,:,10)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 21 | ncload('hgt925.1989.nc'); hgt925(:,:,:,11)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 22 | ncload('hgt925.1990.nc'); hgt925(:,:,:,12)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 23 | ncload('hgt925.1991.nc'); hgt925(:,:,:,13)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 24 | ncload('hgt925.1992.nc'); hgt925(:,:,:,14)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 25 | ncload('hgt925.1993.nc'); hgt925(:,:,:,15)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 26 | ncload('hgt925.1994.nc'); hgt925(:,:,:,16)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 27 | ncload('hgt925.1995.nc'); hgt925(:,:,:,17)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 28 | ncload('hgt925.1996.nc'); hgt925(:,:,:,18)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 29 | ncload('hgt925.1997.nc'); hgt925(:,:,:,19)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 30 | ncload('hgt925.1998.nc'); hgt925(:,:,:,20)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 31 | ncload('hgt925.1999.nc'); hgt925(:,:,:,21)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 32 | ncload('hgt925.2000.nc'); hgt925(:,:,:,22)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 33 | ncload('hgt925.2001.nc'); hgt925(:,:,:,23)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 34 | ncload('hgt925.2002.nc'); hgt925(:,:,:,24)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 35 | ncload('hgt925.2003.nc'); hgt925(:,:,:,25)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 36 | ncload('hgt925.2004.nc'); hgt925(:,:,:,26)=hgt(siz+1:sizbis+1,1,:,:);clear hgt;
|
---|
| 37 | ncload('hgt925.2005.nc'); hgt925(:,:,:,27)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 38 | ncload('hgt925.2006.nc'); hgt925(:,:,:,28)=hgt(siz:sizbis,1,:,:);clear hgt;
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | clear siz1 siz1bis;
|
---|
| 42 |
|
---|
| 43 | hgt=permute(hgt925,[1 4 2 3]);
|
---|
| 44 | clear hgt925;
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | %%%%%%%%%%%%%%% FICHIER OLR
|
---|
| 48 | % ouverture / lecture du fichier
|
---|
| 49 | load ind_olr_25_90_eof23.txt; ind_olr=reshape(ind_olr_25_90_eof23,122,28);
|
---|
| 50 | k=122*28;
|
---|
| 51 |
|
---|
| 52 | % on calcule l ecart type sur la serie entiere de l OLR
|
---|
| 53 | ind_olr1=reshape(ind_olr, k,1);
|
---|
| 54 | ind_olr2=std(ind_olr1); clear ind_olr1;
|
---|
| 55 |
|
---|
| 56 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
| 57 | % GEOPOTENTIEL
|
---|
| 58 | % intialisation des tableaux
|
---|
| 59 | hgt925_filtre_compomax=NaN*ones(60,31,49,144);
|
---|
| 60 | hgt925_filtre_compomin=NaN*ones(60,31,49,144);
|
---|
| 61 |
|
---|
| 62 | compteurmax=0;
|
---|
| 63 | compteurmin=0;
|
---|
| 64 |
|
---|
| 65 | for a=1:28; % boucle sur les annees
|
---|
| 66 | clear delta;
|
---|
| 67 | delta=zeros(122,1);
|
---|
| 68 | for b=1:122; % boucle sur les jours : on prepare avant
|
---|
| 69 | if b>1;
|
---|
| 70 | delta(b)=ind_olr(b,a)-ind_olr(b-1,a);
|
---|
| 71 | end;
|
---|
| 72 | end;
|
---|
| 73 | for b=1:122; % boucle sur les jours
|
---|
[15] | 74 | if (b>20 && b<112); % 1ere condition (laisser une marge de 10)
|
---|
[10] | 75 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
[15] | 76 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && ind_olr(b,a)>ind_olr2);
|
---|
[10] | 77 | compteurmax=compteurmax+1;
|
---|
| 78 | hgt925_filtre_compomax(compteurmax,1,:,:)=hgt(b-20,a,:,:);
|
---|
| 79 | hgt925_filtre_compomax(compteurmax,2,:,:)=hgt(b-19,a,:,:);
|
---|
| 80 | hgt925_filtre_compomax(compteurmax,3,:,:)=hgt(b-18,a,:,:);
|
---|
| 81 | hgt925_filtre_compomax(compteurmax,4,:,:)=hgt(b-17,a,:,:);
|
---|
| 82 | hgt925_filtre_compomax(compteurmax,5,:,:)=hgt(b-16,a,:,:);
|
---|
| 83 | hgt925_filtre_compomax(compteurmax,6,:,:)=hgt(b-15,a,:,:);
|
---|
| 84 | hgt925_filtre_compomax(compteurmax,7,:,:)=hgt(b-14,a,:,:);
|
---|
| 85 | hgt925_filtre_compomax(compteurmax,8,:,:)=hgt(b-13,a,:,:);
|
---|
| 86 | hgt925_filtre_compomax(compteurmax,9,:,:)=hgt(b-12,a,:,:);
|
---|
| 87 | hgt925_filtre_compomax(compteurmax,10,:,:)=hgt(b-11,a,:,:);
|
---|
| 88 |
|
---|
| 89 | hgt925_filtre_compomax(compteurmax,11,:,:)=hgt(b-10,a,:,:);
|
---|
| 90 | hgt925_filtre_compomax(compteurmax,12,:,:)=hgt(b-9,a,:,:);
|
---|
| 91 | hgt925_filtre_compomax(compteurmax,13,:,:)=hgt(b-8,a,:,:);
|
---|
| 92 | hgt925_filtre_compomax(compteurmax,14,:,:)=hgt(b-7,a,:,:);
|
---|
| 93 | hgt925_filtre_compomax(compteurmax,15,:,:)=hgt(b-6,a,:,:);
|
---|
| 94 | hgt925_filtre_compomax(compteurmax,16,:,:)=hgt(b-5,a,:,:);
|
---|
| 95 | hgt925_filtre_compomax(compteurmax,17,:,:)=hgt(b-4,a,:,:);
|
---|
| 96 | hgt925_filtre_compomax(compteurmax,18,:,:)=hgt(b-3,a,:,:);
|
---|
| 97 | hgt925_filtre_compomax(compteurmax,19,:,:)=hgt(b-2,a,:,:);
|
---|
| 98 | hgt925_filtre_compomax(compteurmax,20,:,:)=hgt(b-1,a,:,:);
|
---|
| 99 |
|
---|
| 100 | hgt925_filtre_compomax(compteurmax,21,:,:)=hgt(b,a,:,:);
|
---|
| 101 | hgt925_filtre_compomax(compteurmax,22,:,:)=hgt(b+1,a,:,:);
|
---|
| 102 | hgt925_filtre_compomax(compteurmax,23,:,:)=hgt(b+2,a,:,:);
|
---|
| 103 | hgt925_filtre_compomax(compteurmax,24,:,:)=hgt(b+3,a,:,:);
|
---|
| 104 | hgt925_filtre_compomax(compteurmax,25,:,:)=hgt(b+4,a,:,:);
|
---|
| 105 | hgt925_filtre_compomax(compteurmax,26,:,:)=hgt(b+5,a,:,:);
|
---|
| 106 | hgt925_filtre_compomax(compteurmax,27,:,:)=hgt(b+6,a,:,:);
|
---|
| 107 | hgt925_filtre_compomax(compteurmax,28,:,:)=hgt(b+7,a,:,:);
|
---|
| 108 | hgt925_filtre_compomax(compteurmax,29,:,:)=hgt(b+8,a,:,:);
|
---|
| 109 | hgt925_filtre_compomax(compteurmax,30,:,:)=hgt(b+9,a,:,:);
|
---|
| 110 | hgt925_filtre_compomax(compteurmax,31,:,:)=hgt(b+10,a,:,:);
|
---|
| 111 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
[15] | 112 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && ind_olr(b,a)<(-ind_olr2));
|
---|
[10] | 113 | compteurmin=compteurmin+1;
|
---|
| 114 |
|
---|
| 115 | hgt925_filtre_compomin(compteurmin,1,:,:)=hgt(b-20,a,:,:);
|
---|
| 116 | hgt925_filtre_compomin(compteurmin,2,:,:)=hgt(b-19,a,:,:);
|
---|
| 117 | hgt925_filtre_compomin(compteurmin,3,:,:)=hgt(b-18,a,:,:);
|
---|
| 118 | hgt925_filtre_compomin(compteurmin,4,:,:)=hgt(b-17,a,:,:);
|
---|
| 119 | hgt925_filtre_compomin(compteurmin,5,:,:)=hgt(b-16,a,:,:);
|
---|
| 120 | hgt925_filtre_compomin(compteurmin,6,:,:)=hgt(b-15,a,:,:);
|
---|
| 121 | hgt925_filtre_compomin(compteurmin,7,:,:)=hgt(b-14,a,:,:);
|
---|
| 122 | hgt925_filtre_compomin(compteurmin,8,:,:)=hgt(b-13,a,:,:);
|
---|
| 123 | hgt925_filtre_compomin(compteurmin,9,:,:)=hgt(b-12,a,:,:);
|
---|
| 124 | hgt925_filtre_compomin(compteurmin,10,:,:)=hgt(b-11,a,:,:);
|
---|
| 125 |
|
---|
| 126 | hgt925_filtre_compomin(compteurmin,11,:,:)=hgt(b-10,a,:,:);
|
---|
| 127 | hgt925_filtre_compomin(compteurmin,12,:,:)=hgt(b-9,a,:,:);
|
---|
| 128 | hgt925_filtre_compomin(compteurmin,13,:,:)=hgt(b-8,a,:,:);
|
---|
| 129 | hgt925_filtre_compomin(compteurmin,14,:,:)=hgt(b-7,a,:,:);
|
---|
| 130 | hgt925_filtre_compomin(compteurmin,15,:,:)=hgt(b-6,a,:,:);
|
---|
| 131 | hgt925_filtre_compomin(compteurmin,16,:,:)=hgt(b-5,a,:,:);
|
---|
| 132 | hgt925_filtre_compomin(compteurmin,17,:,:)=hgt(b-4,a,:,:);
|
---|
| 133 | hgt925_filtre_compomin(compteurmin,18,:,:)=hgt(b-3,a,:,:);
|
---|
| 134 | hgt925_filtre_compomin(compteurmin,19,:,:)=hgt(b-2,a,:,:);
|
---|
| 135 | hgt925_filtre_compomin(compteurmin,20,:,:)=hgt(b-1,a,:,:);
|
---|
| 136 |
|
---|
| 137 | hgt925_filtre_compomin(compteurmin,21,:,:)=hgt(b,a,:,:);
|
---|
| 138 | hgt925_filtre_compomin(compteurmin,22,:,:)=hgt(b+1,a,:,:);
|
---|
| 139 | hgt925_filtre_compomin(compteurmin,23,:,:)=hgt(b+2,a,:,:);
|
---|
| 140 | hgt925_filtre_compomin(compteurmin,24,:,:)=hgt(b+3,a,:,:);
|
---|
| 141 | hgt925_filtre_compomin(compteurmin,25,:,:)=hgt(b+4,a,:,:);
|
---|
| 142 | hgt925_filtre_compomin(compteurmin,26,:,:)=hgt(b+5,a,:,:);
|
---|
| 143 | hgt925_filtre_compomin(compteurmin,27,:,:)=hgt(b+6,a,:,:);
|
---|
| 144 | hgt925_filtre_compomin(compteurmin,28,:,:)=hgt(b+7,a,:,:);
|
---|
| 145 | hgt925_filtre_compomin(compteurmin,29,:,:)=hgt(b+8,a,:,:);
|
---|
| 146 | hgt925_filtre_compomin(compteurmin,30,:,:)=hgt(b+9,a,:,:);
|
---|
| 147 | hgt925_filtre_compomin(compteurmin,31,:,:)=hgt(b+10,a,:,:);
|
---|
| 148 | end;
|
---|
| 149 | end;
|
---|
| 150 | end;
|
---|
| 151 | end;
|
---|
| 152 |
|
---|
| 153 |
|
---|
| 154 | % on fait la somme des valeurs de hgt925_filtreentiel sur le nbre d occurences
|
---|
| 155 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
| 156 | hgt925_filtre_compomin1(:,:,:)=nanmean(hgt925_filtre_compomin); clear hgt925_filtre_compomin;
|
---|
| 157 | hgt925_filtre_compomax1(:,:,:)=nanmean(hgt925_filtre_compomax); clear hgt925_filtre_compomax;
|
---|
| 158 |
|
---|
| 159 | x=[-10:1:10]'; %'
|
---|
| 160 |
|
---|
| 161 | figure(1);
|
---|
| 162 | orient('landscape');
|
---|
| 163 | lat=lat';
|
---|
| 164 |
|
---|
| 165 | for e=1:7;
|
---|
| 166 | a=7-(e-1)+1;
|
---|
| 167 | f=2*(a-1)+1;
|
---|
| 168 | clear delta_hgt925_filtre_min;
|
---|
| 169 | delta_hgt925_filtre_min=zeros(49,144);
|
---|
| 170 | for b=1:49;
|
---|
| 171 | for c=1:144;
|
---|
| 172 | delta_hgt925_filtre_min(b,c)=hgt925_filtre_compomin1(f,b,c)-hgt925_filtre_compomax1(f,b,c);
|
---|
| 173 | end;
|
---|
| 174 | end;
|
---|
| 175 | for b=1:49;
|
---|
| 176 | for c=1:144;
|
---|
| 177 | if delta_hgt925_filtre_min(b,c)<-100;
|
---|
| 178 | delta_hgt925_filtre_min(b,c)=-100;
|
---|
| 179 | elseif delta_hgt925_filtre_min(b,c)>100;
|
---|
| 180 | delta_hgt925_filtre_min(b,c)=100;
|
---|
| 181 | end;
|
---|
| 182 | end;
|
---|
| 183 | end
|
---|
| 184 | subplot(7,1,8-e);
|
---|
| 185 | palette
|
---|
| 186 | clear delta_hgt925;
|
---|
| 187 | delta_hgt925_filtre_min(1,1)=-100.001;
|
---|
| 188 | delta_hgt925_filtre_min(1,2)=100.001;
|
---|
| 189 | delta_hgt925=zeros(49,144);
|
---|
| 190 | delta_hgt925(:,1:72)=delta_hgt925_filtre_min(:,73:144);
|
---|
| 191 | delta_hgt925(:,73:144)=delta_hgt925_filtre_min(:,1:72);
|
---|
| 192 | aa=contourf(lon-180,lat,-delta_hgt925,[-100:10:100],'LineStyle','none');
|
---|
| 193 | if e==1;
|
---|
| 194 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 195 | else
|
---|
[10] | 196 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
| 197 | end;
|
---|
| 198 | set (gca,'YTick',[20:10:70],'YTickLabel',[' ';'30N';'40N';'50N';'60N';' '],'fontname','Arial','fontsize',6);
|
---|
| 199 | if e==4;
|
---|
| 200 | co=colorbar;
|
---|
[15] | 201 | set (co,'ytick',[-100:20:100],'yticklabel',[-100:20:100],'fontname','Arial','fontsize',6);
|
---|
[10] | 202 | end;
|
---|
| 203 | hold on; cartemonde1;
|
---|
| 204 | set (gca,'tickDir','out');
|
---|
| 205 | axis equal;
|
---|
| 206 | axis([-180 180 20 70]);
|
---|
| 207 | if e==7;
|
---|
| 208 | title('EOF23 filtre 25-90j reconstitue indice ITCZ','fontsize',8);
|
---|
| 209 | end;
|
---|
| 210 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 211 | pos_vert=e/10;
|
---|
[15] | 212 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 213 | end;
|
---|
| 214 |
|
---|
| 215 | print -depsc2 compo_hgt925_eof2590_part1.eps;
|
---|
| 216 |
|
---|
| 217 | figure(2);
|
---|
| 218 | orient('landscape');
|
---|
| 219 |
|
---|
| 220 | for e=1:7;
|
---|
| 221 | a=7-(e-1)+1+7;
|
---|
| 222 | f=2*(a-1)+1;
|
---|
| 223 | clear delta_hgt925_filtre_min;
|
---|
| 224 | delta_hgt925_filtre_min=zeros(49,144);
|
---|
| 225 | for b=1:49;
|
---|
| 226 | for c=1:144;
|
---|
| 227 | delta_hgt925_filtre_min(b,c)=hgt925_filtre_compomin1(f,b,c)-hgt925_filtre_compomax1(f,b,c);
|
---|
| 228 | end;
|
---|
| 229 | end;
|
---|
| 230 | for b=1:49;
|
---|
| 231 | for c=1:144;
|
---|
| 232 | if delta_hgt925_filtre_min(b,c)<-100;
|
---|
| 233 | delta_hgt925_filtre_min(b,c)=-100;
|
---|
| 234 | elseif delta_hgt925_filtre_min(b,c)>100;
|
---|
| 235 | delta_hgt925_filtre_min(b,c)=100;
|
---|
| 236 | end;
|
---|
| 237 | end;
|
---|
| 238 | end
|
---|
| 239 | subplot(7,1,8-e);
|
---|
| 240 | palette
|
---|
| 241 | clear delta_hgt925;
|
---|
| 242 | delta_hgt925_filtre_min(1,1)=-100.001;
|
---|
| 243 | delta_hgt925_filtre_min(1,2)=100.001;
|
---|
| 244 | delta_hgt925=zeros(49,144);
|
---|
| 245 | delta_hgt925(:,1:72)=delta_hgt925_filtre_min(:,73:144);
|
---|
| 246 | delta_hgt925(:,73:144)=delta_hgt925_filtre_min(:,1:72);
|
---|
| 247 | aa=contourf(lon-180,lat,-delta_hgt925,[-100:10:100],'LineStyle','none');
|
---|
| 248 | if e==1;
|
---|
| 249 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 250 | else
|
---|
[10] | 251 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
| 252 | end;
|
---|
| 253 | set (gca,'YTick',[20:10:70],'YTickLabel',[' ';'30N';'40N';'50N';'60N';' '],'fontname','Arial','fontsize',6);
|
---|
| 254 | if e==4;
|
---|
| 255 | co=colorbar;
|
---|
[15] | 256 | set (co,'ytick',[-100:20:100],'yticklabel',[-100:20:100],'fontname','Arial','fontsize',6);
|
---|
[10] | 257 | end;
|
---|
| 258 | hold on; cartemonde1;
|
---|
| 259 | set (gca,'tickDir','out');
|
---|
| 260 | axis equal;
|
---|
| 261 | axis([-180 180 20 70]);
|
---|
| 262 | if e==7;
|
---|
| 263 | title('EOF23 filtre 25-90j reconstitue indice ITCZ','fontsize',8);
|
---|
| 264 | end;
|
---|
| 265 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 266 | pos_vert=e/10;
|
---|
[15] | 267 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 268 | end;
|
---|
| 269 |
|
---|
| 270 | print -depsc2 compo_hgt925_eof2590_part2.eps;
|
---|
| 271 |
|
---|