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

Last change on this file since 42 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
16
17clear;
18
19status=load('eof_rossby_jjas_2006_30100.mat','C','olr');
20C=status.C;
21olr=status.olr;
22clear status;
23
24olr=olr';
25PC1=olr*C;
26
27time_serie_olr1=PC1(:,425);
28time_serie_olr2=PC1(:,424);
29year=zeros(122,28);
30for a=1:122
31    for b=1:28;
32       year(a,b)=1979+(b-1);
33    end;
34end;
35year=reshape(year,3416,1);
36
37day=zeros(122,28);
38for a=1:122
39    for b=1:28;
40       day(a,b)=31+28+31+30+31+a;
41    end;
42end;
43day=reshape(day,3416,1);
44
45table_ER_30100=zeros(3416,4);
46for a=1:3416;
47     for b=1:4;
48        table_ER_30100(a,1)=year(a);
49        table_ER_30100(a,2)=day(a);
50        table_ER_30100(a,3)=time_serie_olr1(a);
51        table_ER_30100(a,4)=time_serie_olr2(a);
52     end;
53end;
54
55save('table_ER_30100.txt','table_ER_30100','-ASCII');
56
57a=1;
58clear koro1
59debut=(a-1)*122+1;
60fin=a*122;
61koro1=time_serie_olr1(debut:fin);
62koro2=time_serie_olr2(debut:fin);
63x=[1:122]';
64aa=plot(x,-koro1,'r');
65hold on;
66bb=plot(x,-koro2,'k');
67cc=legend('EOF1','EOF2')
68set (cc,'fontsize',6)
69legend boxoff
70y=zeros(122,1);
71plot(x,y,'k:');
72
73set (gca,'tickDir','out');
74axis([1 122 -100 100]);
75
76set (gca,'YTick',[-100:20:100],'YTickLabel',[-100:20:100],'fontname','Arial','fontsize',6);
77set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
Note: See TracBrowser for help on using the repository browser.