source: trunk/src/mode_sahelien/time_serie_ER_rossby_1030.m @ 30

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

correction of usage of save function

File size: 1.2 KB
Line 
1%
2
3clear;
4
5status=load('eof_rossby_jjas_2006_1030.mat','C','olr');
6C=status.C;
7olr=status.olr;
8clear status;
9
10olr=olr';
11PC1=olr*C;
12
13time_serie_olr1=PC1(:,425);
14time_serie_olr2=PC1(:,424);
15year=zeros(122,28);
16for a=1:122
17    for b=1:28;
18       year(a,b)=1979+(b-1);
19    end;
20end;
21year=reshape(year,3416,1);
22
23day=zeros(122,28);
24for a=1:122
25    for b=1:28;
26       day(a,b)=31+28+31+30+31+a;
27    end;
28end;
29day=reshape(day,3416,1);
30
31table_ER_1030=zeros(3416,4);
32for a=1:3416;
33     for b=1:4;
34        table_ER_1030(a,1)=year(a);
35        table_ER_1030(a,2)=day(a);
36        table_ER_1030(a,3)=time_serie_olr1(a);
37        table_ER_1030(a,4)=time_serie_olr2(a);
38     end;
39end;
40
41save('table_ER_1030.txt','table_ER_1030','-ASCII');
42
43a=1;
44clear koro1
45debut=(a-1)*122+1;
46fin=a*122;
47koro1=time_serie_olr1(debut:fin);
48koro2=time_serie_olr2(debut:fin);
49x=[1:122]';
50aa=plot(x,-koro1,'r');
51hold on;
52bb=plot(x,-koro2,'k');
53cc=legend('EOF1','EOF2');
54set (cc,'fontsize',6)
55legend boxoff
56y=zeros(122,1);
57plot(x,y,'k:');
58
59set (gca,'tickDir','out');
60axis([1 122 -100 100]);
61
62set (gca,'YTick',[-100:20:100],'YTickLabel',[-100:20:100],'fontname','Arial','fontsize',6);
63set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
Note: See TracBrowser for help on using the repository browser.