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

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

modification according to mlint diagnostic

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