1 | % |
---|
2 | |
---|
3 | clear; |
---|
4 | close all; |
---|
5 | |
---|
6 | status=load('eof_rossby_jjas.mat','C','olr_centre'); |
---|
7 | C=status.C; |
---|
8 | olr_centre=status.olr_centre; |
---|
9 | clear status; |
---|
10 | |
---|
11 | olr_centre=olr_centre'; |
---|
12 | PC1=olr_centre*C; |
---|
13 | |
---|
14 | cosa=zeros(3,2684,425); |
---|
15 | % boucle sur les VP |
---|
16 | for a=1:3; |
---|
17 | for b=1:2684 % boucle sur le temps |
---|
18 | for c=1:425 % boucle sur l espace |
---|
19 | cosa(a,b,c)=PC1(b,426-a)*C(c,426-a); |
---|
20 | end; |
---|
21 | end; |
---|
22 | end; |
---|
23 | |
---|
24 | cosi3(:,:)=sum(cosa); |
---|
25 | cosi3=reshape(cosi3,2684,17,25); |
---|
26 | |
---|
27 | cosabis=cosa(1:2,:,:); |
---|
28 | cosi2(:,:)=sum(cosabis); |
---|
29 | clear cosabis; |
---|
30 | cosi2=reshape(cosi2,2684,17,25); |
---|
31 | |
---|
32 | cosa1(:,:)=cosa(1,:,:); |
---|
33 | clear cosa; |
---|
34 | cosi1=reshape(cosa1,2684,17,25); |
---|
35 | clear cosa1; |
---|
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 | taille=(12-7+1)*(17-9+1); |
---|
47 | cosa1=cosi1(:,7:12,9:17); |
---|
48 | clear cosi1; |
---|
49 | cosa1=reshape(cosa1,2684,taille); |
---|
50 | cosa1=cosa1'; |
---|
51 | cosa1=mean(cosa1); |
---|
52 | cosa1=cosa1'; |
---|
53 | cosa1=reshape(cosa1,122,22); |
---|
54 | |
---|
55 | cosa2=cosi2(:,7:12,9:17); |
---|
56 | clear cosi2; |
---|
57 | cosa2=reshape(cosa2,2684,taille); |
---|
58 | cosa2=cosa2'; |
---|
59 | cosa2=mean(cosa2); |
---|
60 | cosa2=cosa2'; |
---|
61 | status=save('mode_rossby_jjas.txt','cosa2','-ASCII'); |
---|
62 | |
---|
63 | cosa2=reshape(cosa2,122,22); |
---|
64 | |
---|
65 | cosa3=cosi3(:,7:12,9:17); |
---|
66 | clear cosi3; |
---|
67 | cosa3=reshape(cosa3,2684,taille); |
---|
68 | cosa3=cosa3'; |
---|
69 | cosa3=mean(cosa3); |
---|
70 | cosa3=cosa3'; |
---|
71 | cosa3=reshape(cosa3,122,22); |
---|
72 | |
---|
73 | % On selectionne la demaine geographique |
---|
74 | olr_centre=reshape(olr_centre,2684,17,25); |
---|
75 | cosa4=olr_centre(:,7:12,9:17); |
---|
76 | clear olr_centre; |
---|
77 | cosa4=reshape(cosa4,2684,taille); |
---|
78 | clear taille; |
---|
79 | cosa4=cosa4'; |
---|
80 | cosa4=mean(cosa4); |
---|
81 | cosa4=cosa4'; |
---|
82 | cosa4=reshape(cosa4,122,22); |
---|
83 | |
---|
84 | for a=1:22; |
---|
85 | if a<12; |
---|
86 | figure(1); |
---|
87 | subplot(4,3,a); |
---|
88 | else |
---|
89 | figure(2); |
---|
90 | subplot(4,3,a-11); |
---|
91 | end; |
---|
92 | y1=cosa1(:,a); |
---|
93 | y2=cosa2(:,a); |
---|
94 | y3=cosa3(:,a); |
---|
95 | y4=cosa4(:,a); |
---|
96 | x=[1:122]'; |
---|
97 | plot(x,y1,'r'); |
---|
98 | hold on; |
---|
99 | plot(x,y2); |
---|
100 | plot(x,y3,'g'); |
---|
101 | plot(x,y4,'k'); |
---|
102 | y5=zeros(122,1); |
---|
103 | plot(x,y5,'k:'); |
---|
104 | |
---|
105 | title(a+1978,'Fontsize',8); |
---|
106 | if a==2; |
---|
107 | text(0,65,'OLR 5 -17.5N et 10W - 10E'); |
---|
108 | elseif a==13; |
---|
109 | text(0,65,'OLR 5 - 17.5N et 10W - 10E'); |
---|
110 | end; |
---|
111 | set (gca,'tickDir','out'); |
---|
112 | if a==11; |
---|
113 | aa=legend('OLR VP1','OLR VP1-2','OLR VP1-3','OLR NOAA'); |
---|
114 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.1270 0.1642]) |
---|
115 | legend boxoff; |
---|
116 | elseif a==22; |
---|
117 | clear aa; |
---|
118 | aa=legend('OLR VP1','OLR VP1-2','OLR VP1-3','OLR NOAA'); |
---|
119 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.1270 0.1642]) |
---|
120 | legend boxoff; |
---|
121 | elseif a==22; |
---|
122 | clear aa; |
---|
123 | aa=legend('OLR VP1','OLR VP1-2','OLR VP1-3','OLR NOAA'); |
---|
124 | set (aa,'fontsize',8,'Position',[0.6800 0.1039 0.1270 0.1642]) |
---|
125 | legend boxoff; |
---|
126 | end; |
---|
127 | axis([1 122 -40 40]); |
---|
128 | set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); |
---|
129 | set (gca,'XTick',[10:10:90],'XTickLabel',[10:10:90],'fontname','Arial','fontsize',6); |
---|
130 | |
---|
131 | end; |
---|
132 | |
---|
133 | figure(1); |
---|
134 | print('-depsc2','reconstitution_OLR_JJAS_part1.eps'); |
---|
135 | figure(2); |
---|
136 | print('-depsc2','reconstitution_OLR_JJAS_part2.eps'); |
---|
137 | figure(3); |
---|
138 | print('-depsc2','reconstitution_OLR_JJAS_part3.eps'); |
---|