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