source: trunk/src/mode_sahelien/time_serie_jjas_30100.m @ 23

Last change on this file since 23 was 23, checked in by pinsard, 16 years ago

replace fcommands save, load and print by function calls

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