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

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

parametrisation of carte_eof_ER_jjas_....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_df.m_
35%
36% .. _carte_eof_ER_jjas_df.m : carte_eof_ER_jjas_df.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%
47% improve file pb
48%
49% use return function
50%
51% EVOLUTIONS
52% ==========
53%
54% - fplod 2009-01-27T11:51:31Z aedon.locean-ipsl.upmc.fr (Darwin)
55%
56%   * created from time_serie_ER_rossby_1030_complet.m to replace it as well as
57%     time_serie_ER_rossby_30100_complet.m
58%
59%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames.
60%
61%-
62
63global IRCAAM_ID;
64global IRCAAM_OD;
65
66if nargin==2
67 % ndmin must be lower than ndmax
68 if (ndmin > ndmax)
69  disp(['ndmin = ', int2str(ndmin)]);
70  disp(['ndmax = ', int2str(ndmax)]);
71  error('eee : ndmin must be lower than ndmax');
72 end
73else
74  usage='usage : time_serie_ER_rossby_df(ndmin, ndmax)';
75  disp(usage);
76  error('eee : wrong arguments numbers')
77end
78
79% ndmin and ndmax will be used in xx-yyd form in filenames
80df = [int2str(ndmin),'-',int2str(ndmax),'d'];
81clear ndmin;
82clear ndmax;
83
84close all;
85
86figure(1);
87orient('landscape')
88figure(2);
89orient('landscape')
90figure(3);
91orient('landscape')
92
93fullfilename=[IRCAAM_ID,'eof_rossby_jjas_2006_',df,'.mat'];
94status=load(fullfilename,'C','olr');
95clear fullfilename;
96C=status.C;
97olr=status.olr;
98clear status;
99
100olr=olr';
101PC1=olr*C;
102
103time_serie_olr1=PC1(:,425);
104time_serie_olr2=PC1(:,424);
105
106for a=1:28;
107   if a<12;
108      figure(1);
109      subplot(4,3,a);
110   elseif a<23;
111      figure(2);
112      subplot(4,3,a-11);
113   else
114      figure(3);
115      subplot(4,3,a-22);
116   end;
117   clear koro1
118   debut=(a-1)*122+1;
119   fin=a*122;
120   koro1=time_serie_olr1(debut:fin);
121   koro2=time_serie_olr2(debut:fin);
122   x=[1:122]';
123   aa=plot(x,-koro1,'r');
124   hold on;
125   bb=plot(x,-koro2,'k');
126%   cc=legend('EOF1','EOF2')
127%   set (cc,'fontsize',6)
128%   legend boxoff;
129   y=zeros(122,1);
130   plot(x,y,'k:');
131   if a==2;
132       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
133   elseif a==13;
134       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
135   elseif a==24;
136       text(0,183,['time series EOF1 and EOF2 OLR ER ' df]);
137   end;
138   title(a+1978,'FontSize',8);
139   set (gca,'tickDir','out');
140axis([1 122 -100 100]);
141
142set (gca,'YTick',[-100:20:100],'YTickLabel',[-100:20:100],'fontname','Arial','fontsize',6);
143set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
144end;
145
146figure(1);
147fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part1.eps'];
148print('-depsc2',fullfilename);
149figure(2);
150fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part2.eps'];
151print('-depsc2',fullfilename);
152figure(3);
153fullfilename=[IRCAAM_OD,'time_serie_eof_ER_',df,'_part3.eps'];
154print('-depsc2',fullfilename);
Note: See TracBrowser for help on using the repository browser.