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