source: trunk/src/mode_sahelien/reconstitution_ER_rossby_1030.m @ 16

Last change on this file since 16 was 16, checked in by pinsard, 15 years ago

remove trailing blanks, split lines with multiple statements

File size: 2.6 KB
Line 
1%
2
3clear;
4close all;
5
6%lon=[-30:2.5:30], lat=[-10:2.5:30]
7
8load eof_rossby_jjas_2006_1030.mat
9olr=olr';
10PC1=olr*C;
11
12cosa=zeros(3,3416,425);
13% boucle sur les VP
14for 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;
20end;
21
22cosa1(:,:)=cosa(1,:,:);
23cosa1=reshape(cosa1,3416,25,17);
24
25cosa2(:,:)=cosa(2,:,:);
26cosa2=reshape(cosa2,3416,25,17);
27
28cosabis=cosa(1:2,:,:);
29cosa12(:,:)=sum(cosabis);
30clear cosabis;
31cosa12=reshape(cosa12,3416,25,17);
32
33figure(1);
34orient('landscape')
35figure(2);
36orient('landscape')
37figure(3);
38orient('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)
44lat1=8;
45lat2=10;
46lon1=9;
47lon2=17;
48taille=(lat2-lat1+1)*(lon2-lon1+1);
49
50cosa12=cosa12(:,lon1:lon2,lat1:lat2);
51clear cosi2;
52cosa12=reshape(cosa12,3416,taille);
53cosa12=cosa12';
54cosa12=mean(cosa12);
55cosa12=cosa12';
56save eof12_rossby_1030.txt cosa12 -ascii;
57cosa12=reshape(cosa12,122,28);
58
59% On selectionne la demaine geographique
60olr=reshape(olr,3416,25,17);
61cosa4=olr(:,lon1:lon2,lat1:lat2);
62clear olr;
63cosa4=reshape(cosa4,3416,taille);
64clear taille;
65cosa4=cosa4';
66cosa4=mean(cosa4);
67cosa4=cosa4';
68cosa4=reshape(cosa4,122,28);
69
70for 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
111end;
112
113figure(1);
114print -depsc2 reconstitution1_eof12_filtreER_1030.eps;
115figure(2);
116print -depsc2 reconstitution2_eof12_filtreER_1030.eps;
117figure(3);
118print -depsc2 reconstitution3_eof12_filtreER_1030.eps;
Note: See TracBrowser for help on using the repository browser.