source: trunk/src/mode_sahelien/carte_eofER_30100_article.m @ 18

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

remove CR from CRLF in matlab files

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