source: trunk/src/SIMULS_IRCAAM/time_serie_noaa_annuel_20.m @ 24

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

correction of usage of print function, fix side effect of load function

File size: 1.5 KB
Line 
1%
2
3clear;
4close all;
5status=load('eof_olr_noaa_annuel_jas_1020.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(:,325);
15time_serie_olr2=PC1(:,324);
16time_serie_olr3=PC1(:,323);
17
18dt_olr1=std(time_serie_olr1);
19dt_olr2=std(time_serie_olr2);
20dt_olr3=std(time_serie_olr3);
21
22moy_olr1=mean(time_serie_olr1);
23moy_olr2=mean(time_serie_olr2);
24moy_olr3=mean(time_serie_olr3);
25
26orient('landscape')
27subplot(2,2,1);
28for a=1:28;
29   time_serie_olr1(a)=(time_serie_olr1(a)-moy_olr1)/dt_olr1;
30   time_serie_olr2(a)=(time_serie_olr2(a)-moy_olr2)/dt_olr2;
31   time_serie_olr3(a)=(time_serie_olr3(a)-moy_olr3)/dt_olr3;
32end
33
34status=save('eof1_noaa_annuel_20.txt','time_serie_olr1','-ASCII');
35status=save('eof2_noaa_annuel_20.txt','time_serie_olr2','-ASCII');
36status=save('eof3_noaa_annuel_20.txt','time_serie_olr3','-ASCII');
37
38x=[1:28]';
39koro1=time_serie_olr1;
40koro2=time_serie_olr2;
41koro3=time_serie_olr3;
42
43clear x;
44x=[1979:2006]';
45aa=plot(x,-koro1,'r');
46hold on
47bb=plot(x,-koro2,'k');
48cc=plot(x,-koro3,'g');
49dd=legend('eof1','eof2','eof3');
50legend boxoff
51set (dd,'Fontsize',8);
52y=zeros(28,1);
53plot(x,y,'k:');
54title('serie temporelle eof NOAA annuel domaine 10S-20N');
55axis([1979 2006 -3 3]);
56set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6);
57set (gca,'XTick',[1980:5:2005],'XTickLabel',[1980:5:2005],'fontname','Arial','fontsize',6);
58set (gca,'tickDir','out');
59print('-depsc2','time_serie_eof_noaa_annuel_20.eps');
Note: See TracBrowser for help on using the repository browser.