source: trunk/src/mode_sahelien/time_serie_ER_rossby_df_complet.m @ 32

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

parametrisation of time_serie_ER_rossby_...complet.m

File size: 3.3 KB
Line 
1function time_serie_ER_rossby_df_complet(ndmin, ndmax)
2% time_serie_ER_rossby_df_complet ++explication between ndmin days and ndmax days
3
4%+
5% module
6% ======
7%
8% ++
9%
10% DESCRIPTION
11% ===========
12%
13% plot ++ from file eof_rossby_jjas_2006_10-30d.mat
14%
15% EXAMPLES
16% ========
17%
18% Following line read eof_rossby_jjas_2006_10-30d.mat, plot ++and produce Postscript files time_serie_eof_ER_10-30d_part*.eps.
19% ::
20%
21% >> time_serie_ER_rossby_df_complet(10,30);
22%
23% SEE ALSO
24% ========
25%
26% olr_eof_jjas2006_rossby_1030.m_
27%
28% .. _olr_eof_jjas2006_rossby_1030.m : olr_eof_jjas2006_rossby_1030.m.html
29%
30% carte_eofER_1030_article.m_
31%
32% .. _carte_eofER_1030_article.m : carte_eofER_1030_article.m.html
33%
34% carte_eof_ER_jjas_1030.m_
35%
36% .. _carte_eof_ER_jjas_1030.m : carte_eof_ER_jjas_1030.m.html
37%
38% time_serie_ER_rossby_df.m_
39%
40% .. _time_serie_ER_rossby_df.m : time_serie_ER_rossby_df.m.html
41%
42% TODO
43% ====
44%
45% improve description
46% improve file pb
47% use return function
48%
49% EVOLUTIONS
50% ==========
51%
52% - fplod 2009-01-27T11:51:31Z aedon.locean-ipsl.upmc.fr (Darwin)
53%
54%   * created from time_serie_ER_rossby_1030_complet.m to replace it as well as
55%     time_serie_ER_rossby_30100_complet.m
56%     days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames
57%
58%-
59
60global IRCAAM_ID;
61global IRCAAM_OD;
62
63if nargin==2
64 % ndmin must be lower than ndmax
65 if (ndmin > ndmax)
66  disp(['ndmin = ', int2str(ndmin)]);
67  disp(['ndmax = ', int2str(ndmax)]);
68  error('eee : ndmin must be lower than ndmax');
69 end
70else
71  usage='usage : time_serie_ER_rossby_df(ndmin, ndmax)';
72  disp(usage);
73  error('eee : wrong arguments numbers')
74end
75
76% ndmin and ndmax will be used in xx-yyd form in filenames
77df = [int2str(ndmin),'-',int2str(ndmax),'d'];
78clear ndmin;
79clear ndmax;
80
81close all;
82
83figure(1);
84orient('landscape')
85figure(2);
86orient('landscape')
87figure(3);
88orient('landscape')
89
90fullfilename=[IRCAAM_ID,'eof_rossby_jjas_2006_',df,'.mat'];
91status=load(fullfilename,'C','olr');
92clear fullfilename;
93C=status.C;
94olr=status.olr;
95clear status;
96
97olr=olr';
98PC1=olr*C;
99
100time_serie_olr1=PC1(:,425);
101time_serie_olr2=PC1(:,424);
102
103for a=1:28;
104   if a<12;
105      figure(1);
106      subplot(4,3,a);
107   elseif a<23;
108      figure(2);
109      subplot(4,3,a-11);
110   else
111      figure(3);
112      subplot(4,3,a-22);
113   end;
114   clear koro1
115   debut=(a-1)*122+1;
116   fin=a*122;
117   koro1=time_serie_olr1(debut:fin);
118   koro2=time_serie_olr2(debut:fin);
119   x=[1:122]';
120   aa=plot(x,-koro1,'r');
121   hold on;
122   bb=plot(x,-koro2,'k');
123%   cc=legend('EOF1','EOF2')
124%   set (cc,'fontsize',6)
125%   legend boxoff;
126   y=zeros(122,1);
127   plot(x,y,'k:');
128   if a==2;
129       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
130   elseif a==13;
131       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
132   elseif a==24;
133       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
134   end;
135   title(a+1978,'FontSize',8);
136   set (gca,'tickDir','out');
137axis([1 122 -100 100]);
138
139set (gca,'YTick',[-100:20:100],'YTickLabel',[-100:20:100],'fontname','Arial','fontsize',6);
140set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
141end;
142
143figure(1);
144fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part1.eps'];
145print('-depsc2',fullfilename);
146figure(2);
147fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part2.eps'];
148print('-depsc2',fullfilename);
149figure(3);
150fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part3.eps'];
151print('-depsc2',fullfilename);
Note: See TracBrowser for help on using the repository browser.