source: trunk/src/mode_sahelien/reconstitution_1030_std.m @ 25

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

small homogenization

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