source: trunk/src/mode_sahelien/time_serie_jjas_10_25.m @ 30

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

correction of usage of save function

File size: 1.8 KB
Line 
1%
2
3clear;
4
5status=load('eof_1025_jjas.mat','C','olr');
6C=status.C;
7olr=status.olr;
8clear status;
9
10olr=olr';
11PC1=olr*C;
12
13%%%%%%% cronique de la VP1
14time_serie_olr1=PC1(:,425);
15time_serie_olr2=PC1(:,424);
16time_serie_olr3=PC1(:,423);
17
18dt_olr1=std(time_serie_olr1);
19dt_olr2=std(time_serie_olr2);
20dt_olr3=std(time_serie_olr3);
21
22for a=1:3416;
23   time_serie_olr1(a)=time_serie_olr1(a)/dt_olr1;
24   time_serie_olr2(a)=time_serie_olr2(a)/dt_olr2;
25   time_serie_olr3(a)=time_serie_olr3(a)/dt_olr3;
26end;
27
28save('eof1_olr_rossby_jjas_1025.txt','time_serie_olr1','-ASCII');
29save('eof2_olr_rossby_jjas_1025.txt','time_serie_olr2','-ASCII');
30save('eof3_olr_rossby_jjas_1025.txt','time_serie_olr3','-ASCII');
31
32x=[1:3416]';
33for a=1:28;
34   if a<12;
35      figure(1);
36      subplot(4,3,a);
37   elseif a<23;
38      figure(2);
39      subplot(4,3,a-11);
40   else
41      figure(3);
42      subplot(4,3,a-22);
43   end;
44   clear koro1;
45   debut=(a-1)*122+1;
46   fin=a*122;
47   koro1=time_serie_olr1(debut:fin);
48   clear x;
49   x=[1:122]';
50   plot(x,koro1,'r');
51   hold on
52   y=zeros(122,1);
53   plot(x,y,'k:');
54   title(a+1978,'FontSize',8);
55   if a==2;
56       text(0,5.5,'serie temporelle VP1 filtrage rossby 10-25j');
57   elseif a==13;
58       text(0,5.5,'serie temporelle VP1 filtrage rossby 10-25j');
59   elseif a==24;
60       text(0,5.5,'serie temporelle VP1 filtrage rossby 10-25j');
61   end;
62   set (gca,'tickDir','out');
63   axis([1 122 -3 3]);
64
65   set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6);
66   set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
67end;
68
69figure(1);
70print('-depsc2','time_serie_rossby_JJAS_2006_10-25j_part1.eps');
71figure(2);
72print('-depsc2','time_serie_rossby_JJAS_2006_10-25j_part2.eps');
73figure(3);
74print('-depsc2','time_serie_rossby_JJAS_2006_10-25j_part3.eps');
Note: See TracBrowser for help on using the repository browser.