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