source: trunk/src/mode_sahelien/reconstitution_30100_eof1.m @ 13

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

first commit with original work of Sebastien Gervois

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