1 | % |
---|
2 | |
---|
3 | clear; |
---|
4 | close all; |
---|
5 | |
---|
6 | %lon=[-30:2.5:30], lat=[-10:2.5:30] |
---|
7 | |
---|
8 | status=load('eof_30100_jjas.mat','C','olr'); |
---|
9 | C=status.C; |
---|
10 | olr=status.olr; |
---|
11 | clear status; |
---|
12 | |
---|
13 | olr=olr'; |
---|
14 | PC1=olr*C; |
---|
15 | |
---|
16 | cosa=zeros(4,3416,425); |
---|
17 | % boucle sur les VP |
---|
18 | for a=1:4; |
---|
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(2:3,:,:); |
---|
33 | cosa23(:,:)=sum(cosabis); |
---|
34 | clear cosabis; |
---|
35 | cosa23=reshape(cosa23,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 | cosa1=cosa1(:,lon1:lon2,lat1:lat2); |
---|
55 | clear cosi2; |
---|
56 | cosa1=reshape(cosa1,3416,taille); |
---|
57 | cosa1=cosa1'; |
---|
58 | cosa1=mean(cosa1); |
---|
59 | cosa1=cosa1'; |
---|
60 | save('eof1_30100.txt','cosa1','-ASCII'); |
---|
61 | cosa1=reshape(cosa1,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); |
---|
81 | else |
---|
82 | figure(3); |
---|
83 | subplot(4,3,a-23); |
---|
84 | end; |
---|
85 | y2=cosa1(:,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 7.5 -12.5N et 10W - 10E'); |
---|
97 | elseif a==13; |
---|
98 | text(0,65,'OLR 7.5 -12.5N et 10W - 10E'); |
---|
99 | end; |
---|
100 | set (gca,'tickDir','out'); |
---|
101 | if a==11; |
---|
102 | aa=legend('OLR VP1','OLR NOAA'); |
---|
103 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.2470 0.1642]) |
---|
104 | legend boxoff; |
---|
105 | elseif a==22; |
---|
106 | clear aa; |
---|
107 | aa=legend('OLR VP1','OLR NOAA'); |
---|
108 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.2470 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); |
---|
118 | print('-depsc2','reconstitution1_eof1_filtreER_30100.eps'); |
---|
119 | figure(2); |
---|
120 | print('-depsc2','reconstitution2_eof1_filtreER_30100.eps'); |
---|
121 | figure(3); |
---|
122 | print('-depsc2','reconstitution3_eof1_filtreER_30100.eps'); |
---|