source: trunk/src/mode_sahelien/obsolete/time_serie_ER_rossby_1030.m @ 43

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

unparametrized files in obsolete directory

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