source: trunk/src/mode_sahelien/time_serie_jjas.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.4 KB
Line 
1%
2
3clear;
4
5status=load('eof_1030_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_1030.txt','time_serie_olr1','-ASCII');
29save('eof2_1030.txt','time_serie_olr2','-ASCII');
30save('eof3_1030.txt','time_serie_olr3','-ASCII');
31
32x=[1:3416]';
33for a=1:22;
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
49   clear x;
50   x=[1:122]';
51   plot(x,koro1,'r');
52   hold on
53   y=zeros(122,1);
54   plot(x,y,'k:');
55   title(a+1978,'FontSize',8);
56   if a==2;
57       text(0,5.5,'serie temporelle VP1');
58   elseif a==13;
59       text(0,5.5,'serie temporelle VP1');
60   elseif a==24;
61       text(0,5.5,'serie temporelle VP1');
62   end;
63   set (gca,'tickDir','out');
64   axis([1 122 -3 3]);
65
66   set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6);
67   set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
68end;
Note: See TracBrowser for help on using the repository browser.