[17] | 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 | uwnd925=zeros(122,49,144,28); |
---|
| 11 | |
---|
| 12 | siz=31+28+31+30+31+1; |
---|
| 13 | sizbis=31+28+31+30+31+30+31+31+30; |
---|
| 14 | ncload('uwnd925.1979.nc'); uwnd925(:,:,:,1)=uwnd(siz:sizbis,1,:,:); clear uwnd; |
---|
| 15 | ncload('uwnd925.1980.nc'); uwnd925(:,:,:,2)=uwnd(siz+1:sizbis+1,1,:,:); clear uwnd; |
---|
| 16 | ncload('uwnd925.1981.nc'); uwnd925(:,:,:,3)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 17 | ncload('uwnd925.1982.nc'); uwnd925(:,:,:,4)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 18 | ncload('uwnd925.1983.nc'); uwnd925(:,:,:,5)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 19 | ncload('uwnd925.1984.nc'); uwnd925(:,:,:,6)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 20 | ncload('uwnd925.1985.nc'); uwnd925(:,:,:,7)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 21 | ncload('uwnd925.1986.nc'); uwnd925(:,:,:,8)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 22 | ncload('uwnd925.1987.nc'); uwnd925(:,:,:,9)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 23 | ncload('uwnd925.1988.nc'); uwnd925(:,:,:,10)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 24 | ncload('uwnd925.1989.nc'); uwnd925(:,:,:,11)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 25 | ncload('uwnd925.1990.nc'); uwnd925(:,:,:,12)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 26 | ncload('uwnd925.1991.nc'); uwnd925(:,:,:,13)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 27 | ncload('uwnd925.1992.nc'); uwnd925(:,:,:,14)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 28 | ncload('uwnd925.1993.nc'); uwnd925(:,:,:,15)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 29 | ncload('uwnd925.1994.nc'); uwnd925(:,:,:,16)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 30 | ncload('uwnd925.1995.nc'); uwnd925(:,:,:,17)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 31 | ncload('uwnd925.1996.nc'); uwnd925(:,:,:,18)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 32 | ncload('uwnd925.1997.nc'); uwnd925(:,:,:,19)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 33 | ncload('uwnd925.1998.nc'); uwnd925(:,:,:,20)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 34 | ncload('uwnd925.1999.nc'); uwnd925(:,:,:,21)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 35 | ncload('uwnd925.2000.nc'); uwnd925(:,:,:,22)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 36 | ncload('uwnd925.2001.nc'); uwnd925(:,:,:,23)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 37 | ncload('uwnd925.2002.nc'); uwnd925(:,:,:,24)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 38 | ncload('uwnd925.2003.nc'); uwnd925(:,:,:,25)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 39 | ncload('uwnd925.2004.nc'); uwnd925(:,:,:,26)=uwnd(siz+1:sizbis+1,1,:,:);clear uwnd; |
---|
| 40 | ncload('uwnd925.2005.nc'); uwnd925(:,:,:,27)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 41 | ncload('uwnd925.2006.nc'); uwnd925(:,:,:,28)=uwnd(siz:sizbis,1,:,:);clear uwnd; |
---|
| 42 | |
---|
| 43 | uwnd925=uwnd925*0.01; |
---|
| 44 | uwnd925=uwnd925-187.65; |
---|
| 45 | |
---|
| 46 | clear siz1 siz1bis; |
---|
| 47 | |
---|
| 48 | uwnd=permute(uwnd925,[1 4 2 3]); |
---|
| 49 | clear uwnd925; |
---|
| 50 | |
---|
| 51 | %%%%%%%%%%%%%%% FICHIER OLR |
---|
| 52 | % ouverture / lecture du fichier |
---|
[23] | 53 | status=load('eof12_rossby_30100.txt'); |
---|
[24] | 54 | eof12_rossby_30100=status; |
---|
| 55 | clear status; |
---|
[17] | 56 | ind_olr=reshape(eof12_rossby_30100,122,28); |
---|
| 57 | k=122*28; |
---|
| 58 | clear eof12_rossby_30100 |
---|
| 59 | % on calcule l ecart type sur la serie entiere de l OLR |
---|
| 60 | ind_olr1=reshape(ind_olr, k,1); |
---|
| 61 | ind_olr2=std(ind_olr1); |
---|
| 62 | clear ind_olr1; |
---|
| 63 | |
---|
| 64 | % GEOPOTENTIEL |
---|
| 65 | % intialisation des tableaux |
---|
| 66 | uwnd925_filtre_compomax=NaN*ones(60,31,49,144); |
---|
| 67 | uwnd925_filtre_compomin=NaN*ones(60,31,49,144); |
---|
| 68 | |
---|
| 69 | compteurmax=0; |
---|
| 70 | compteurmin=0; |
---|
| 71 | |
---|
| 72 | % boucle sur les annees |
---|
| 73 | for a=1:28; |
---|
| 74 | clear delta; |
---|
| 75 | delta=zeros(122,1); |
---|
| 76 | % boucle sur les jours : on prepare avant |
---|
| 77 | for b=1:122; |
---|
| 78 | if b>1; |
---|
| 79 | delta(b)=ind_olr(b,a)-ind_olr(b-1,a); |
---|
| 80 | end; |
---|
| 81 | end; |
---|
| 82 | % boucle sur les jours |
---|
| 83 | for b=1:122; |
---|
| 84 | % 1ere condition (laisser une marge de 10) |
---|
| 85 | if (b>22 && b<112); |
---|
| 86 | % cas 1 : max deltas apres negetifs et deltas avant postifs |
---|
| 87 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && ind_olr(b,a)>ind_olr2); |
---|
| 88 | compteurmax=compteurmax+1; |
---|
| 89 | uwnd925_filtre_compomax(compteurmax,1,:,:)=uwnd(b-21,a,:,:); |
---|
| 90 | uwnd925_filtre_compomax(compteurmax,2,:,:)=uwnd(b-20,a,:,:); |
---|
| 91 | uwnd925_filtre_compomax(compteurmax,3,:,:)=uwnd(b-19,a,:,:); |
---|
| 92 | uwnd925_filtre_compomax(compteurmax,4,:,:)=uwnd(b-18,a,:,:); |
---|
| 93 | uwnd925_filtre_compomax(compteurmax,5,:,:)=uwnd(b-17,a,:,:); |
---|
| 94 | uwnd925_filtre_compomax(compteurmax,6,:,:)=uwnd(b-16,a,:,:); |
---|
| 95 | uwnd925_filtre_compomax(compteurmax,7,:,:)=uwnd(b-15,a,:,:); |
---|
| 96 | uwnd925_filtre_compomax(compteurmax,8,:,:)=uwnd(b-14,a,:,:); |
---|
| 97 | uwnd925_filtre_compomax(compteurmax,9,:,:)=uwnd(b-13,a,:,:); |
---|
| 98 | uwnd925_filtre_compomax(compteurmax,10,:,:)=uwnd(b-12,a,:,:); |
---|
| 99 | uwnd925_filtre_compomax(compteurmax,11,:,:)=uwnd(b-11,a,:,:); |
---|
| 100 | |
---|
| 101 | uwnd925_filtre_compomax(compteurmax,12,:,:)=uwnd(b-10,a,:,:); |
---|
| 102 | uwnd925_filtre_compomax(compteurmax,13,:,:)=uwnd(b-9,a,:,:); |
---|
| 103 | uwnd925_filtre_compomax(compteurmax,14,:,:)=uwnd(b-8,a,:,:); |
---|
| 104 | uwnd925_filtre_compomax(compteurmax,15,:,:)=uwnd(b-7,a,:,:); |
---|
| 105 | uwnd925_filtre_compomax(compteurmax,16,:,:)=uwnd(b-6,a,:,:); |
---|
| 106 | uwnd925_filtre_compomax(compteurmax,17,:,:)=uwnd(b-5,a,:,:); |
---|
| 107 | uwnd925_filtre_compomax(compteurmax,18,:,:)=uwnd(b-4,a,:,:); |
---|
| 108 | uwnd925_filtre_compomax(compteurmax,19,:,:)=uwnd(b-3,a,:,:); |
---|
| 109 | uwnd925_filtre_compomax(compteurmax,20,:,:)=uwnd(b-2,a,:,:); |
---|
| 110 | uwnd925_filtre_compomax(compteurmax,21,:,:)=uwnd(b-1,a,:,:); |
---|
| 111 | |
---|
| 112 | uwnd925_filtre_compomax(compteurmax,22,:,:)=uwnd(b,a,:,:); |
---|
| 113 | uwnd925_filtre_compomax(compteurmax,23,:,:)=uwnd(b+1,a,:,:); |
---|
| 114 | uwnd925_filtre_compomax(compteurmax,24,:,:)=uwnd(b+2,a,:,:); |
---|
| 115 | uwnd925_filtre_compomax(compteurmax,25,:,:)=uwnd(b+3,a,:,:); |
---|
| 116 | uwnd925_filtre_compomax(compteurmax,26,:,:)=uwnd(b+4,a,:,:); |
---|
| 117 | uwnd925_filtre_compomax(compteurmax,27,:,:)=uwnd(b+5,a,:,:); |
---|
| 118 | uwnd925_filtre_compomax(compteurmax,28,:,:)=uwnd(b+6,a,:,:); |
---|
| 119 | uwnd925_filtre_compomax(compteurmax,29,:,:)=uwnd(b+7,a,:,:); |
---|
| 120 | uwnd925_filtre_compomax(compteurmax,30,:,:)=uwnd(b+8,a,:,:); |
---|
| 121 | uwnd925_filtre_compomax(compteurmax,31,:,:)=uwnd(b+9,a,:,:); |
---|
| 122 | |
---|
| 123 | % cas 2 : min deltas apres positifs et deltas avant negatifs |
---|
| 124 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && ind_olr(b,a)<(-ind_olr2)); |
---|
| 125 | compteurmin=compteurmin+1; |
---|
| 126 | uwnd925_filtre_compomin(compteurmin,1,:,:)=uwnd(b-21,a,:,:); |
---|
| 127 | uwnd925_filtre_compomin(compteurmin,2,:,:)=uwnd(b-20,a,:,:); |
---|
| 128 | uwnd925_filtre_compomin(compteurmin,3,:,:)=uwnd(b-19,a,:,:); |
---|
| 129 | uwnd925_filtre_compomin(compteurmin,4,:,:)=uwnd(b-18,a,:,:); |
---|
| 130 | uwnd925_filtre_compomin(compteurmin,5,:,:)=uwnd(b-17,a,:,:); |
---|
| 131 | uwnd925_filtre_compomin(compteurmin,6,:,:)=uwnd(b-16,a,:,:); |
---|
| 132 | uwnd925_filtre_compomin(compteurmin,7,:,:)=uwnd(b-15,a,:,:); |
---|
| 133 | uwnd925_filtre_compomin(compteurmin,8,:,:)=uwnd(b-14,a,:,:); |
---|
| 134 | uwnd925_filtre_compomin(compteurmin,9,:,:)=uwnd(b-13,a,:,:); |
---|
| 135 | uwnd925_filtre_compomin(compteurmin,10,:,:)=uwnd(b-12,a,:,:); |
---|
| 136 | uwnd925_filtre_compomin(compteurmin,11,:,:)=uwnd(b-11,a,:,:); |
---|
| 137 | |
---|
| 138 | uwnd925_filtre_compomin(compteurmin,12,:,:)=uwnd(b-10,a,:,:); |
---|
| 139 | uwnd925_filtre_compomin(compteurmin,13,:,:)=uwnd(b-9,a,:,:); |
---|
| 140 | uwnd925_filtre_compomin(compteurmin,14,:,:)=uwnd(b-8,a,:,:); |
---|
| 141 | uwnd925_filtre_compomin(compteurmin,15,:,:)=uwnd(b-7,a,:,:); |
---|
| 142 | uwnd925_filtre_compomin(compteurmin,16,:,:)=uwnd(b-6,a,:,:); |
---|
| 143 | uwnd925_filtre_compomin(compteurmin,17,:,:)=uwnd(b-5,a,:,:); |
---|
| 144 | uwnd925_filtre_compomin(compteurmin,18,:,:)=uwnd(b-4,a,:,:); |
---|
| 145 | uwnd925_filtre_compomin(compteurmin,19,:,:)=uwnd(b-3,a,:,:); |
---|
| 146 | uwnd925_filtre_compomin(compteurmin,20,:,:)=uwnd(b-2,a,:,:); |
---|
| 147 | uwnd925_filtre_compomin(compteurmin,21,:,:)=uwnd(b-1,a,:,:); |
---|
| 148 | |
---|
| 149 | uwnd925_filtre_compomin(compteurmin,22,:,:)=uwnd(b,a,:,:); |
---|
| 150 | uwnd925_filtre_compomin(compteurmin,23,:,:)=uwnd(b+1,a,:,:); |
---|
| 151 | uwnd925_filtre_compomin(compteurmin,24,:,:)=uwnd(b+2,a,:,:); |
---|
| 152 | uwnd925_filtre_compomin(compteurmin,25,:,:)=uwnd(b+3,a,:,:); |
---|
| 153 | uwnd925_filtre_compomin(compteurmin,26,:,:)=uwnd(b+4,a,:,:); |
---|
| 154 | uwnd925_filtre_compomin(compteurmin,27,:,:)=uwnd(b+5,a,:,:); |
---|
| 155 | uwnd925_filtre_compomin(compteurmin,28,:,:)=uwnd(b+6,a,:,:); |
---|
| 156 | uwnd925_filtre_compomin(compteurmin,29,:,:)=uwnd(b+7,a,:,:); |
---|
| 157 | uwnd925_filtre_compomin(compteurmin,30,:,:)=uwnd(b+8,a,:,:); |
---|
| 158 | uwnd925_filtre_compomin(compteurmin,31,:,:)=uwnd(b+9,a,:,:); |
---|
| 159 | |
---|
| 160 | end; |
---|
| 161 | end; |
---|
| 162 | end; |
---|
| 163 | end; |
---|
| 164 | |
---|
| 165 | % on fait la somme des valeurs de uwnd925_filtreentiel sur le nbre d occurences |
---|
| 166 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat) |
---|
| 167 | uwnd925_filtre_compomin1(:,:,:)=nanmean(uwnd925_filtre_compomin); |
---|
| 168 | clear uwnd925_filtre_compomin; |
---|
| 169 | uwnd925_filtre_compomax1(:,:,:)=nanmean(uwnd925_filtre_compomax); |
---|
| 170 | clear uwnd925_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_uwnd925_filtre_min; |
---|
| 180 | delta_uwnd925_filtre_min=zeros(49,144); |
---|
| 181 | for b=1:49; |
---|
| 182 | for c=1:144; |
---|
| 183 | delta_uwnd925_filtre_min(b,c)=uwnd925_filtre_compomin1(e,b,c)-uwnd925_filtre_compomax1(e,b,c); |
---|
| 184 | end; |
---|
| 185 | end; |
---|
| 186 | delta_uwnd925=zeros(49,144); |
---|
| 187 | delta_uwnd925(:,1:72)=delta_uwnd925_filtre_min(:,73:144); |
---|
| 188 | delta_uwnd925(:,73:144)=delta_uwnd925_filtre_min(:,1:72); |
---|
| 189 | delta_uwnd925_filtre_min=flipud(delta_uwnd925); |
---|
| 190 | if e==1; |
---|
| 191 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins21',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 192 | elseif e==2; |
---|
| 193 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins20',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 194 | elseif e==3; |
---|
| 195 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins19',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 196 | elseif e==4; |
---|
| 197 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins18',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 198 | elseif e==5; |
---|
| 199 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins17',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 200 | elseif e==6; |
---|
| 201 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins16',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 202 | elseif e==7; |
---|
| 203 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins15',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 204 | elseif e==8; |
---|
| 205 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins14',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 206 | elseif e==9; |
---|
| 207 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins13',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 208 | elseif e==10; |
---|
| 209 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins12',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 210 | elseif e==11; |
---|
| 211 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins11',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 212 | elseif e==12; |
---|
| 213 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins10',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 214 | elseif e==13; |
---|
| 215 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins9',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 216 | elseif e==14; |
---|
| 217 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins8',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 218 | elseif e==15; |
---|
| 219 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins7',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 220 | elseif e==16; |
---|
| 221 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins6',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 222 | elseif e==17; |
---|
| 223 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins5',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 224 | elseif e==18; |
---|
| 225 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins4',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 226 | elseif e==19; |
---|
| 227 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins3',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 228 | elseif e==20; |
---|
| 229 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins2',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 230 | elseif e==21; |
---|
| 231 | sauvegrads('composite_uwnd925_mode_rossby_30100_moins1',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 232 | elseif e==22; |
---|
| 233 | sauvegrads('composite_uwnd925_mode_rossby_30100_0',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 234 | elseif e==23; |
---|
| 235 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus1',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 236 | elseif e==24; |
---|
| 237 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus2',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 238 | elseif e==25; |
---|
| 239 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus3',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 240 | elseif e==26; |
---|
| 241 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus4',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 242 | elseif e==27; |
---|
| 243 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus5',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 244 | elseif e==28; |
---|
| 245 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus6',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 246 | elseif e==29; |
---|
| 247 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus7',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 248 | elseif e==30; |
---|
| 249 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus8',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
| 250 | elseif e==31; |
---|
| 251 | sauvegrads('composite_uwnd925_mode_rossby_30100_plus9',delta_uwnd925_filtre_min,[-180 2.5 -10 2.5]); |
---|
[26] | 252 | end; |
---|
[17] | 253 | delta_uwnd925_filtre_min=flipud(delta_uwnd925_filtre_min); |
---|
[26] | 254 | end; |
---|