[16] | 1 | %
|
---|
| 2 |
|
---|
[10] | 3 | %%%%%%%%%%%%%%% FICHIER pluie IRD
|
---|
| 4 | % ouverture / lecture du fichier
|
---|
| 5 | clear;
|
---|
| 6 | close all;
|
---|
| 7 | cd('Pluie_ird_25');
|
---|
| 8 |
|
---|
| 9 | % on selectionne les mois d ete (attention aux annees bixestiles!)
|
---|
| 10 |
|
---|
| 11 | siz1=31+28+31+30+31+1;
|
---|
| 12 | siz1bis=31+28+31+30+31+30+31+31+30;
|
---|
| 13 | pluie=zeros(41,17,122,12);
|
---|
| 14 |
|
---|
| 15 | clear v fid; fid=fopen('pluvio.79.haut','r','b'); siz=41*17*365;
|
---|
| 16 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 17 | v=reshape(v,41,17,365);
|
---|
| 18 | clear a b c;
|
---|
| 19 | for a=1:41;
|
---|
| 20 | for b=1:17;
|
---|
| 21 | for c=1:365;
|
---|
| 22 | if v(a,b,c)>990;
|
---|
[16] | 23 | v(a,b,c)=NaN;
|
---|
[10] | 24 | elseif v(a,b,c)<0;
|
---|
| 25 | v(a,b,c)=NaN;
|
---|
| 26 | end;
|
---|
| 27 | end;
|
---|
| 28 | end;
|
---|
| 29 | end;
|
---|
| 30 | pluie(:,:,:,1)=v(:,:,siz1:siz1bis); % 1979
|
---|
| 31 |
|
---|
| 32 | clear v fid; fid=fopen('pluvio.80.haut','r','b'); siz=41*17*366;
|
---|
| 33 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 34 | v=reshape(v,41,17,366);
|
---|
| 35 | clear a b c;
|
---|
| 36 | for a=1:41;
|
---|
| 37 | for b=1:17;
|
---|
| 38 | for c=1:366;
|
---|
| 39 | if v(a,b,c)>990;
|
---|
[16] | 40 | v(a,b,c)=NaN;
|
---|
[10] | 41 | elseif v(a,b,c)<0;
|
---|
| 42 | v(a,b,c)=NaN;
|
---|
| 43 | end;
|
---|
| 44 | end;
|
---|
| 45 | end;
|
---|
| 46 | end;
|
---|
| 47 | pluie(:,:,:,2)=v(:,:,siz1+1:siz1bis+1); % 1980
|
---|
| 48 |
|
---|
| 49 | clear v fid; fid=fopen('pluvio.81.haut','r','b'); siz=41*17*365;
|
---|
| 50 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 51 | v=reshape(v,41,17,365);
|
---|
| 52 | clear a b c;
|
---|
| 53 | for a=1:41;
|
---|
| 54 | for b=1:17;
|
---|
| 55 | for c=1:365;
|
---|
| 56 | if v(a,b,c)>990;
|
---|
[16] | 57 | v(a,b,c)=NaN;
|
---|
[10] | 58 | elseif v(a,b,c)<0;
|
---|
| 59 | v(a,b,c)=NaN;
|
---|
| 60 | end;
|
---|
| 61 | end;
|
---|
| 62 | end;
|
---|
| 63 | end;
|
---|
| 64 | pluie(:,:,:,3)=v(:,:,siz1:siz1bis); % 1981
|
---|
| 65 |
|
---|
| 66 | clear v fid; fid=fopen('pluvio.82.haut','r','b'); siz=41*17*365;
|
---|
| 67 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 68 | v=reshape(v,41,17,365);
|
---|
| 69 | clear a b c;
|
---|
| 70 | for a=1:41;
|
---|
| 71 | for b=1:17;
|
---|
| 72 | for c=1:365;
|
---|
| 73 | if v(a,b,c)>990;
|
---|
[16] | 74 | v(a,b,c)=NaN;
|
---|
[10] | 75 | elseif v(a,b,c)<0;
|
---|
| 76 | v(a,b,c)=NaN;
|
---|
| 77 | end;
|
---|
| 78 | end;
|
---|
| 79 | end;
|
---|
| 80 | end;
|
---|
| 81 | pluie(:,:,:,4)=v(:,:,siz1:siz1bis); % 1982
|
---|
| 82 |
|
---|
| 83 | clear v fid; fid=fopen('pluvio.83.haut','r','b'); siz=41*17*365;
|
---|
| 84 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 85 | v=reshape(v,41,17,365);
|
---|
| 86 | clear a b c;
|
---|
| 87 | for a=1:41;
|
---|
| 88 | for b=1:17;
|
---|
| 89 | for c=1:365;
|
---|
| 90 | if v(a,b,c)>990;
|
---|
[16] | 91 | v(a,b,c)=NaN;
|
---|
[10] | 92 | elseif v(a,b,c)<0;
|
---|
| 93 | v(a,b,c)=NaN;
|
---|
| 94 | end;
|
---|
| 95 | end;
|
---|
| 96 | end;
|
---|
| 97 | end;
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | pluie(:,:,:,5)=v(:,:,siz1:siz1bis); % 1983
|
---|
| 101 |
|
---|
| 102 | clear v fid; fid=fopen('pluvio.84.haut','r','b'); siz=41*17*366;
|
---|
| 103 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 104 | v=reshape(v,41,17,366);
|
---|
| 105 | clear a b c;
|
---|
| 106 | for a=1:41;
|
---|
| 107 | for b=1:17;
|
---|
| 108 | for c=1:366;
|
---|
| 109 | if v(a,b,c)>990;
|
---|
[16] | 110 | v(a,b,c)=NaN;
|
---|
[10] | 111 | elseif v(a,b,c)<0;
|
---|
| 112 | v(a,b,c)=NaN;
|
---|
| 113 | end;
|
---|
| 114 | end;
|
---|
| 115 | end;
|
---|
| 116 | end;
|
---|
| 117 | pluie(:,:,:,6)=v(:,:,siz1+1:siz1bis+1); % 1984
|
---|
| 118 |
|
---|
| 119 | clear v fid; fid=fopen('pluvio.85.haut','r','b'); siz=41*17*365;
|
---|
| 120 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 121 | v=reshape(v,41,17,365);
|
---|
| 122 | clear a b c;
|
---|
| 123 | for a=1:41;
|
---|
| 124 | for b=1:17;
|
---|
| 125 | for c=1:365;
|
---|
| 126 | if v(a,b,c)>990;
|
---|
[16] | 127 | v(a,b,c)=NaN;
|
---|
[10] | 128 | elseif v(a,b,c)<0;
|
---|
| 129 | v(a,b,c)=NaN;
|
---|
| 130 | end;
|
---|
| 131 | end;
|
---|
| 132 | end;
|
---|
| 133 | end;
|
---|
| 134 | pluie(:,:,:,7)=v(:,:,siz1:siz1bis); % 1985
|
---|
| 135 |
|
---|
| 136 | clear v fid; fid=fopen('pluvio.86.haut','r','b'); siz=41*17*365;
|
---|
| 137 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 138 | v=reshape(v,41,17,365);
|
---|
| 139 | clear a b c;
|
---|
| 140 | for a=1:41;
|
---|
| 141 | for b=1:17;
|
---|
| 142 | for c=1:365;
|
---|
| 143 | if v(a,b,c)>990;
|
---|
[16] | 144 | v(a,b,c)=NaN;
|
---|
[10] | 145 | elseif v(a,b,c)<0;
|
---|
| 146 | v(a,b,c)=NaN;
|
---|
| 147 | end;
|
---|
| 148 | end;
|
---|
| 149 | end;
|
---|
| 150 | end;
|
---|
| 151 | pluie(:,:,:,8)=v(:,:,siz1:siz1bis); % 1986
|
---|
| 152 |
|
---|
| 153 | clear v fid; fid=fopen('pluvio.87.haut','r','b'); siz=41*17*365;
|
---|
| 154 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 155 | v=reshape(v,41,17,365);
|
---|
| 156 | clear a b c;
|
---|
| 157 | for a=1:41;
|
---|
| 158 | for b=1:17;
|
---|
| 159 | for c=1:365;
|
---|
| 160 | if v(a,b,c)>990;
|
---|
[16] | 161 | v(a,b,c)=NaN;
|
---|
[10] | 162 | elseif v(a,b,c)<0;
|
---|
| 163 | v(a,b,c)=NaN;
|
---|
| 164 | end;
|
---|
| 165 | end;
|
---|
| 166 | end;
|
---|
| 167 | end;
|
---|
| 168 | pluie(:,:,:,9)=v(:,:,siz1:siz1bis); % 1987
|
---|
| 169 |
|
---|
| 170 | clear v fid; fid=fopen('pluvio.88.haut','r','b'); siz=41*17*366;
|
---|
| 171 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 172 | v=reshape(v,41,17,366);
|
---|
| 173 | clear a b c;
|
---|
| 174 | for a=1:41;
|
---|
| 175 | for b=1:17;
|
---|
| 176 | for c=1:366;
|
---|
| 177 | if v(a,b,c)>990;
|
---|
[16] | 178 | v(a,b,c)=NaN;
|
---|
[10] | 179 | elseif v(a,b,c)<0;
|
---|
| 180 | v(a,b,c)=NaN;
|
---|
| 181 | end;
|
---|
| 182 | end;
|
---|
| 183 | end;
|
---|
| 184 | end;
|
---|
| 185 | pluie(:,:,:,10)=v(:,:,siz1:siz1bis); % 1988
|
---|
| 186 |
|
---|
| 187 | clear v fid; fid=fopen('pluvio.89.haut','r','b'); siz=41*17*365;
|
---|
| 188 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 189 | v=reshape(v,41,17,365);
|
---|
| 190 | clear a b c;
|
---|
| 191 | for a=1:41;
|
---|
| 192 | for b=1:17;
|
---|
| 193 | for c=1:365;
|
---|
| 194 | if v(a,b,c)>990;
|
---|
[16] | 195 | v(a,b,c)=NaN;
|
---|
[10] | 196 | elseif v(a,b,c)<0;
|
---|
| 197 | v(a,b,c)=NaN;
|
---|
| 198 | end;
|
---|
| 199 | end;
|
---|
| 200 | end;
|
---|
| 201 | end;
|
---|
| 202 | pluie(:,:,:,11)=v(:,:,siz1:siz1bis); % 1989
|
---|
| 203 |
|
---|
| 204 | clear v fid; fid=fopen('pluvio.90.haut','r','b'); siz=41*17*365;
|
---|
| 205 | v=fread(fid,siz,'float'); fclose(fid);
|
---|
| 206 | v=reshape(v,41,17,365);
|
---|
| 207 | clear a b c;
|
---|
| 208 | for a=1:41;
|
---|
| 209 | for b=1:17;
|
---|
| 210 | for c=1:365;
|
---|
| 211 | if v(a,b,c)>990;
|
---|
[16] | 212 | v(a,b,c)=NaN;
|
---|
[10] | 213 | elseif v(a,b,c)<0;
|
---|
| 214 | v(a,b,c)=NaN;
|
---|
| 215 | end;
|
---|
| 216 | end;
|
---|
| 217 | end;
|
---|
| 218 | end;
|
---|
| 219 | pluie(:,:,:,12)=v(:,:,siz1:siz1bis); % 1990
|
---|
| 220 |
|
---|
| 221 | clear siz sizbis;
|
---|
| 222 | clear v;
|
---|
| 223 | cd('..');
|
---|
| 224 | save pluie.mat pluie;
|
---|
| 225 | clear
|
---|
| 226 |
|
---|
| 227 | load pluie.mat
|
---|
| 228 | % pluie dimension : lon lat jours annee (41 17 122 12) => jour annee lat lon (17 41 122 12)
|
---|
| 229 |
|
---|
| 230 | load eof2_olr_rossby_jjas.txt;
|
---|
| 231 | % on met sous la forme annee mois
|
---|
[16] | 232 | eof2_olr_rossby_jjas=reshape(eof2_olr_rossby_jjas,122,22);
|
---|
[10] | 233 | olr_eof=eof2_olr_rossby_jjas(:,1:12);
|
---|
| 234 | clear eof2_olr_rossby_jjas;
|
---|
| 235 |
|
---|
| 236 | % on calcule l ecart type sur la serie temporelle de l'olr
|
---|
[16] | 237 | k=122*12;
|
---|
[10] | 238 | olrbis=reshape(olr_eof,k,1);
|
---|
[16] | 239 | olrbis=std(olrbis);
|
---|
[10] | 240 |
|
---|
| 241 | % intialisation des tableaux
|
---|
[16] | 242 | pluie_filtre_compomax=NaN*ones(30,31,17,41);
|
---|
[10] | 243 | pluie_filtre_compomin=NaN*ones(30,31,17,41);
|
---|
| 244 | pluie=permute(pluie,[3 4 2 1]);
|
---|
[16] | 245 | compteurmax=0;
|
---|
[10] | 246 | compteurmin=0;
|
---|
| 247 |
|
---|
[16] | 248 | % boucle sur les annees
|
---|
| 249 | for a=1:12;
|
---|
| 250 | clear delta;
|
---|
[10] | 251 | delta=zeros(122,1);
|
---|
[16] | 252 | % boucle sur les jours : on prepare avant
|
---|
| 253 | for b=1:122;
|
---|
[10] | 254 | if b>1;
|
---|
| 255 | delta(b)=olr_eof(b,a)-olr_eof(b-1,a);
|
---|
| 256 | end;
|
---|
| 257 | end;
|
---|
[16] | 258 | % boucle sur les jours
|
---|
| 259 | for b=1:122;
|
---|
| 260 | % 1ere condition (laisser une marge de 10)
|
---|
| 261 | if (b>20 && b<112);
|
---|
| 262 | % cas 1 : max deltas apres negetifs et deltas avant postifs
|
---|
| 263 | if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && olr_eof(b,a)>olrbis);
|
---|
[10] | 264 | compteurmax=compteurmax+1;
|
---|
| 265 | pluie_filtre_compomax(compteurmax,1,:,:)=pluie(b-20,a,:,:);
|
---|
| 266 | pluie_filtre_compomax(compteurmax,2,:,:)=pluie(b-19,a,:,:);
|
---|
| 267 | pluie_filtre_compomax(compteurmax,3,:,:)=pluie(b-18,a,:,:);
|
---|
| 268 | pluie_filtre_compomax(compteurmax,4,:,:)=pluie(b-17,a,:,:);
|
---|
| 269 | pluie_filtre_compomax(compteurmax,5,:,:)=pluie(b-16,a,:,:);
|
---|
| 270 | pluie_filtre_compomax(compteurmax,6,:,:)=pluie(b-15,a,:,:);
|
---|
| 271 | pluie_filtre_compomax(compteurmax,7,:,:)=pluie(b-14,a,:,:);
|
---|
| 272 | pluie_filtre_compomax(compteurmax,8,:,:)=pluie(b-13,a,:,:);
|
---|
| 273 | pluie_filtre_compomax(compteurmax,9,:,:)=pluie(b-12,a,:,:);
|
---|
| 274 | pluie_filtre_compomax(compteurmax,10,:,:)=pluie(b-11,a,:,:);
|
---|
| 275 | pluie_filtre_compomax(compteurmax,11,:,:)=pluie(b-10,a,:,:);
|
---|
| 276 | pluie_filtre_compomax(compteurmax,12,:,:)=pluie(b-9,a,:,:);
|
---|
| 277 | pluie_filtre_compomax(compteurmax,13,:,:)=pluie(b-8,a,:,:);
|
---|
| 278 | pluie_filtre_compomax(compteurmax,14,:,:)=pluie(b-7,a,:,:);
|
---|
| 279 | pluie_filtre_compomax(compteurmax,15,:,:)=pluie(b-6,a,:,:);
|
---|
| 280 | pluie_filtre_compomax(compteurmax,16,:,:)=pluie(b-5,a,:,:);
|
---|
| 281 | pluie_filtre_compomax(compteurmax,17,:,:)=pluie(b-4,a,:,:);
|
---|
| 282 | pluie_filtre_compomax(compteurmax,18,:,:)=pluie(b-3,a,:,:);
|
---|
| 283 | pluie_filtre_compomax(compteurmax,19,:,:)=pluie(b-2,a,:,:);
|
---|
| 284 | pluie_filtre_compomax(compteurmax,20,:,:)=pluie(b-1,a,:,:);
|
---|
| 285 | pluie_filtre_compomax(compteurmax,21,:,:)=pluie(b,a,:,:);
|
---|
| 286 | pluie_filtre_compomax(compteurmax,22,:,:)=pluie(b+1,a,:,:);
|
---|
| 287 | pluie_filtre_compomax(compteurmax,23,:,:)=pluie(b+2,a,:,:);
|
---|
| 288 | pluie_filtre_compomax(compteurmax,24,:,:)=pluie(b+3,a,:,:);
|
---|
| 289 | pluie_filtre_compomax(compteurmax,25,:,:)=pluie(b+4,a,:,:);
|
---|
| 290 | pluie_filtre_compomax(compteurmax,26,:,:)=pluie(b+5,a,:,:);
|
---|
| 291 | pluie_filtre_compomax(compteurmax,27,:,:)=pluie(b+6,a,:,:);
|
---|
| 292 | pluie_filtre_compomax(compteurmax,28,:,:)=pluie(b+7,a,:,:);
|
---|
| 293 | pluie_filtre_compomax(compteurmax,29,:,:)=pluie(b+8,a,:,:);
|
---|
| 294 | pluie_filtre_compomax(compteurmax,30,:,:)=pluie(b+9,a,:,:);
|
---|
| 295 | pluie_filtre_compomax(compteurmax,31,:,:)=pluie(b+10,a,:,:);
|
---|
[16] | 296 | % cas 2 : min deltas apres positifs et deltas avant negatifs
|
---|
[15] | 297 | elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis));
|
---|
[10] | 298 | compteurmin=compteurmin+1;
|
---|
| 299 |
|
---|
| 300 | pluie_filtre_compomin(compteurmin,1,:,:)=pluie(b-20,a,:,:);
|
---|
| 301 | pluie_filtre_compomin(compteurmin,2,:,:)=pluie(b-19,a,:,:);
|
---|
| 302 | pluie_filtre_compomin(compteurmin,3,:,:)=pluie(b-18,a,:,:);
|
---|
| 303 | pluie_filtre_compomin(compteurmin,4,:,:)=pluie(b-17,a,:,:);
|
---|
| 304 | pluie_filtre_compomin(compteurmin,5,:,:)=pluie(b-16,a,:,:);
|
---|
| 305 | pluie_filtre_compomin(compteurmin,6,:,:)=pluie(b-15,a,:,:);
|
---|
| 306 | pluie_filtre_compomin(compteurmin,7,:,:)=pluie(b-14,a,:,:);
|
---|
| 307 | pluie_filtre_compomin(compteurmin,8,:,:)=pluie(b-13,a,:,:);
|
---|
| 308 | pluie_filtre_compomin(compteurmin,9,:,:)=pluie(b-12,a,:,:);
|
---|
| 309 | pluie_filtre_compomin(compteurmin,10,:,:)=pluie(b-11,a,:,:);
|
---|
| 310 | pluie_filtre_compomin(compteurmin,11,:,:)=pluie(b-10,a,:,:);
|
---|
| 311 | pluie_filtre_compomin(compteurmin,12,:,:)=pluie(b-9,a,:,:);
|
---|
| 312 | pluie_filtre_compomin(compteurmin,13,:,:)=pluie(b-8,a,:,:);
|
---|
| 313 | pluie_filtre_compomin(compteurmin,14,:,:)=pluie(b-7,a,:,:);
|
---|
| 314 | pluie_filtre_compomin(compteurmin,15,:,:)=pluie(b-6,a,:,:);
|
---|
| 315 | pluie_filtre_compomin(compteurmin,16,:,:)=pluie(b-5,a,:,:);
|
---|
| 316 | pluie_filtre_compomin(compteurmin,17,:,:)=pluie(b-4,a,:,:);
|
---|
| 317 | pluie_filtre_compomin(compteurmin,18,:,:)=pluie(b-3,a,:,:);
|
---|
| 318 | pluie_filtre_compomin(compteurmin,19,:,:)=pluie(b-2,a,:,:);
|
---|
| 319 | pluie_filtre_compomin(compteurmin,20,:,:)=pluie(b-1,a,:,:);
|
---|
| 320 | pluie_filtre_compomin(compteurmin,21,:,:)=pluie(b,a,:,:);
|
---|
| 321 | pluie_filtre_compomin(compteurmin,22,:,:)=pluie(b+1,a,:,:);
|
---|
| 322 | pluie_filtre_compomin(compteurmin,23,:,:)=pluie(b+2,a,:,:);
|
---|
| 323 | pluie_filtre_compomin(compteurmin,24,:,:)=pluie(b+3,a,:,:);
|
---|
| 324 | pluie_filtre_compomin(compteurmin,25,:,:)=pluie(b+4,a,:,:);
|
---|
| 325 | pluie_filtre_compomin(compteurmin,26,:,:)=pluie(b+5,a,:,:);
|
---|
| 326 | pluie_filtre_compomin(compteurmin,27,:,:)=pluie(b+6,a,:,:);
|
---|
| 327 | pluie_filtre_compomin(compteurmin,28,:,:)=pluie(b+7,a,:,:);
|
---|
| 328 | pluie_filtre_compomin(compteurmin,29,:,:)=pluie(b+8,a,:,:);
|
---|
| 329 | pluie_filtre_compomin(compteurmin,30,:,:)=pluie(b+9,a,:,:);
|
---|
| 330 | pluie_filtre_compomin(compteurmin,31,:,:)=pluie(b+10,a,:,:);
|
---|
| 331 | end;
|
---|
| 332 | end;
|
---|
[16] | 333 | end;
|
---|
[10] | 334 | end;
|
---|
| 335 |
|
---|
| 336 |
|
---|
| 337 | % on fait la somme des valeurs de pluie_filtreentiel sur le nbre d occurences
|
---|
| 338 | % on obtent un tableau de la forme (jours-avant-apres,lon,lat)
|
---|
[16] | 339 | pluie_filtre_compomin1(:,:,:)=nanmean(pluie_filtre_compomin);
|
---|
| 340 | clear pluie_filtre_compomin;
|
---|
| 341 | pluie_filtre_compomax1(:,:,:)=nanmean(pluie_filtre_compomax);
|
---|
| 342 | clear pluie_filtre_compomax;
|
---|
[10] | 343 |
|
---|
[16] | 344 | figure(1);
|
---|
| 345 | orient('landscape');
|
---|
| 346 | figure(2);
|
---|
| 347 | orient('landscape');
|
---|
| 348 | figure(3);
|
---|
| 349 | orient('landscape');
|
---|
[10] | 350 |
|
---|
| 351 | for e=1:7;
|
---|
| 352 | a=7-(e-1)+1;
|
---|
| 353 | f=2*(a-1)+1;
|
---|
| 354 | clear pluie_min pluie_max;
|
---|
[15] | 355 | pluie_min=zeros(17,41);
|
---|
| 356 | pluie_max=zeros(17,41);
|
---|
[10] | 357 | pluie_min(:,:)=pluie_filtre_compomin1(f,:,:);
|
---|
| 358 | pluie_max(:,:)=pluie_filtre_compomax1(f,:,:);
|
---|
[16] | 359 |
|
---|
[10] | 360 | for b=1:17;
|
---|
| 361 | for c=1:41;
|
---|
| 362 | if pluie_min(b,c)<0;
|
---|
| 363 | pluie_min(b,c)=0;
|
---|
| 364 | elseif pluie_min(b,c)>10;
|
---|
| 365 | pluie_min(b,c)=10;
|
---|
| 366 | end;
|
---|
[15] | 367 | if pluie_max(b,c)<0;
|
---|
[10] | 368 | pluie_max(b,c)=0;
|
---|
| 369 | elseif pluie_max(b,c)>10;
|
---|
| 370 | pluie_max(b,c)=10;
|
---|
| 371 | end;
|
---|
| 372 | end;
|
---|
| 373 | end
|
---|
| 374 | pluie_min(1,1)=-0.0001;
|
---|
| 375 | pluie_min(1,2)=10.0001;
|
---|
| 376 | pluie_max(1,1)=-0.0001;
|
---|
| 377 | pluie_max(1,2)=10.0001;
|
---|
[16] | 378 | lat=[-10:2.5:30];
|
---|
| 379 | lon=[-70:2.5:30]';
|
---|
| 380 | figure(1);
|
---|
| 381 | subplot(7,1,8-e);
|
---|
| 382 | palette
|
---|
[10] | 383 | aa=contourf(lon,lat,pluie_min,[0:0.5:10],'LineStyle','none');
|
---|
| 384 | if e==1;
|
---|
| 385 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 386 | else
|
---|
[10] | 387 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 388 | end;
|
---|
[10] | 389 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 390 | if e==4;
|
---|
[16] | 391 | co=colorbar;
|
---|
[15] | 392 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6);
|
---|
[10] | 393 | end;
|
---|
[16] | 394 | hold on;
|
---|
| 395 | cartemonde1;
|
---|
[10] | 396 | set (gca,'tickDir','out');
|
---|
| 397 | axis equal;
|
---|
| 398 | axis([-180 180 -10 40]);
|
---|
| 399 | if e==7;
|
---|
| 400 | title('Pluies IRD : Moyenne composite min (mode Rossby EOF2)','fontsize',8);
|
---|
| 401 | end;
|
---|
| 402 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 403 | pos_vert=e/10;
|
---|
[16] | 404 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 405 | % ***************************
|
---|
[16] | 406 | figure(2);
|
---|
| 407 | subplot(7,1,8-e);
|
---|
| 408 | palette
|
---|
[10] | 409 | aa=contourf(lon,lat,pluie_max,[0:0.5:10],'LineStyle','none');
|
---|
| 410 | if e==1;
|
---|
| 411 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 412 | else
|
---|
[10] | 413 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 414 | end;
|
---|
[10] | 415 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 416 | if e==4;
|
---|
[16] | 417 | co=colorbar;
|
---|
[15] | 418 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6);
|
---|
[10] | 419 | end;
|
---|
[16] | 420 | hold on;
|
---|
| 421 | cartemonde1;
|
---|
[10] | 422 | set (gca,'tickDir','out');
|
---|
| 423 | axis equal;
|
---|
| 424 | axis([-180 180 -10 40]);
|
---|
| 425 | if e==7;
|
---|
| 426 | title('Pluies IRD : Moyenne composite max (mode Rossby EOF2)','fontsize',8);
|
---|
| 427 | end;
|
---|
| 428 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 429 | pos_vert=e/10;
|
---|
[16] | 430 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 431 | %********************************************
|
---|
| 432 |
|
---|
[16] | 433 | figure(3);
|
---|
| 434 | subplot(7,1,8-e);
|
---|
| 435 | palette
|
---|
[10] | 436 | diff=pluie_min-pluie_max;
|
---|
| 437 | diff(1,1)=-5.01;
|
---|
| 438 | diff(1,2)=5.01;
|
---|
| 439 | aa=contourf(lon,lat,diff,[-5:0.5:5],'LineStyle','none');
|
---|
| 440 | if e==1;
|
---|
| 441 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 442 | else
|
---|
[10] | 443 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 444 | end;
|
---|
[10] | 445 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 446 | if e==4;
|
---|
[16] | 447 | co=colorbar;
|
---|
[15] | 448 | set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6);
|
---|
[10] | 449 | end;
|
---|
[16] | 450 | hold on;
|
---|
| 451 | cartemonde1;
|
---|
[10] | 452 | set (gca,'tickDir','out');
|
---|
| 453 | axis equal;
|
---|
| 454 | axis([-180 180 -10 40]);
|
---|
| 455 | if e==7;
|
---|
| 456 | title('Pluies IRD : Differences composite min-max (mode Rossby EOF2)','fontsize',8);
|
---|
| 457 | end;
|
---|
| 458 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 459 | pos_vert=e/10;
|
---|
[16] | 460 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 461 |
|
---|
| 462 |
|
---|
| 463 |
|
---|
| 464 | end;
|
---|
[16] | 465 | figure(1);
|
---|
| 466 | print -depsc2 composite_pluie_min_eof2a.eps;
|
---|
| 467 | figure(2);
|
---|
| 468 | print -depsc2 composite_pluie_max_eof2a.eps;
|
---|
| 469 | figure(3);
|
---|
| 470 | print -depsc2 composite_pluie_diff_eof2a.eps;
|
---|
[10] | 471 | close all
|
---|
| 472 |
|
---|
[16] | 473 | figure(1);
|
---|
| 474 | orient('landscape');
|
---|
| 475 | figure(2);
|
---|
| 476 | orient('landscape');
|
---|
| 477 | figure(3);
|
---|
| 478 | orient('landscape');
|
---|
[10] | 479 |
|
---|
| 480 | for e=1:7;
|
---|
| 481 | a=7-(e-1)+7;
|
---|
| 482 | f=2*(a-1)+1;
|
---|
| 483 | clear pluie_min pluie_max;
|
---|
[15] | 484 | pluie_min=zeros(17,41);
|
---|
| 485 | pluie_max=zeros(17,41);
|
---|
[10] | 486 | pluie_min(:,:)=pluie_filtre_compomin1(f,:,:);
|
---|
| 487 | pluie_max(:,:)=pluie_filtre_compomax1(f,:,:);
|
---|
| 488 |
|
---|
| 489 | for b=1:17;
|
---|
| 490 | for c=1:41;
|
---|
| 491 | if pluie_min(b,c)<0;
|
---|
| 492 | pluie_min(b,c)=0;
|
---|
| 493 | elseif pluie_min(b,c)>10;
|
---|
| 494 | pluie_min(b,c)=10;
|
---|
| 495 | end;
|
---|
[15] | 496 | if pluie_max(b,c)<0;
|
---|
[10] | 497 | pluie_max(b,c)=0;
|
---|
| 498 | elseif pluie_max(b,c)>10;
|
---|
| 499 | pluie_max(b,c)=10;
|
---|
| 500 | end;
|
---|
| 501 | end;
|
---|
| 502 | end
|
---|
| 503 | pluie_min(1,1)=-0.0001;
|
---|
| 504 | pluie_min(1,2)=10.0001;
|
---|
| 505 | pluie_max(1,1)=-0.0001;
|
---|
| 506 | pluie_max(1,2)=10.0001;
|
---|
[16] | 507 | lat=[-10:2.5:30];
|
---|
| 508 | lon=[-70:2.5:30]';
|
---|
| 509 | figure(1);
|
---|
| 510 | subplot(7,1,8-e);
|
---|
| 511 | palette
|
---|
[10] | 512 | aa=contourf(lon,lat,pluie_min,[0:0.5:10],'LineStyle','none');
|
---|
| 513 | if e==1;
|
---|
| 514 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 515 | else
|
---|
[10] | 516 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 517 | end;
|
---|
[10] | 518 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 519 | if e==4;
|
---|
[16] | 520 | co=colorbar;
|
---|
[15] | 521 | set (co,'xtick',[0:2:10],'xticklabel',[0:2:10],'fontname','Arial','fontsize',6);
|
---|
[10] | 522 | end;
|
---|
[16] | 523 | hold on;
|
---|
| 524 | cartemonde1;
|
---|
[10] | 525 | set (gca,'tickDir','out');
|
---|
| 526 | axis equal;
|
---|
| 527 | axis([-180 180 -10 40]);
|
---|
| 528 | if e==7;
|
---|
| 529 | title('Pluies IRD : Moyenne composite min (mode Rossby EOF2)','fontsize',8);
|
---|
| 530 | end;
|
---|
| 531 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 532 | pos_vert=e/10;
|
---|
[16] | 533 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 534 | % ***************************
|
---|
[16] | 535 | figure(2);
|
---|
| 536 | subplot(7,1,8-e);
|
---|
| 537 | palette
|
---|
[10] | 538 | aa=contourf(lon,lat,pluie_max,[0:0.5:10],'LineStyle','none');
|
---|
| 539 | if e==1;
|
---|
| 540 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 541 | else
|
---|
[10] | 542 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 543 | end;
|
---|
[10] | 544 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 545 | if e==4;
|
---|
[16] | 546 | co=colorbar;
|
---|
[15] | 547 | set (co,'xtick',[0:2:10],'xticklabel',[0:2:10],'fontname','Arial','fontsize',6);
|
---|
[10] | 548 | end;
|
---|
[16] | 549 | hold on;
|
---|
| 550 | cartemonde1;
|
---|
[10] | 551 | set (gca,'tickDir','out');
|
---|
| 552 | axis equal;
|
---|
| 553 | axis([-180 180 -10 40]);
|
---|
| 554 | if e==7;
|
---|
| 555 | title('Pluies IRD : Moyenne composite max (mode Rossby EOF2)','fontsize',8);
|
---|
| 556 | end;
|
---|
| 557 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 558 | pos_vert=e/10;
|
---|
[16] | 559 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 560 | %********************************************
|
---|
| 561 |
|
---|
[16] | 562 | figure(3);
|
---|
| 563 | subplot(7,1,8-e);
|
---|
| 564 | palette
|
---|
[10] | 565 | diff=pluie_min-pluie_max;
|
---|
| 566 | diff(1,1)=-5.01;
|
---|
| 567 | diff(1,2)=5.01;
|
---|
| 568 | aa=contourf(lon,lat,diff,[-5:0.5:5],'LineStyle','none');
|
---|
| 569 | if e==1;
|
---|
| 570 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' 180';'120W';' 60W';' 0';' 60E';'120E';' 180'],'fontname','Arial','fontsize',6);
|
---|
[15] | 571 | else
|
---|
[10] | 572 | set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6);
|
---|
[16] | 573 | end;
|
---|
[10] | 574 | set (gca,'YTick',[-10:10:40],'YTickLabel',[' ';' 0';'10N';'20N';'30N';' '],'fontname','Arial','fontsize',6);
|
---|
| 575 | if e==4;
|
---|
[16] | 576 | co=colorbar;
|
---|
[15] | 577 | set (co,'xtick',[-5:1:5],'xticklabel',[-5:1:5],'fontname','Arial','fontsize',6);
|
---|
[10] | 578 | end;
|
---|
[16] | 579 | hold on;
|
---|
| 580 | cartemonde1;
|
---|
[10] | 581 | set (gca,'tickDir','out');
|
---|
| 582 | axis equal;
|
---|
| 583 | axis([-180 180 -10 40]);
|
---|
| 584 | if e==7;
|
---|
| 585 | title('Pluies IRD : Differences composite min-max (mode Rossby EOF2)','fontsize',8);
|
---|
| 586 | end;
|
---|
| 587 | text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10);
|
---|
| 588 | pos_vert=e/10;
|
---|
[16] | 589 | set (gca,'position',[0.2 pos_vert 0.5 0.1]);
|
---|
[10] | 590 | end;
|
---|
[16] | 591 | figure(1);
|
---|
| 592 | print -depsc2 composite_pluie_min_eof2b.eps;
|
---|
| 593 | figure(2);
|
---|
| 594 | print -depsc2 composite_pluie_max_eof2b.eps;
|
---|
| 595 | figure(3);
|
---|
| 596 | print -depsc2 composite_pluie_diff_eof2b.eps;
|
---|