source: trunk/src/SIMULS_IRCAAM/time_serie_afr_30100.m @ 15

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

modification according to mlint diagnostic

File size: 1.5 KB
Line 
1clear;
2
3load eof_30100_ircaam.mat
4olr=olr';
5PC1=olr*C;
6
7
8%%%%%%% cronique de la VP1
9time_serie_olr1=PC1(:,360);
10time_serie_olr2=PC1(:,359);
11
12dt_olr1=std(time_serie_olr1);
13dt_olr2=std(time_serie_olr2);
14
15
16for a=1:3538;
17   time_serie_olr1(a)=time_serie_olr1(a)/dt_olr1;
18   time_serie_olr2(a)=time_serie_olr2(a)/dt_olr2;
19end
20
21save eof1_AFR_30100.txt time_serie_olr1 -ascii;
22save eof2_AFR_30100.txt time_serie_olr2 -ascii;
23
24x=[1:3538]';
25for a=1:29;
26   if a<12;
27      figure(1); subplot(4,3,a);
28   elseif a<23;
29      figure(2); subplot(4,3,a-11);
30   else
31      figure(3); subplot(4,3,a-22);
32   end
33   clear koro1
34   debut=(a-1)*122+1;
35   fin=a*122;
36   koro1=time_serie_olr1(debut:fin);
37   koro2=time_serie_olr2(debut:fin);
38   clear x; x=[1:122]';
39   plot(x,koro1,'r');
40   hold on
41   plot(x,koro2,'k');
42   y=zeros(122,1);
43   plot(x,y,'k:');
44   title(a+1970,'FontSize',8);
45   if a==2;
46       text(0,5.5,'serie temporelle eof AFR 30100');
47    elseif a==13;
48       text(0,5.5,'serie temporelle eof AFR 30100');
49   elseif a==24;
50       text(0,5.5,'serie temporelle eof AFR 30100');
51   end;
52   set (gca,'tickDir','out');
53   axis([1 122 -3 3]);
54   
55
56   set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6);
57set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6);
58end;
59
60figure(1); print -depsc2 time_serie_eof_afr_30100a.eps;
61figure(2); print -depsc2 time_serie_eof_afr_30100b.eps;
62figure(3); print -depsc2 time_serie_eof_afr_30100c.eps;
63
Note: See TracBrowser for help on using the repository browser.