source: trunk/src/mode_sahelien/carte_eofER_1030_article.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: 2.9 KB
Line 
1%
2clear;
3close all;
4status=load('eof_rossby_jjas_2006_1030.mat','C','L');
5C=status.C;
6L=status.L;
7clear status;
8
9carte1=C(:,425);
10
11carte=reshape(carte1,25,17);
12carte=carte';
13
14clear carte1;
15% defintion des lat et lon
16lon=[-30:2.5:30]';
17lat=[-10:2.5:30];
18
19sauvegrads('eof1_spatial_ER1030',carte,[-30 2.5 -10 2.5]);
20orient('landscape');
21subplot(4,2,1);
22for a=1:17;
23    for b=1:25;
24        if carte(a,b)>0.2;
25            carte(a,b)=0.2;
26        elseif carte(a,b)<-0.2;
27            carte(a,b)=-0.2;
28        end;
29    end;
30end;
31carte(1,1)=-0.2001;
32carte(1,2)=0.2001;
33
34contour(lon,lat,-carte,[0.02:0.02:0.2],'k');
35hold on;
36
37[cs,h]=contour(lon,lat,-carte,[0.04:0.04:0.2],'k');
38clabel(cs,h,'color','k','rotation',0,'fontsize',5);
39
40contour(lon,lat,-carte,[-0.2:0.02:-0.02],'k:');
41
42[cs,h]=contour(lon,lat,-carte,[-0.2:0.04:-0.04],'k:');
43clabel(cs,h,'color','k','rotation',0,'fontsize',5);
44
45axis equal;
46axis([-30 30 -10 30]);
47title('EOF1 OLR filtre ER 10-30j','Fontsize',8);
48hold on;
49cartemonde1;
50set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';'  0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
51set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';'  0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6);
52set (gca,'tickDir','out');
53
54clear carte1 x y a b carte coco;
55carte1=C(:,424);
56carte=reshape(carte1,25,17);
57carte=carte';
58
59clear carte1;
60lon=[-30:2.5:30]';
61lat=[-10:2.5:30];
62sauvegrads('eof2_spatial_ER1030',carte,[-30 2.5 -10 2.5]);
63subplot(4,2,3);
64palette;
65for a=1:17;
66    for b=1:25;
67        if carte(a,b)>0.2;
68            carte(a,b)=0.2;
69        elseif carte(a,b)<-0.2;
70            carte(a,b)=-0.2;
71        end;
72    end;
73end;
74carte(1,1)=-0.2001;
75carte(1,2)=0.2001;
76
77contour(lon,lat,-carte,[0.02:0.02:0.2],'k');
78hold on;
79
80[cs,h]=contour(lon,lat,-carte,[0.04:0.04:0.2],'k');
81clabel(cs,h,'color','k','rotation',0,'fontsize',5);
82
83contour(lon,lat,-carte,[-0.2:0.02:-0.02],'k:');
84
85[cs,h]=contour(lon,lat,-carte,[-0.2:0.04:-0.04],'k:');
86clabel(cs,h,'color','k','rotation',0,'fontsize',5);
87axis equal;
88axis([-30 30 -10 30]);
89title('EOF2 OLR filtre ER 10-30j','Fontsize',8);
90hold on;
91cartemonde1;
92set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';'  0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6);
93set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';'  0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6);
94set (gca,'tickDir','out');
95
96vaude=0;
97for a=1:425;
98   vaude=vaude+L(a,a);
99end;
100vecteurs=zeros(20,1);
101for a=1:20;
102   b=425-(a-1);
103   vecteurs(a)=100*(L(b,b)/vaude);
104end;
105x=[1:20]';
106save('variance_expliquee_filtre_ER_1030j.txt','vecteurs','-ASCII');
107delete('variance_expliquee_filtre_ER_1030j.txt');
108
109subplot(4,2,5);
110composite_pluie_ird_rossby1030b;
111composite_olr_ER1030_filtre;
112set (gca,'position',[0.13 0.31 0.385 0.15]) ;
113
114subplot(4,2,7);
115%set (gca,'position',[0.13 0.06 0.335 0.15]);
116time_serie_ER_rossby_1030
117set (gca,'position',[0.13 0.05 0.335 0.15]) ;
118print('-depsc2','figure_article_serge_1030_bis.eps');
Note: See TracBrowser for help on using the repository browser.