[17] | 1 | % |
---|
| 2 | |
---|
| 3 | clear; |
---|
| 4 | close all; |
---|
| 5 | |
---|
| 6 | %lon=[-30:2.5:30], lat=[-10:2.5:30] |
---|
| 7 | |
---|
[24] | 8 | status=load('eof_rossby_jjas_2006_1030.mat','C','olr'); |
---|
| 9 | C=status.C; |
---|
| 10 | olr=status.olr; |
---|
| 11 | clear status; |
---|
| 12 | |
---|
[17] | 13 | olr=olr'; |
---|
| 14 | PC1=olr*C; |
---|
| 15 | |
---|
| 16 | cosa=zeros(3,3416,425); |
---|
| 17 | % boucle sur les VP |
---|
| 18 | for a=1:3; |
---|
| 19 | for b=1:3416 % boucle sur le temps |
---|
| 20 | for c=1:425 % boucle sur l espace |
---|
| 21 | cosa(a,b,c)=PC1(b,426-a)*C(c,426-a); |
---|
| 22 | end; |
---|
| 23 | end; |
---|
| 24 | end; |
---|
| 25 | |
---|
| 26 | cosa1(:,:)=cosa(1,:,:); |
---|
| 27 | cosa1=reshape(cosa1,3416,25,17); |
---|
| 28 | |
---|
| 29 | cosa2(:,:)=cosa(2,:,:); |
---|
| 30 | cosa2=reshape(cosa2,3416,25,17); |
---|
| 31 | |
---|
| 32 | cosabis=cosa(1:2,:,:); |
---|
| 33 | cosa12(:,:)=sum(cosabis); |
---|
| 34 | clear cosabis; |
---|
| 35 | cosa12=reshape(cosa12,3416,25,17); |
---|
| 36 | |
---|
| 37 | figure(1); |
---|
| 38 | orient('landscape') |
---|
| 39 | figure(2); |
---|
| 40 | orient('landscape') |
---|
| 41 | figure(3); |
---|
| 42 | orient('landscape') |
---|
| 43 | |
---|
| 44 | % On selectionne la demaine geographique |
---|
| 45 | |
---|
| 46 | % la latitude : 7.5N (8) 12.5N (10) |
---|
| 47 | % la longitude : 10W (9) 10E(17) |
---|
| 48 | lat1=8; |
---|
| 49 | lat2=10; |
---|
| 50 | lon1=9; |
---|
| 51 | lon2=17; |
---|
| 52 | taille=(lat2-lat1+1)*(lon2-lon1+1); |
---|
| 53 | |
---|
| 54 | cosa12=cosa12(:,lon1:lon2,lat1:lat2); |
---|
| 55 | clear cosi2; |
---|
| 56 | cosa12=reshape(cosa12,3416,taille); |
---|
| 57 | cosa12=cosa12'; |
---|
| 58 | cosa12=mean(cosa12); |
---|
| 59 | cosa12=cosa12'; |
---|
[23] | 60 | status=save('eof12_rossby_1030.txt','cosa12','-ASCII'); |
---|
[17] | 61 | cosa12=reshape(cosa12,122,28); |
---|
| 62 | |
---|
| 63 | % On selectionne la demaine geographique |
---|
| 64 | olr=reshape(olr,3416,25,17); |
---|
| 65 | cosa4=olr(:,lon1:lon2,lat1:lat2); |
---|
| 66 | clear olr; |
---|
| 67 | cosa4=reshape(cosa4,3416,taille); |
---|
| 68 | clear taille; |
---|
| 69 | cosa4=cosa4'; |
---|
| 70 | cosa4=mean(cosa4); |
---|
| 71 | cosa4=cosa4'; |
---|
| 72 | cosa4=reshape(cosa4,122,28); |
---|
| 73 | |
---|
| 74 | for a=1:28; |
---|
| 75 | if a<12; |
---|
| 76 | figure(1); |
---|
| 77 | subplot(4,3,a); |
---|
| 78 | elseif a<24 |
---|
| 79 | figure(2); |
---|
| 80 | subplot(4,3,a-11); |
---|
[25] | 81 | else |
---|
[17] | 82 | figure(3); |
---|
| 83 | subplot(4,3,a-23); |
---|
[25] | 84 | end; |
---|
[17] | 85 | y2=cosa12(:,a); |
---|
| 86 | y4=cosa4(:,a); |
---|
| 87 | x=[1:122]'; |
---|
| 88 | plot(x,y2); |
---|
| 89 | hold on; |
---|
| 90 | plot(x,y4,'k'); |
---|
| 91 | y5=zeros(122,1); |
---|
| 92 | plot(x,y5,'k:'); |
---|
| 93 | |
---|
| 94 | title(a+1978,'Fontsize',8); |
---|
| 95 | if a==2; |
---|
| 96 | text(0,65,'OLR 5 -17.5N et 10W - 10E'); |
---|
| 97 | elseif a==13; |
---|
| 98 | text(0,65,'OLR 5 - 17.5N et 10W - 10E'); |
---|
[25] | 99 | end; |
---|
[17] | 100 | set (gca,'tickDir','out'); |
---|
| 101 | if a==11; |
---|
| 102 | aa=legend('OLR VP1-2','OLR NOAA'); |
---|
| 103 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.1270 0.1642]) |
---|
| 104 | legend boxoff; |
---|
| 105 | elseif a==22; |
---|
| 106 | clear aa; |
---|
| 107 | aa=legend('OLR VP1-2','OLR NOAA'); |
---|
| 108 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.1270 0.1642]) |
---|
| 109 | legend boxoff; |
---|
| 110 | end; |
---|
| 111 | axis([1 122 -15 15]); |
---|
| 112 | set (gca,'YTick',[-15:5:15],'YTickLabel',[-15:5:15],'fontname','Arial','fontsize',6); |
---|
| 113 | set (gca,'XTick',[10:10:122],'XTickLabel',[10:10:122],'fontname','Arial','fontsize',6); |
---|
| 114 | |
---|
| 115 | end; |
---|
| 116 | |
---|
| 117 | figure(1); |
---|
[24] | 118 | print('-depsc2','reconstitution1_eof12_filtreER_1030.eps'); |
---|
[17] | 119 | figure(2); |
---|
[24] | 120 | print('-depsc2','reconstitution2_eof12_filtreER_1030.eps'); |
---|
[17] | 121 | figure(3); |
---|
[24] | 122 | print('-depsc2','reconstitution3_eof12_filtreER_1030.eps'); |
---|