source: trunk/src/mode_sahelien/obsolete/reconstitution_ER_rossby_30100.m @ 42

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

unparametrized files in obsolete directory

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