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