source: trunk/src/SIMULS_IRCAAM/time_serie_tr_30100.m @ 25

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

small homogenization

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