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