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

Last change on this file since 71 was 71, checked in by pinsard, 14 years ago

add man troff output of manuals and some light modification in sources due to docutils upgrade (0.6); warning : new troubles with target

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