Changeset 16 for trunk/src/SIMULS_IRCAAM
- Timestamp:
- 01/06/09 10:53:18 (16 years ago)
- Location:
- trunk/src/SIMULS_IRCAAM
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SIMULS_IRCAAM/anomalies_olr_AFR_1979_2000.m
r15 r16 1 % 1 2 2 3 % ncload('rlut_d.AfNQIVIV.197106-09.nc') … … 4 5 % Name Size Bytes Class Attributes 5 6 % 6 % ans 1x4 268 cell 7 % lat 64x1 512 double 8 % lon 128x1 1024 double 9 % rlut 122x64x128 7995392 double 10 % time 122x1 976 double 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 11 12 % 12 13 … … 112 113 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 113 114 clear olr 114 olr=olr1; clear olr1; 115 olr=olr1; 116 clear olr1; 115 117 olr=olr(:,:,29:43,54:77); 116 118 taille=(43-29+1)*(77-54+1); … … 118 120 % taille de OLR 119 121 % 122 30 15 24 120 olr1=olr(31:122,:,:,:); clear olr 121 olr(:,:,:)=mean(olr1); clear olr1; 122 olr1=olr(31:122,:,:,:); 123 clear olr 124 olr(:,:,:)=mean(olr1); 125 clear olr1; 122 126 moyenne_olr(:,:)=mean(olr); 123 127 olr_centre=zeros(30,15,24); … … 130 134 end; 131 135 132 figure(1); orient('landscape'); 133 figure(2); orient('landscape'); 134 lon=lon(54:77); lon=lon-180; 135 lat=lat(29:43); lat=lat'; 136 figure(1); 137 orient('landscape'); 138 figure(2); 139 orient('landscape'); 140 lon=lon(54:77); 141 lon=lon-180; 142 lat=lat(29:43); 143 lat=lat'; 136 144 for a=1:22; 137 145 clear kara; … … 139 147 kara(:,:)=olr_centre(a+8,:,:); 140 148 if a<13; 141 figure(1); subplot(3,4,a); 149 figure(1); 150 subplot(3,4,a); 142 151 else 143 figure(2); subplot(3,4,a-12); 152 figure(2); 153 subplot(3,4,a-12); 144 154 end 145 155 for b=1:15; … … 167 177 end; 168 178 169 figure(1); print -depsc2 anomalies_OLR_1979_2000_simulAFR_part1.eps; 170 figure(2); print -depsc2 anomalies_OLR_1979_2000_simulAFR_part2.eps; 179 figure(1); 180 print -depsc2 anomalies_OLR_1979_2000_simulAFR_part1.eps; 181 figure(2); 182 print -depsc2 anomalies_OLR_1979_2000_simulAFR_part2.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_AFR_annuel.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_annuel_AFR.mat; … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('EOF1 OLR AFR annuel','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('EOF2 OLR AFR annuel','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('EOF3 OLR AFR annuel','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 98 102 99 103 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 104 clear carte1 x y a b carte coco; 102 105 carte1=C(:,357); … … 122 125 colorbar; 123 126 title('EOF4 OLR AFR annuel','Fontsize',8); 124 hold on; cartemonde; 127 hold on; 128 cartemonde; 125 129 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 130 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 131 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 132 131 133 subplot(3,2,4); … … 142 144 143 145 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 146 axis([0.5 20.5 0 25]); 145 147 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 148 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 147 149 set (gca,'tickDir','out'); 148 150 149 150 151 152 153 151 print -depsc2 resultats_eof_AFR_annuel.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_1030_ircaam.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 96 100 set (gca,'tickDir','out'); 97 101 98 99 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 clear carte1 x y a b carte coco; 102 103 carte1=C(:,357); … … 122 123 colorbar; 123 124 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 125 hold on; 126 cartemonde; 125 127 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 128 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 129 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 130 131 131 subplot(3,2,4); … … 142 142 143 143 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 144 axis([0.5 20.5 0 25]); 145 145 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 146 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 147 147 set (gca,'tickDir','out'); 148 148 149 150 151 152 153 149 print -depsc2 resultats_eof_jjas_2006_1030.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_as.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_1030_ircaam_as.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 98 102 99 103 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 104 clear carte1 x y a b carte coco; 102 105 carte1=C(:,357); … … 122 125 colorbar; 123 126 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 127 hold on; 128 cartemonde; 125 129 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 130 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 131 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 132 131 133 subplot(3,2,4); … … 142 144 143 145 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 146 axis([0.5 20.5 0 25]); 145 147 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 148 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_1030_ircaam_ctl.mat … … 15 17 lat=lat(29:43)'; 16 18 17 figure(1); orient('landscape'); 19 figure(1); 20 orient('landscape'); 18 21 subplot(3,2,1); 19 22 palette; … … 33 36 colorbar; 34 37 title('OLR EOF1','Fontsize',8); 35 hold on; cartemonde; 38 hold on; 39 cartemonde; 36 40 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 37 41 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 38 42 set (gca,'tickDir','out'); 39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%40 43 41 clear carte1 x y a b carte coco; 44 clear carte1 x y a b carte coco; 42 45 carte1=C(:,359); 43 46 carte=reshape(carte1,24,15); … … 64 67 65 68 title('OLR EOF2','Fontsize',8); 66 hold on; cartemonde; 69 hold on; 70 cartemonde; 67 71 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 68 72 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 69 73 set (gca,'tickDir','out'); 70 74 71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%72 75 clear carte1 x y a b carte coco; 73 76 carte1=C(:,358); … … 93 96 colorbar; 94 97 title('OLR EOF3','Fontsize',8); 95 hold on; cartemonde; 98 hold on; 99 cartemonde; 96 100 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 97 101 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 100 104 101 105 102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%103 106 clear carte1 x y a b carte coco; 104 107 carte1=C(:,357); … … 124 127 colorbar; 125 128 title('OLR EOF4','Fontsize',8); 126 hold on; cartemonde; 129 hold on; 130 cartemonde; 127 131 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 128 132 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 129 133 set (gca,'tickDir','out'); 130 131 %%%%%%%%%%132 134 133 135 subplot(3,2,4); … … 144 146 145 147 bar(x,vecteurs,'LineStyle','none') 146 axis([0.5 20.5 0 25]); 148 axis([0.5 20.5 0 25]); 147 149 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 148 150 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 149 151 set (gca,'tickDir','out'); 150 152 151 152 153 154 155 153 print -depsc2 eof_ircaam_1030_ctl.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl_clim.m
r15 r16 1 % 1 2 clear; 2 3 load eof_1030_ircaam_ctl_clim.mat … … 15 16 lat=lat(29:43)'; 16 17 17 figure(1); orient('landscape'); 18 figure(1); 19 orient('landscape'); 18 20 subplot(3,2,1); 19 21 palette; … … 33 35 colorbar; 34 36 title('OLR EOF1','Fontsize',8); 35 hold on; cartemonde; 37 hold on; 38 cartemonde; 36 39 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 37 40 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 38 41 set (gca,'tickDir','out'); 39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%40 42 41 clear carte1 x y a b carte coco; 43 clear carte1 x y a b carte coco; 42 44 carte1=C(:,359); 43 45 carte=reshape(carte1,24,15); … … 64 66 65 67 title('OLR EOF2','Fontsize',8); 66 hold on; cartemonde; 68 hold on; 69 cartemonde; 67 70 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 68 71 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 69 72 set (gca,'tickDir','out'); 70 73 71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%72 74 clear carte1 x y a b carte coco; 73 75 carte1=C(:,358); … … 93 95 colorbar; 94 96 title('OLR EOF3','Fontsize',8); 95 hold on; cartemonde; 97 hold on; 98 cartemonde; 96 99 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 97 100 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 98 101 set (gca,'tickDir','out'); 99 102 100 101 102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%103 103 clear carte1 x y a b carte coco; 104 104 carte1=C(:,357); … … 124 124 colorbar; 125 125 title('OLR EOF4','Fontsize',8); 126 hold on; cartemonde; 126 hold on; 127 cartemonde; 127 128 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 128 129 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 129 130 set (gca,'tickDir','out'); 130 131 %%%%%%%%%%132 131 133 132 subplot(3,2,4); … … 144 143 145 144 bar(x,vecteurs,'LineStyle','none') 146 axis([0.5 20.5 0 25]); 145 axis([0.5 20.5 0 25]); 147 146 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 148 147 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 149 148 set (gca,'tickDir','out'); 150 149 151 152 153 154 155 150 print -depsc2 eof_ircaam_1030_ctl_clim.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_tr.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_1030_ircaam_tr.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 98 102 99 103 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 104 clear carte1 x y a b carte coco; 102 105 carte1=C(:,357); … … 122 125 colorbar; 123 126 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 127 hold on; 128 cartemonde; 125 129 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 130 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 131 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 132 131 133 subplot(3,2,4); … … 142 144 143 145 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 146 axis([0.5 20.5 0 25]); 145 147 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 148 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_30100_ircaam.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 96 100 set (gca,'tickDir','out'); 97 101 98 99 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 clear carte1 x y a b carte coco; 102 103 carte1=C(:,357); … … 122 123 colorbar; 123 124 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 125 hold on; 126 cartemonde; 125 127 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 128 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 129 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 130 131 131 subplot(3,2,4); … … 142 142 143 143 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 144 axis([0.5 20.5 0 25]); 145 145 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 146 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 147 147 set (gca,'tickDir','out'); 148 148 149 150 151 152 153 149 print -depsc2 resultats_eof_jjas_2006_30100.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_as.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_30100_ircaam_as.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 96 100 set (gca,'tickDir','out'); 97 101 98 99 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 clear carte1 x y a b carte coco; 102 103 carte1=C(:,357); … … 122 123 colorbar; 123 124 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 125 hold on; 126 cartemonde; 125 127 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 128 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 129 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 130 131 131 subplot(3,2,4); … … 142 142 143 143 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 144 axis([0.5 20.5 0 25]); 145 145 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 146 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 147 147 set (gca,'tickDir','out'); 148 148 149 150 149 print -depsc2 carte_eof_simuls_AS_30100.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_ctl.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_30100_ircaam_ctl.mat … … 15 17 lat=lat(29:43)'; 16 18 17 figure(1); orient('landscape'); 19 figure(1); 20 orient('landscape'); 18 21 subplot(3,2,1); 19 22 palette; … … 33 36 colorbar; 34 37 title('OLR EOF1','Fontsize',8); 35 hold on; cartemonde; 38 hold on; 39 cartemonde; 36 40 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 37 41 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 38 42 set (gca,'tickDir','out'); 39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%40 43 41 clear carte1 x y a b carte coco; 44 clear carte1 x y a b carte coco; 42 45 carte1=C(:,359); 43 46 carte=reshape(carte1,24,15); … … 64 67 65 68 title('OLR EOF2','Fontsize',8); 66 hold on; cartemonde; 69 hold on; 70 cartemonde; 67 71 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 68 72 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 69 73 set (gca,'tickDir','out'); 70 74 71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%72 75 clear carte1 x y a b carte coco; 73 76 carte1=C(:,358); … … 93 96 colorbar; 94 97 title('OLR EOF3','Fontsize',8); 95 hold on; cartemonde; 98 hold on; 99 cartemonde; 96 100 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 97 101 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 98 102 set (gca,'tickDir','out'); 99 103 100 101 102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%103 104 clear carte1 x y a b carte coco; 104 105 carte1=C(:,357); … … 124 125 colorbar; 125 126 title('OLR EOF4','Fontsize',8); 126 hold on; cartemonde; 127 hold on; 128 cartemonde; 127 129 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 128 130 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 129 131 set (gca,'tickDir','out'); 130 131 %%%%%%%%%%132 132 133 133 subplot(3,2,4); … … 144 144 145 145 bar(x,vecteurs,'LineStyle','none') 146 axis([0.5 20.5 0 25]); 146 axis([0.5 20.5 0 25]); 147 147 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 148 148 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 149 149 set (gca,'tickDir','out'); 150 150 151 152 153 154 155 151 print -depsc2 eof_ircaam_30100_ctl.eps; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_tr.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_30100_ircaam_tr.mat … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('OLR EOF1','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('OLR EOF2','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('OLR EOF3','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 96 100 set (gca,'tickDir','out'); 97 101 98 99 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 clear carte1 x y a b carte coco; 102 103 carte1=C(:,357); … … 122 123 colorbar; 123 124 title('OLR EOF4','Fontsize',8); 124 hold on; cartemonde; 125 hold on; 126 cartemonde; 125 127 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 128 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 129 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 130 131 131 subplot(3,2,4); … … 142 142 143 143 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 144 axis([0.5 20.5 0 25]); 145 145 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 146 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); … … 148 148 149 149 print -depsc2 carte_eof_simuls_TR_30100.eps; 150 151 152 -
trunk/src/SIMULS_IRCAAM/carte_eof_noaa_1_8.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_noaa_annuel_1_8.mat; … … 11 13 lat=[-10:2.5:30]; 12 14 13 figure(1); orient('landscape'); 15 figure(1); 16 orient('landscape'); 14 17 subplot(3,2,1); 15 18 palette; … … 30 33 colorbar; 31 34 title('OLR EOF1','Fontsize',8); 32 hold on; cartemonde; 35 hold on; 36 cartemonde; 33 37 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 34 38 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 35 39 set (gca,'tickDir','out'); 36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%37 40 38 clear carte1 x y a b carte coco; 41 clear carte1 x y a b carte coco; 39 42 carte1=C(:,424); 40 43 carte=reshape(carte1,25,17); … … 42 45 43 46 clear carte1; 44 lon=[-30:2.5:30]'; 47 lon=[-30:2.5:30]'; 45 48 lat=[-10:2.5:30]; 46 49 … … 60 63 61 64 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 62 colorbar; 65 colorbar; 63 66 axis([-30 30 -10 30]); 64 67 title('OLR EOF2','Fontsize',8); 65 hold on; cartemonde; 68 hold on; 69 cartemonde; 66 70 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 67 71 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 68 72 set (gca,'tickDir','out'); 69 73 70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%71 74 clear carte1 x y a b carte coco; 72 75 carte1=C(:,423); … … 76 79 77 80 % defintion des lat et lon 78 lon=[-30:2.5:30]'; 81 lon=[-30:2.5:30]'; 79 82 lat=[-10:2.5:30]; 80 83 … … 98 101 colorbar; 99 102 title('OLR EOF3','Fontsize',8); 100 hold on; cartemonde; 103 hold on; 104 cartemonde; 101 105 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 102 106 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 103 107 set (gca,'tickDir','out'); 104 105 %%%%%%%%%%%%%%%%%%%%%%%%106 108 107 109 clear carte1 x y a b carte coco; … … 112 114 113 115 % defintion des lat et lon 114 lon=[-30:2.5:30]'; 116 lon=[-30:2.5:30]'; 115 117 lat=[-10:2.5:30]; 116 118 … … 133 135 colorbar; 134 136 title('OLR EOF4','Fontsize',8); 135 hold on; cartemonde; 137 hold on; 138 cartemonde; 136 139 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 137 140 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 156 159 bar(x,vecteurs,'LineStyle','none') 157 160 158 axis([0.5 20.5 0 50]); 161 axis([0.5 20.5 0 50]); 159 162 set (gca,'YTick',[0:10:50],'YTickLabel',[0:10:50],'fontname','Arial','fontsize',6); 160 163 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_noaa_8_28.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_noaa_annuel_8_28.mat; … … 11 13 lat=[-10:2.5:30]; 12 14 13 figure(1); orient('landscape'); 15 figure(1); 16 orient('landscape'); 14 17 subplot(3,2,1); 15 18 palette; … … 30 33 colorbar; 31 34 title('OLR EOF1','Fontsize',8); 32 hold on; cartemonde; 35 hold on; 36 cartemonde; 33 37 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 34 38 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 35 39 set (gca,'tickDir','out'); 36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%37 40 38 clear carte1 x y a b carte coco; 41 clear carte1 x y a b carte coco; 39 42 carte1=C(:,424); 40 43 carte=reshape(carte1,25,17); … … 60 63 61 64 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 62 colorbar; 65 colorbar; 63 66 axis([-30 30 -10 30]); 64 67 title('OLR EOF2','Fontsize',8); 65 hold on; cartemonde; 68 hold on; 69 cartemonde; 66 70 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 67 71 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 68 72 set (gca,'tickDir','out'); 69 73 70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%71 74 clear carte1 x y a b carte coco; 72 75 carte1=C(:,423); … … 76 79 77 80 % defintion des lat et lon 78 lon=[-30:2.5:30]'; 81 lon=[-30:2.5:30]'; 79 82 lat=[-10:2.5:30]; 80 83 … … 98 101 colorbar; 99 102 title('OLR EOF3','Fontsize',8); 100 hold on; cartemonde; 103 hold on; 104 cartemonde; 101 105 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 102 106 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 103 107 set (gca,'tickDir','out'); 104 105 %%%%%%%%%%%%%%%%%%%%%%%%106 108 107 109 clear carte1 x y a b carte coco; … … 112 114 113 115 % defintion des lat et lon 114 lon=[-30:2.5:30]'; 116 lon=[-30:2.5:30]'; 115 117 lat=[-10:2.5:30]; 116 118 … … 133 135 colorbar; 134 136 title('OLR EOF4','Fontsize',8); 135 hold on; cartemonde; 137 hold on; 138 cartemonde; 136 139 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 137 140 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 156 159 bar(x,vecteurs,'LineStyle','none') 157 160 158 axis([0.5 20.5 0 70]); 161 axis([0.5 20.5 0 70]); 159 162 set (gca,'YTick',[0:10:50],'YTickLabel',[0:10:50],'fontname','Arial','fontsize',6); 160 163 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_olr_noaa_jas.m
r15 r16 1 % 2 1 3 clear; 2 4 cd('/usr/temp/seglod/mode_sahelien/') … … 13 15 lat=[-10:2.5:30]; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 32 35 colorbar; 33 36 title('OLR EOF1','Fontsize',8); 34 hold on; cartemonde; 37 hold on; 38 cartemonde; 35 39 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 36 40 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 37 41 set (gca,'tickDir','out'); 38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%39 42 40 clear carte1 x y a b carte coco; 43 clear carte1 x y a b carte coco; 41 44 carte1=C(:,424); 42 45 carte=reshape(carte1,25,17); … … 62 65 63 66 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 64 colorbar; 67 colorbar; 65 68 66 69 title('OLR EOF2','Fontsize',8); 67 hold on; cartemonde; 70 hold on; 71 cartemonde; 68 72 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 69 73 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 70 74 set (gca,'tickDir','out'); 71 75 72 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%73 76 clear carte1 x y a b carte coco; 74 77 carte1=C(:,423); … … 78 81 79 82 % defintion des lat et lon 80 lon=[-30:2.5:30]'; 83 lon=[-30:2.5:30]'; 81 84 lat=[-10:2.5:30]; 82 85 … … 99 102 colorbar; 100 103 title('OLR EOF3','Fontsize',8); 101 hold on; cartemonde; 104 hold on; 105 cartemonde; 102 106 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 103 107 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 104 108 set (gca,'tickDir','out'); 105 106 %%%%%%%%%%%%%%%%%%%%%%%%107 109 108 110 clear carte1 x y a b carte coco; … … 113 115 114 116 % defintion des lat et lon 115 lon=[-30:2.5:30]'; 117 lon=[-30:2.5:30]'; 116 118 lat=[-10:2.5:30]; 117 119 … … 134 136 colorbar; 135 137 title('OLR EOF4','Fontsize',8); 136 hold on; cartemonde; 138 hold on; 139 cartemonde; 137 140 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 138 141 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 142 145 143 146 144 %********************145 147 subplot(3,2,4); 146 148 vaude=0; … … 156 158 157 159 bar(x,vecteurs,'LineStyle','none') 158 axis([0.5 20.5 0 50]); 160 axis([0.5 20.5 0 50]); 159 161 set (gca,'YTick',[0:10:50],'YTickLabel',[0:10:50],'fontname','Arial','fontsize',6); 160 162 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_olr_noaa_jas_20.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_olr_noaa_annuel_jas_1020.mat; … … 11 13 lat=[-10:2.5:20]; 12 14 13 figure(1); orient('landscape'); 15 figure(1); 16 orient('landscape'); 14 17 subplot(3,2,1); 15 18 palette; … … 30 33 colorbar; 31 34 title('OLR EOF1','Fontsize',8); 32 hold on; cartemonde; 35 hold on; 36 cartemonde; 33 37 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 34 38 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 35 39 set (gca,'tickDir','out'); 36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%37 40 38 clear carte1 x y a b carte coco; 41 clear carte1 x y a b carte coco; 39 42 carte1=C(:,324); 40 43 carte=reshape(carte1,25,13); … … 42 45 43 46 clear carte1; 44 lon=[-30:2.5:30]'; 47 lon=[-30:2.5:30]'; 45 48 lat=[-10:2.5:20]; 46 49 … … 60 63 61 64 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 62 colorbar; 65 colorbar; 63 66 axis([-30 30 -10 30]); 64 67 title('OLR EOF2','Fontsize',8); 65 hold on; cartemonde; 68 hold on; 69 cartemonde; 66 70 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 67 71 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 68 72 set (gca,'tickDir','out'); 69 73 70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%71 74 clear carte1 x y a b carte coco; 72 75 carte1=C(:,323); … … 76 79 77 80 % defintion des lat et lon 78 lon=[-30:2.5:30]'; 81 lon=[-30:2.5:30]'; 79 82 lat=[-10:2.5:20]; 80 83 … … 98 101 colorbar; 99 102 title('OLR EOF3','Fontsize',8); 100 hold on; cartemonde; 103 hold on; 104 cartemonde; 101 105 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 102 106 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 103 107 set (gca,'tickDir','out'); 104 105 %%%%%%%%%%%%%%%%%%%%%%%%106 108 107 109 clear carte1 x y a b carte coco; … … 112 114 113 115 % defintion des lat et lon 114 lon=[-30:2.5:30]'; 116 lon=[-30:2.5:30]'; 115 117 lat=[-10:2.5:20]; 116 118 … … 133 135 colorbar; 134 136 title('OLR EOF4','Fontsize',8); 135 hold on; cartemonde; 137 hold on; 138 cartemonde; 136 139 set (gca,'YTick',[-10:10:20],'YTickLabel',['10S';' 0';'10N';'20N'],'fontname','Arial','fontsize',6); 137 140 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); … … 156 159 bar(x,vecteurs,'LineStyle','none') 157 160 158 axis([0.5 20.5 0 50]); 161 axis([0.5 20.5 0 50]); 159 162 set (gca,'YTick',[0:10:50],'YTickLabel',[0:10:50],'fontname','Arial','fontsize',6); 160 163 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); -
trunk/src/SIMULS_IRCAAM/carte_eof_pluie_AFR_annuel.m
r15 r16 1 % 2 1 3 clear; 2 4 load eof_pluie_annuel_AFR.mat; … … 13 15 lat=lat(29:43)'; 14 16 15 figure(1); orient('landscape'); 17 figure(1); 18 orient('landscape'); 16 19 subplot(3,2,1); 17 20 palette; … … 31 34 colorbar; 32 35 title('EOF1 OLR AFR annuel','Fontsize',8); 33 hold on; cartemonde; 36 hold on; 37 cartemonde; 34 38 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 35 39 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 36 40 set (gca,'tickDir','out'); 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 41 39 clear carte1 x y a b carte coco; 42 clear carte1 x y a b carte coco; 40 43 carte1=C(:,359); 41 44 carte=reshape(carte1,24,15); … … 62 65 63 66 title('EOF2 OLR AFR annuel','Fontsize',8); 64 hold on; cartemonde; 67 hold on; 68 cartemonde; 65 69 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 66 70 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 67 71 set (gca,'tickDir','out'); 68 72 69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%70 73 clear carte1 x y a b carte coco; 71 74 carte1=C(:,358); … … 91 94 colorbar; 92 95 title('EOF3 OLR AFR annuel','Fontsize',8); 93 hold on; cartemonde; 96 hold on; 97 cartemonde; 94 98 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 95 99 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 96 100 set (gca,'tickDir','out'); 97 101 98 99 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 clear carte1 x y a b carte coco; 102 103 carte1=C(:,357); … … 122 123 colorbar; 123 124 title('EOF4 OLR AFR annuel','Fontsize',8); 124 hold on; cartemonde; 125 hold on; 126 cartemonde; 125 127 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 126 128 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 127 129 set (gca,'tickDir','out'); 128 129 %%%%%%%%%%130 130 131 131 subplot(3,2,4); … … 142 142 143 143 bar(x,vecteurs,'LineStyle','none') 144 axis([0.5 20.5 0 25]); 144 axis([0.5 20.5 0 25]); 145 145 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); 146 146 set (gca,'XTick',[2:2:20],'XTickLabel',[2:2:20],'fontname','Arial','fontsize',6); 147 147 set (gca,'tickDir','out'); 148 148 149 150 151 152 153 149 print -depsc2 resultats_eof_AFR_annuel.eps; -
trunk/src/SIMULS_IRCAAM/climato_olr_AFR.m
r15 r16 1 % 2 1 3 close all; 2 4 clear; 3 5 4 6 olr=zeros(122,29,64,128); 5 6 7 7 8 ncload('rlut_d.AfNQIVIV.197106-09.nc','rlut'); … … 97 98 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 98 99 clear olr 99 olr=olr1; clear olr1; 100 olr=olr1; 101 clear olr1; 100 102 olr=olr(:,:,29:43,54:77); 101 olr1(:,:,:)=mean(olr); clear olr; 102 olr2(:,:)=mean(olr1); clear olr1; 103 olr1(:,:,:)=mean(olr); 104 clear olr; 105 olr2(:,:)=mean(olr1); 106 clear olr1; 103 107 104 108 ncload('rlut_d.AfNQIVIV.199606-09.nc','lat','lon') … … 106 110 lon=lon(54:77); 107 111 lat=lat(29:43)'; 108 figure(1); orient('landscape'); subplot(3,2,1); 112 figure(1); 113 orient('landscape'); 114 subplot(3,2,1); 109 115 palette; 110 116 olr2(1,1)=149.999; … … 114 120 colorbar; 115 121 title('OLR mean JJAS AFR nudging','Fontsize',8); 116 hold on; cartemonde; 122 hold on; 123 cartemonde; 117 124 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 118 125 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 119 126 set (gca,'tickDir','out'); 120 axis equal; axis([-30 30 -10 30]); 127 axis equal; 128 axis([-30 30 -10 30]); 121 129 climato_olr_CTL; 122 130 title('OLR mean JJAS no nudging','Fontsize',8); 123 axis equal; axis([-30 30 -10 30]); 131 axis equal; 132 axis([-30 30 -10 30]); 124 133 climato_olr_noaa; 125 134 title('OLR mean JJAS NOAA','Fontsize',8); 126 axis equal; axis([-30 30 -10 30]); 135 axis equal; 136 axis([-30 30 -10 30]); 127 137 128 138 print -depsc2 planel_climato_olr.eps -
trunk/src/SIMULS_IRCAAM/climato_olr_CTL.m
r15 r16 1 % 1 2 2 3 clear; … … 98 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 99 100 clear olr 100 olr=olr1; clear olr1; 101 olr=olr1; 102 clear olr1; 101 103 olr=olr(:,:,29:43,54:77); 102 olr1(:,:,:)=mean(olr); clear olr; 103 olr2(:,:)=mean(olr1); clear olr1; 104 olr1(:,:,:)=mean(olr); 105 clear olr; 106 olr2(:,:)=mean(olr1); 107 clear olr1; 104 108 105 109 ncload('rlut_d.AfNQIVIV.199606-09.nc','lat','lon') … … 114 118 colorbar; 115 119 116 hold on; cartemonde; 120 hold on; 121 cartemonde; 117 122 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 118 123 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 119 124 set (gca,'tickDir','out'); 120 -
trunk/src/SIMULS_IRCAAM/climato_olr_noaa.m
r15 r16 1 % 1 2 2 3 % initialisation 3 clear; 4 clear; 4 5 5 6 cd('..'); … … 26 27 olr1=zeros(siz,25,144); 27 28 olr1(:,:,1:72)=olr(:,:,73:144); 28 olr1(:,:,73:144)=olr(:,:,1:72); clear olr; 29 olr1(:,:,73:144)=olr(:,:,1:72); 30 clear olr; 29 31 30 32 % on permture le temps et l'espce … … 33 35 olr1=permute(olr1, [2 3 1]); 34 36 35 36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%37 37 % on met sous la forme longitude latitude jour 38 39 38 40 39 % on selectionne les mois d ete (attention aux annees bixestiles!) … … 137 136 olr=permute(olr,[3 4 1 2]); 138 137 clear olr1 139 olr1(:,:,:)=mean(olr); clear olr; 140 olr2(:,:)=mean(olr1); clear olr1; 138 olr1(:,:,:)=mean(olr); 139 clear olr; 140 olr2(:,:)=mean(olr1); 141 clear olr1; 141 142 cd('..'); 142 143 ncload('olr.day.mean.nc','lon','lat'); … … 151 152 olr2(1,2)=350.001; 152 153 153 154 154 contourf(lon,lat,olr2,[150:10:350],'LineStyle','none'); 155 155 colorbar; 156 hold on; cartemonde; 156 hold on; 157 cartemonde; 157 158 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 158 159 set (gca,'XTick',[-30:10:30],'XTickLabel',['30W';'20W';'10W';' 0';'10E';'20E';'30E'],'fontname','Arial','fontsize',6); 159 160 set (gca,'tickDir','out'); 160 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_AFR_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_afr.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:28; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 36 40 load eof1_AFR_1030.txt 37 41 38 42 % on met sous la forme annee mois 39 hgt500_eof=reshape(eof1_AFR_1030,122,29); clear eof1_AFR_1030; 43 hgt500_eof=reshape(eof1_AFR_1030,122,29); 44 clear eof1_AFR_1030; 40 45 41 46 % on calcule l ecart type sur la serie temporelle de l HGT500 42 k=122*29; 47 k=122*29; 43 48 hgt500bis=reshape(hgt500_eof,k,1); 44 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 45 50 46 51 % intialisation des tableaux 47 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 48 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 49 54 50 compteurmax=0; 55 compteurmax=0; 51 56 compteurmin=0; 52 57 53 for a=1:29; % boucle sur les annees 54 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 55 61 delta=zeros(122,1); 56 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 57 64 if b>1; 58 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 59 66 end; 60 67 end; 61 for b=1:122; % boucle sur les jours 62 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 63 % cas 1 : max deltas apres negetifs et deltas avant postifs 64 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 65 74 compteurmax=compteurmax+1; 66 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 97 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 98 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 99 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 100 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(hgt500bis)); 101 110 compteurmin=compteurmin+1; … … 136 145 end; 137 146 end; 138 end; 147 end; 139 148 end; 140 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 143 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 144 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 145 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 146 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 147 148 x=[-10:1:10]'; %' 149 150 figure(1); orient('landscape'); 151 152 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 153 165 lon=lon-180; 154 166 for e=1:7; … … 176 188 delta_hgt500_filtre_min(1,2)=100.0001; 177 189 fin=-30+24*2.5; 178 190 179 191 clear fin 180 192 fin=-10+16*2.5; … … 184 196 else 185 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 186 end 198 end 187 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 188 200 if e==4; 189 co=colorbar; 201 co=colorbar; 190 202 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 191 203 end; 192 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 193 206 set (gca,'tickDir','out'); 194 207 axis equal 195 208 axis([-180 180 20 80]); 196 if e==7; 197 title('HGT500 composite EOF1 1030j simulation AFR ','fontsize',8) ;209 if e==7; 210 title('HGT500 composite EOF1 1030j simulation AFR ','fontsize',8) ; 198 211 end 199 212 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 200 213 pos_vert=e/10; 201 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 202 215 end; 203 216 print -depsc2 composite_hgt500_afr_eof1_1030a.eps 204 217 205 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 206 220 207 221 for e=1:7; … … 229 243 delta_hgt500_filtre_min(1,2)=100.0001; 230 244 fin=-30+24*2.5; 231 245 232 246 clear fin 233 247 fin=-10+16*2.5; … … 237 251 else 238 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 239 end 253 end 240 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 241 255 if e==4; 242 co=colorbar; 256 co=colorbar; 243 257 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 244 258 end; 245 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 246 261 set (gca,'tickDir','out'); 247 262 axis equal … … 252 267 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 253 268 pos_vert=e/10; 254 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 255 270 end; 256 271 print -depsc2 composite_hgt500_afr_eof1_1030b.eps 257 258 259 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_AFR_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_afr.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:28; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 36 40 load eof1_AFR_30100.txt 37 41 38 42 % on met sous la forme annee mois 39 hgt500_eof=reshape(eof1_AFR_30100,122,29); clear eof1_AFR_30100; 43 hgt500_eof=reshape(eof1_AFR_30100,122,29); 44 clear eof1_AFR_30100; 40 45 41 46 % on calcule l ecart type sur la serie temporelle de l HGT500 42 k=122*29; 47 k=122*29; 43 48 hgt500bis=reshape(hgt500_eof,k,1); 44 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 45 50 46 51 % intialisation des tableaux 47 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 48 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 49 54 50 compteurmax=0; 55 compteurmax=0; 51 56 compteurmin=0; 52 57 53 for a=1:29; % boucle sur les annees 54 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 55 61 delta=zeros(122,1); 56 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 57 64 if b>1; 58 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 59 66 end; 60 67 end; 61 for b=1:122; % boucle sur les jours 62 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 63 % cas 1 : max deltas apres negetifs et deltas avant postifs 64 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 65 74 compteurmax=compteurmax+1; 66 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 97 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 98 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 99 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 100 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(hgt500bis)); 101 110 compteurmin=compteurmin+1; … … 136 145 end; 137 146 end; 138 end; 147 end; 139 148 end; 140 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 143 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 144 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 145 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 146 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 147 148 x=[-10:1:10]'; %' 149 150 figure(1); orient('landscape'); 151 152 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 153 165 lon=lon-180; 154 166 for e=1:7; … … 176 188 delta_hgt500_filtre_min(1,2)=100.0001; 177 189 fin=-30+24*2.5; 178 190 179 191 clear fin 180 192 fin=-10+16*2.5; … … 184 196 else 185 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 186 end 198 end 187 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 188 200 if e==4; 189 co=colorbar; 201 co=colorbar; 190 202 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 191 203 end; 192 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 193 206 set (gca,'tickDir','out'); 194 207 axis equal 195 208 axis([-180 180 20 80]); 196 if e==7; 197 title('HGT500 composite EOF1 30100j simulation AFR ','fontsize',8) ;209 if e==7; 210 title('HGT500 composite EOF1 30100j simulation AFR ','fontsize',8) ; 198 211 end 199 212 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 200 213 pos_vert=e/10; 201 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 202 215 end; 203 216 print -depsc2 composite_hgt500_afr_eof1_30100a.eps 204 217 205 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 206 220 207 221 for e=1:7; … … 229 243 delta_hgt500_filtre_min(1,2)=100.0001; 230 244 fin=-30+24*2.5; 231 245 232 246 clear fin 233 247 fin=-10+16*2.5; … … 237 251 else 238 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 239 end 253 end 240 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 241 255 if e==4; 242 co=colorbar; 256 co=colorbar; 243 257 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 244 258 end; 245 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 246 261 set (gca,'tickDir','out'); 247 262 axis equal … … 252 267 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 253 268 pos_vert=e/10; 254 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 255 270 end; 256 271 print -depsc2 composite_hgt500_afr_eof1_30100b.eps 257 258 259 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_AFR_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_afr.mat; … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b; 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:28; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 36 40 load eof2_AFR_1030.txt 37 41 38 42 % on met sous la forme annee mois 39 hgt500_eof=reshape(eof2_AFR_1030,122,29); clear eof2_AFR_1030; 43 hgt500_eof=reshape(eof2_AFR_1030,122,29); 44 clear eof2_AFR_1030; 40 45 41 46 % on calcule l ecart type sur la serie temporelle de l HGT500 42 k=122*29; 47 k=122*29; 43 48 hgt500bis=reshape(hgt500_eof,k,1); 44 hgt500bis=1.25*std(hgt500bis); 49 hgt500bis=1.25*std(hgt500bis); 45 50 46 51 % intialisation des tableaux 47 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 48 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 49 54 50 compteurmax=0; 55 compteurmax=0; 51 56 compteurmin=0; 52 57 53 for a=1:29; % boucle sur les annees 54 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 55 61 delta=zeros(122,1); 56 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 57 64 if b>1; 58 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 59 66 end; 60 67 end; 61 for b=1:122; % boucle sur les jours 62 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 63 % cas 1 : max deltas apres negetifs et deltas avant postifs 64 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 65 74 compteurmax=compteurmax+1; 66 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 97 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 98 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 99 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 100 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(-hgt500bis)); 101 110 compteurmin=compteurmin+1; … … 136 145 end; 137 146 end; 138 end; 147 end; 139 148 end; 140 149 … … 158 167 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 159 168 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 160 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 161 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 162 163 x=[-10:1:10]'; %' 164 165 figure(1); orient('landscape'); 166 167 lat=lat'; 169 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 170 clear hgt500_filtre_compomin; 171 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 172 clear hgt500_filtre_compomax; 173 174 x=[-10:1:10]'; 175 176 figure(1); 177 orient('landscape'); 178 179 lat=lat'; 168 180 lon=lon-180; 169 181 for e=1:7; … … 196 208 delta_hgt500_filtre_min(1,2)=50.0001; 197 209 fin=-30+24*2.5; 198 210 199 211 clear fin 200 212 fin=-10+16*2.5; … … 204 216 else 205 217 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 206 end 218 end 207 219 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 208 220 if e==4; 209 co=colorbar; 221 co=colorbar; 210 222 set(co,'ytick',[-50:5:50],'yticklabel',[-50:5:50],'fontname','Arial','fontsize',5); 211 223 end; 212 hold on; cartemonde1; 224 hold on; 225 cartemonde1; 213 226 set (gca,'tickDir','out'); 214 227 axis equal 215 228 axis([-180 180 20 80]); 216 if e==7; 217 title('HGT500 composite EOF2 1030j simulation AFR ','fontsize',8) ;229 if e==7; 230 title('HGT500 composite EOF2 1030j simulation AFR ','fontsize',8) ; 218 231 end 219 232 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 220 233 pos_vert=e/10; 221 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 234 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 222 235 end; 223 236 print -depsc2 composite_hgt500_afr_eof2_1030a.eps 224 237 225 figure(2); orient('landscape'); 238 figure(2); 239 orient('landscape'); 226 240 227 241 for e=1:7; … … 254 268 delta_hgt500_filtre_min(1,2)=50.0001; 255 269 fin=-30+24*2.5; 256 270 257 271 clear fin 258 272 fin=-10+16*2.5; … … 262 276 else 263 277 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 264 end 278 end 265 279 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 266 280 if e==4; 267 co=colorbar; 281 co=colorbar; 268 282 set(co,'ytick',[-40:20:40],'yticklabel',[-40:20:40],'fontname','Arial','fontsize',5); 269 283 end; 270 hold on; cartemonde1; 284 hold on; 285 cartemonde1; 271 286 set (gca,'tickDir','out'); 272 287 axis equal … … 277 292 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 278 293 pos_vert=e/10; 279 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 294 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 280 295 end; 281 296 print -depsc2 composite_hgt500_afr_eof2_1030b.eps 282 283 284 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_AFR_eof2_1030_min.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_afr.mat; … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b; 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:29; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 36 40 load eof2_AFR_1030.txt 37 41 38 42 % on met sous la forme annee mois 39 hgt500_eof=reshape(eof2_AFR_1030,122,29); clear eof2_AFR_1030; 43 hgt500_eof=reshape(eof2_AFR_1030,122,29); 44 clear eof2_AFR_1030; 40 45 41 46 % on calcule l ecart type sur la serie temporelle de l HGT500 42 k=122*29; 47 k=122*29; 43 48 hgt500bis=reshape(hgt500_eof,k,1); 44 hgt500bis=1.25*std(hgt500bis); 49 hgt500bis=1.25*std(hgt500bis); 45 50 46 51 % intialisation des tableaux 47 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 48 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 49 54 50 compteurmax=0; 55 compteurmax=0; 51 56 compteurmin=0; 52 57 53 for a=1:29; % boucle sur les annees 54 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 55 61 delta=zeros(122,1); 56 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 57 64 if b>1; 58 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 59 66 end; 60 67 end; 61 for b=1:122; % boucle sur les jours 62 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 63 % cas 1 : max deltas apres negetifs et deltas avant postifs 64 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 65 74 compteurmax=compteurmax+1; 66 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 97 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 98 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 99 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 100 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(-hgt500bis)); 101 110 compteurmin=compteurmin+1; … … 136 145 end; 137 146 end; 138 end; 147 end; 139 148 end; 140 149 siz=122*29; … … 162 171 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 163 172 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 164 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 165 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 166 167 x=[-10:1:10]'; %' 168 169 figure(1); orient('landscape'); 170 171 lat=lat'; 173 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 174 clear hgt500_filtre_compomin; 175 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 176 clear hgt500_filtre_compomax; 177 178 x=[-10:1:10]'; 179 180 figure(1); 181 orient('landscape'); 182 183 lat=lat'; 172 184 lon=lon-180; 173 185 for e=1:7; … … 202 214 delta_hgt500_filtre_min(1,2)=50.0001; 203 215 fin=-30+24*2.5; 204 216 205 217 clear fin 206 218 fin=-10+16*2.5; … … 210 222 else 211 223 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 212 end 224 end 213 225 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 214 226 if e==4; 215 co=colorbar; 227 co=colorbar; 216 228 set(co,'ytick',[-50:5:50],'yticklabel',[-50:5:50],'fontname','Arial','fontsize',5); 217 229 end; 218 hold on; cartemonde1; 230 hold on; 231 cartemonde1; 219 232 set (gca,'tickDir','out'); 220 233 axis equal 221 234 axis([-180 180 20 80]); 222 if e==7; 223 title('HGT500 composite EOF2 1030j simulation AFR ','fontsize',8) ;235 if e==7; 236 title('HGT500 composite EOF2 1030j simulation AFR ','fontsize',8) ; 224 237 end 225 238 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 226 239 pos_vert=e/10; 227 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 240 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 228 241 end; 229 242 print -depsc2 composite_hgt500_afr_eof2_1030a.eps 230 243 231 figure(2); orient('landscape'); 244 figure(2); 245 orient('landscape'); 232 246 233 247 for e=1:7; … … 262 276 delta_hgt500_filtre_min(1,2)=50.0001; 263 277 fin=-30+24*2.5; 264 278 265 279 clear fin 266 280 fin=-10+16*2.5; … … 270 284 else 271 285 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 272 end 286 end 273 287 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 274 288 if e==4; 275 co=colorbar; 289 co=colorbar; 276 290 set(co,'ytick',[-40:20:40],'yticklabel',[-40:20:40],'fontname','Arial','fontsize',5); 277 291 end; 278 hold on; cartemonde1; 292 hold on; 293 cartemonde1; 279 294 set (gca,'tickDir','out'); 280 295 axis equal … … 285 300 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 286 301 pos_vert=e/10; 287 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 302 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 288 303 end; 289 304 print -depsc2 composite_hgt500_afr_eof2_1030b.eps 290 291 292 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_AFR_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_afr.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:28; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 36 40 load eof2_AFR_30100.txt 37 41 38 42 % on met sous la forme annee mois 39 hgt500_eof=reshape(eof2_AFR_30100,122,29); clear eof2_AFR_30100; 43 hgt500_eof=reshape(eof2_AFR_30100,122,29); 44 clear eof2_AFR_30100; 40 45 41 46 % on calcule l ecart type sur la serie temporelle de l HGT500 42 k=122*29; 47 k=122*29; 43 48 hgt500bis=reshape(hgt500_eof,k,1); 44 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 45 50 46 51 % intialisation des tableaux 47 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 48 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 49 54 50 compteurmax=0; 55 compteurmax=0; 51 56 compteurmin=0; 52 57 53 for a=1:29; % boucle sur les annees 54 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 55 61 delta=zeros(122,1); 56 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 57 64 if b>1; 58 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 59 66 end; 60 67 end; 61 for b=1:122; % boucle sur les jours 62 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 63 % cas 1 : max deltas apres negetifs et deltas avant postifs 64 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 65 74 compteurmax=compteurmax+1; 66 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 97 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 98 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 99 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 100 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(hgt500bis)); 101 110 compteurmin=compteurmin+1; … … 136 145 end; 137 146 end; 138 end; 147 end; 139 148 end; 140 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 143 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 144 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 145 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 146 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 147 148 x=[-10:1:10]'; %' 149 150 figure(1); orient('landscape'); 151 152 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 153 165 lon=lon-180; 154 166 for e=1:7; … … 176 188 delta_hgt500_filtre_min(1,2)=100.0001; 177 189 fin=-30+24*2.5; 178 190 179 191 clear fin 180 192 fin=-10+16*2.5; … … 184 196 else 185 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 186 end 198 end 187 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 188 200 if e==4; 189 co=colorbar; 201 co=colorbar; 190 202 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 191 203 end; 192 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 193 206 set (gca,'tickDir','out'); 194 207 axis equal 195 208 axis([-180 180 20 80]); 196 if e==7; 209 if e==7; 197 210 title('HGT500 composite EOF2 30100j simulation AFR ','fontsize',8) ; 198 211 end 199 212 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 200 213 pos_vert=e/10; 201 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 202 215 end; 203 216 print -depsc2 composite_hgt500_afr_eof2_30100a.eps 204 217 205 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 206 220 207 221 for e=1:7; … … 229 243 delta_hgt500_filtre_min(1,2)=100.0001; 230 244 fin=-30+24*2.5; 231 245 232 246 clear fin 233 247 fin=-10+16*2.5; … … 237 251 else 238 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 239 end 253 end 240 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 241 255 if e==4; 242 co=colorbar; 256 co=colorbar; 243 257 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 244 258 end; 245 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 246 261 set (gca,'tickDir','out'); 247 262 axis equal … … 252 267 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 253 268 pos_vert=e/10; 254 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 255 270 end; 256 271 print -depsc2 composite_hgt500_afr_eof2_30100b.eps 257 258 259 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_TROP_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_trop.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 15 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 16 20 17 21 % on desaisonalise 18 22 hgt1=permute(hgt500,[2 1 3 4]); 19 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 20 25 hgt3=reshape(hgt500, 3538,64,128); 21 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 22 28 23 29 for a=1:122; 24 30 for b=1:28; 25 31 for c=1:37; 26 for d=1:128; 27 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 28 34 end; 29 35 end; … … 32 38 clear hgt2 hgt4; 33 39 34 35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%36 37 40 load eof1_TR_1030.txt 38 41 39 42 % on met sous la forme annee mois 40 hgt500_eof=reshape(eof1_TR_1030,122,29); clear eof1_TR_1030; 43 hgt500_eof=reshape(eof1_TR_1030,122,29); 44 clear eof1_TR_1030; 41 45 42 46 % on calcule l ecart type sur la serie temporelle de l HGT500 43 k=122*29; 47 k=122*29; 44 48 hgt500bis=reshape(hgt500_eof,k,1); 45 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 46 50 47 51 % intialisation des tableaux 48 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 49 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 50 54 51 compteurmax=0; 55 compteurmax=0; 52 56 compteurmin=0; 53 57 54 for a=1:29; % boucle sur les annees 55 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 56 61 delta=zeros(122,1); 57 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 58 64 if b>1; 59 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 60 66 end; 61 67 end; 62 for b=1:122; % boucle sur les jours 63 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 64 % cas 1 : max deltas apres negetifs et deltas avant postifs 65 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 66 74 compteurmax=compteurmax+1; 67 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 98 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 99 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 100 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 101 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(hgt500bis)); 102 110 compteurmin=compteurmin+1; … … 137 145 end; 138 146 end; 139 end; 147 end; 140 148 end; 141 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 144 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 145 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 146 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 147 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 148 149 x=[-10:1:10]'; %' 150 151 figure(1); orient('landscape'); 152 153 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 154 165 lon=lon-180; 155 166 for e=1:7; … … 177 188 delta_hgt500_filtre_min(1,2)=50.0001; 178 189 fin=-30+24*2.5; 179 190 180 191 clear fin 181 192 fin=-10+16*2.5; … … 185 196 else 186 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 187 end 198 end 188 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 189 200 if e==4; 190 co=colorbar; 201 co=colorbar; 191 202 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 192 203 end; 193 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 194 206 set (gca,'tickDir','out'); 195 207 axis equal 196 208 axis([-180 180 20 80]); 197 if e==7; 209 if e==7; 198 210 title('HGT500 composite EOF1 1030j simulation TROP ','fontsize',8) ; 199 211 end 200 212 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 201 213 pos_vert=e/10; 202 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 203 215 end; 204 216 print -depsc2 composite_hgt500_trop_eof1_1030a.eps 205 217 206 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 207 220 208 221 for e=1:7; … … 230 243 delta_hgt500_filtre_min(1,2)=50.0001; 231 244 fin=-30+24*2.5; 232 245 233 246 clear fin 234 247 fin=-10+16*2.5; … … 238 251 else 239 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 240 end 253 end 241 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 242 255 if e==4; 243 co=colorbar; 256 co=colorbar; 244 257 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 245 258 end; 246 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 247 261 set (gca,'tickDir','out'); 248 262 axis equal … … 253 267 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 254 268 pos_vert=e/10; 255 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 256 270 end; 257 271 print -depsc2 composite_hgt500_trop_eof1_1030b.eps 258 259 260 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_TROP_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_trop.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 15 20 16 21 % on desaisonalise 17 22 hgt1=permute(hgt500,[2 1 3 4]); 18 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 19 25 hgt3=reshape(hgt500, 3538,64,128); 20 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 21 28 22 29 for a=1:122; 23 30 for b=1:28; 24 31 for c=1:37; 25 for d=1:128; 26 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 27 34 end; 28 35 end; … … 31 38 clear hgt2 hgt4; 32 39 33 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%34 35 40 load eof1_TR_30100.txt 36 41 37 42 % on met sous la forme annee mois 38 hgt500_eof=reshape(eof1_TR_30100,122,29); clear eof1_TR_30100; 43 hgt500_eof=reshape(eof1_TR_30100,122,29); 44 clear eof1_TR_30100; 39 45 40 46 % on calcule l ecart type sur la serie temporelle de l HGT500 41 k=122*29; 47 k=122*29; 42 48 hgt500bis=reshape(hgt500_eof,k,1); 43 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 44 50 45 51 % intialisation des tableaux 46 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 47 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 48 54 49 compteurmax=0; 55 compteurmax=0; 50 56 compteurmin=0; 51 57 52 for a=1:29; % boucle sur les annees 53 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 54 61 delta=zeros(122,1); 55 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 56 64 if b>1; 57 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 58 66 end; 59 67 end; 60 for b=1:122; % boucle sur les jours 61 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 62 % cas 1 : max deltas apres negetifs et deltas avant postifs 63 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && hgt500_eof(b,a)>(hgt500bis)); 64 74 compteurmax=compteurmax+1; 65 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 96 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 97 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 98 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 99 109 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && hgt500_eof(b,a)<(hgt500bis)); 100 110 compteurmin=compteurmin+1; … … 135 145 end; 136 146 end; 137 end; 147 end; 138 148 end; 139 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 142 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 143 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 144 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 145 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 146 147 x=[-10:1:10]'; %' 148 149 figure(1); orient('landscape'); 150 151 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 152 165 lon=lon-180; 153 166 for e=1:7; … … 175 188 delta_hgt500_filtre_min(1,2)=100.0001; 176 189 fin=-30+24*2.5; 177 190 178 191 clear fin 179 192 fin=-10+16*2.5; … … 183 196 else 184 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 185 end 198 end 186 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 187 200 if e==4; 188 co=colorbar; 201 co=colorbar; 189 202 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 190 203 end; 191 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 192 206 set (gca,'tickDir','out'); 193 207 axis equal 194 208 axis([-180 180 20 80]); 195 if e==7; 209 if e==7; 196 210 title('HGT500 composite EOF1 30100j simulation TROP ','fontsize',8) ; 197 211 end 198 212 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 199 213 pos_vert=e/10; 200 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 201 215 end; 202 216 print -depsc2 composite_hgt500_trop_eof1_30100a.eps 203 217 204 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 205 220 206 221 for e=1:7; … … 228 243 delta_hgt500_filtre_min(1,2)=100.0001; 229 244 fin=-30+24*2.5; 230 245 231 246 clear fin 232 247 fin=-10+16*2.5; … … 236 251 else 237 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 238 end 253 end 239 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 240 255 if e==4; 241 co=colorbar; 256 co=colorbar; 242 257 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 243 258 end; 244 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 245 261 set (gca,'tickDir','out'); 246 262 axis equal … … 251 267 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 252 268 pos_vert=e/10; 253 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 254 270 end; 255 271 print -depsc2 composite_hgt500_trop_eof1_30100b.eps 256 257 258 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_TROP_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_trop.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 15 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 16 20 17 21 % on desaisonalise 18 22 hgt1=permute(hgt500,[2 1 3 4]); 19 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 20 25 hgt3=reshape(hgt500, 3538,64,128); 21 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 22 28 23 29 for a=1:122; 24 30 for b=1:28; 25 31 for c=1:37; 26 for d=1:128; 27 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 28 34 end; 29 35 end; … … 32 38 clear hgt2 hgt4; 33 39 34 35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%36 37 40 load eof2_TR_1030.txt 38 41 39 42 % on met sous la forme annee mois 40 hgt500_eof=reshape(eof2_TR_1030,122,29); clear eof2_TR_1030; 43 hgt500_eof=reshape(eof2_TR_1030,122,29); 44 clear eof2_TR_1030; 41 45 42 46 % on calcule l ecart type sur la serie temporelle de l HGT500 43 k=122*29; 47 k=122*29; 44 48 hgt500bis=reshape(hgt500_eof,k,1); 45 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 46 50 47 51 % intialisation des tableaux 48 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 49 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 50 54 51 compteurmax=0; 55 compteurmax=0; 52 56 compteurmin=0; 53 57 54 for a=1:29; % boucle sur les annees 55 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 56 61 delta=zeros(122,1); 57 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 58 64 if b>1; 59 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 60 66 end; 61 67 end; 62 for b=1:122; % boucle sur les jours 63 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 64 % cas 1 : max deltas apres negetifs et deltas avant postifs 65 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 66 74 compteurmax=compteurmax+1; 67 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 98 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 99 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 100 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 101 109 elseif (delta(b+1)>0 && delta(b)<0 && hgt500_eof(b,a)<(hgt500bis)); 102 110 compteurmin=compteurmin+1; … … 137 145 end; 138 146 end; 139 end; 147 end; 140 148 end; 141 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 144 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 145 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 146 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 147 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 148 149 x=[-10:1:10]'; %' 150 151 figure(1); orient('landscape'); 152 153 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 154 165 lon=lon-180; 155 166 for e=1:7; … … 177 188 delta_hgt500_filtre_min(1,2)=50.0001; 178 189 fin=-30+24*2.5; 179 190 180 191 clear fin 181 192 fin=-10+16*2.5; … … 185 196 else 186 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 187 end 198 end 188 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 189 200 if e==4; 190 co=colorbar; 201 co=colorbar; 191 202 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 192 203 end; 193 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 194 206 set (gca,'tickDir','out'); 195 207 axis equal 196 208 axis([-180 180 20 80]); 197 if e==7; 209 if e==7; 198 210 title('HGT500 composite EOF2 1030j simulation TROP ','fontsize',8) ; 199 211 end 200 212 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 201 213 pos_vert=e/10; 202 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 203 215 end; 204 216 print -depsc2 composite_hgt500_trop_eof2_1030a.eps 205 217 206 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 207 220 208 221 for e=1:7; … … 230 243 delta_hgt500_filtre_min(1,2)=50.0001; 231 244 fin=-30+24*2.5; 232 245 233 246 clear fin 234 247 fin=-10+16*2.5; … … 238 251 else 239 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 240 end 253 end 241 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 242 255 if e==4; 243 co=colorbar; 256 co=colorbar; 244 257 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 245 258 end; 246 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 247 261 set (gca,'tickDir','out'); 248 262 axis equal … … 253 267 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 254 268 pos_vert=e/10; 255 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 256 270 end; 257 271 print -depsc2 composite_hgt500_trop_eof2_1030b.eps 258 259 260 -
trunk/src/SIMULS_IRCAAM/composite_hgt500_TROP_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 4 7 load hgt500_trop.mat … … 12 15 hgt500b(:,:,:,1:64)=hgt500(:,:,:,65:128); 13 16 hgt500b(:,:,:,65:128)=hgt500(:,:,:,1:64); 14 clear hgt500; hgt500=hgt500b; clear hgt500b 15 17 clear hgt500; 18 hgt500=hgt500b; 19 clear hgt500b; 16 20 17 21 % on desaisonalise 18 22 hgt1=permute(hgt500,[2 1 3 4]); 19 hgt2(:,:,:)=nanmean(hgt1); clear hgt1; 23 hgt2(:,:,:)=nanmean(hgt1); 24 clear hgt1; 20 25 hgt3=reshape(hgt500, 3538,64,128); 21 hgt4(:,:)=nanmean(hgt3); clear hgt3; 26 hgt4(:,:)=nanmean(hgt3); 27 clear hgt3; 22 28 23 29 for a=1:122; 24 30 for b=1:28; 25 31 for c=1:37; 26 for d=1:128; 27 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 32 for d=1:128; 33 hgt500(a,b,c,d)=hgt500(a,b,c,d)-(hgt2(a,c,d)-hgt4(c,d)); 28 34 end; 29 35 end; … … 32 38 clear hgt2 hgt4; 33 39 34 35 36 37 38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%39 40 40 load eof2_TR_30100.txt 41 41 42 42 % on met sous la forme annee mois 43 hgt500_eof=reshape(eof2_TR_30100,122,29); clear eof2_TR_30100; 43 hgt500_eof=reshape(eof2_TR_30100,122,29); 44 clear eof2_TR_30100; 44 45 45 46 % on calcule l ecart type sur la serie temporelle de l HGT500 46 k=122*29; 47 k=122*29; 47 48 hgt500bis=reshape(hgt500_eof,k,1); 48 hgt500bis=std(hgt500bis); 49 hgt500bis=std(hgt500bis); 49 50 50 51 % intialisation des tableaux 51 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 hgt500_filtre_compomax=NaN*ones(50,31,64,128); 52 53 hgt500_filtre_compomin=NaN*ones(50,31,64,128); 53 54 54 compteurmax=0; 55 compteurmax=0; 55 56 compteurmin=0; 56 57 57 for a=1:29; % boucle sur les annees 58 clear delta; 58 % boucle sur les annees 59 for a=1:29; 60 clear delta; 59 61 delta=zeros(122,1); 60 for b=1:122; % boucle sur les jours : on prepare avant 62 % boucle sur les jours : on prepare avant 63 for b=1:122; 61 64 if b>1; 62 65 delta(b)=hgt500_eof(b,a)-hgt500_eof(b-1,a); 63 66 end; 64 67 end; 65 for b=1:122; % boucle sur les jours 66 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 67 % cas 1 : max deltas apres negetifs et deltas avant postifs 68 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 68 % boucle sur les jours 69 for b=1:122; 70 % 1ere condition (laisser une marge de 10) 71 if (b>20 && b<112); 72 % cas 1 : max deltas apres negetifs et deltas avant postifs 73 if (delta(b+1)<0 && delta(b)>0 && hgt500_eof(b,a)>(hgt500bis)); 69 74 compteurmax=compteurmax+1; 70 75 hgt500_filtre_compomax(compteurmax,1,:,:)=hgt500(b-20,a,:,:); … … 101 106 hgt500_filtre_compomax(compteurmax,30,:,:)=hgt500(b+9,a,:,:); 102 107 hgt500_filtre_compomax(compteurmax,31,:,:)=hgt500(b+10,a,:,:); 103 % cas 2 : min deltas apres positifs et deltas avant negatifs 108 % cas 2 : min deltas apres positifs et deltas avant negatifs 104 109 elseif (delta(b+1)>0 && delta(b)<0 && hgt500_eof(b,a)<(hgt500bis)); 105 110 compteurmin=compteurmin+1; … … 140 145 end; 141 146 end; 142 end; 147 end; 143 148 end; 144 149 hgt500_filtre_compomin=hgt500_filtre_compomin(1:compteurmin,:,:,:); … … 147 152 % on fait la somme des valeurs de hgt500_filtreentiel sur le nbre d occurences 148 153 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 149 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); clear hgt500_filtre_compomin; 150 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); clear hgt500_filtre_compomax; 151 152 x=[-10:1:10]'; %' 153 154 figure(1); orient('landscape'); 155 156 lat=lat'; 154 hgt500_filtre_compomin1(:,:,:)=mean(hgt500_filtre_compomin); 155 clear hgt500_filtre_compomin; 156 hgt500_filtre_compomax1(:,:,:)=mean(hgt500_filtre_compomax); 157 clear hgt500_filtre_compomax; 158 159 x=[-10:1:10]'; 160 161 figure(1); 162 orient('landscape'); 163 164 lat=lat'; 157 165 lon=lon-180; 158 166 for e=1:7; … … 180 188 delta_hgt500_filtre_min(1,2)=100.0001; 181 189 fin=-30+24*2.5; 182 190 183 191 clear fin 184 192 fin=-10+16*2.5; … … 188 196 else 189 197 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 190 end 198 end 191 199 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 192 200 if e==4; 193 co=colorbar; 201 co=colorbar; 194 202 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 195 203 end; 196 hold on; cartemonde1; 204 hold on; 205 cartemonde1; 197 206 set (gca,'tickDir','out'); 198 207 axis equal 199 208 axis([-180 180 20 80]); 200 if e==7; 209 if e==7; 201 210 title('HGT500 composite EOF2 30100j simulation TROP ','fontsize',8) ; 202 211 end 203 212 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 204 213 pos_vert=e/10; 205 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 214 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 206 215 end; 207 216 print -depsc2 composite_hgt500_trop_eof2_30100a.eps 208 217 209 figure(2); orient('landscape'); 218 figure(2); 219 orient('landscape'); 210 220 211 221 for e=1:7; … … 233 243 delta_hgt500_filtre_min(1,2)=100.0001; 234 244 fin=-30+24*2.5; 235 245 236 246 clear fin 237 247 fin=-10+16*2.5; … … 241 251 else 242 252 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 243 end 253 end 244 254 set (gca,'YTick',[30:10:70],'YTickLabel',['30N';'40N';'50N';'60N';'70N'],'fontname','Arial','fontsize',6); 245 255 if e==4; 246 co=colorbar; 256 co=colorbar; 247 257 set(co,'ytick',[-80:40:80],'yticklabel',[-80:40:80],'fontname','Arial','fontsize',5); 248 258 end; 249 hold on; cartemonde1; 259 hold on; 260 cartemonde1; 250 261 set (gca,'tickDir','out'); 251 262 axis equal … … 256 267 text(-270,40,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 257 268 pos_vert=e/10; 258 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 269 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 259 270 end; 260 271 print -depsc2 composite_hgt500_trop_eof2_30100b.eps 261 262 263 -
trunk/src/SIMULS_IRCAAM/composite_olr_AFR_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 … … 88 91 89 92 ncload('rlut_d.AfNQIVIV.200006-09.nc','rlut','lat','lon'); 90 olr(:,29,:,:)=rlut; clear rlut; 93 olr(:,29,:,:)=rlut; 94 clear rlut; 91 95 92 96 % selction du domaine geographique … … 95 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 96 100 clear olr; 97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%98 101 99 102 load eof1_AFR_1030.txt 100 103 101 104 % on met sous la forme annee mois 102 olr_eof=reshape(eof1_AFR_1030,122,29); clear eof1_AFR_1030; 105 olr_eof=reshape(eof1_AFR_1030,122,29); 106 clear eof1_AFR_1030; 103 107 104 108 % on calcule l ecart type sur la serie temporelle de l OLR 105 k=122*29; 109 k=122*29; 106 110 olrbis=reshape(olr_eof,k,1); 107 olrbis=std(olrbis); 111 olrbis=std(olrbis); 108 112 109 113 % intialisation des tableaux 110 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 111 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 112 116 113 compteurmax=0; 117 compteurmax=0; 114 118 compteurmin=0; 115 119 116 for a=1:29; % boucle sur les annees 117 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 118 123 delta=zeros(122,1); 119 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 120 126 if b>1; 121 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 122 128 end; 123 129 end; 124 for b=1:122; % boucle sur les jours 125 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 126 % cas 1 : max deltas apres negetifs et deltas avant postifs 127 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 % cas 1 : max deltas apres negetifs et deltas avant postifs 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 128 136 compteurmax=compteurmax+1; 129 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 160 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 161 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 162 % cas 2 : min deltas apres positifs et deltas avant negatifs 170 % cas 2 : min deltas apres positifs et deltas avant negatifs 163 171 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 164 172 compteurmin=compteurmin+1; … … 199 207 end; 200 208 end; 201 end; 209 end; 202 210 end; 203 211 % on fait le test de Student … … 217 225 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 218 226 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 219 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 220 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 221 222 x=[-10:1:10]'; %' 223 224 figure(1); orient('landscape'); 225 226 lat=lat'; 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 228 clear olr_filtre_compomin; 229 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 230 clear olr_filtre_compomax; 231 232 x=[-10:1:10]'; 233 234 figure(1); 235 orient('landscape'); 236 237 lat=lat'; 227 238 lon=lon-180; 228 239 for e=1:7; … … 255 266 delta_olr_filtre_min(1,2)=50.0001; 256 267 fin=-30+24*2.5; 257 268 258 269 clear fin 259 270 fin=-10+16*2.5; … … 263 274 else 264 275 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 265 end 276 end 266 277 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 267 278 if e==4; 268 co=colorbar; 279 co=colorbar; 269 280 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 270 281 end; 271 hold on; cartemonde1; 282 hold on; 283 cartemonde1; 272 284 set (gca,'tickDir','out'); 273 285 axis equal 274 286 axis([-180 180 -20 40]); 275 if e==7; 276 title('OLR composite EOF1 1030j simulation AFR ','fontsize',8) ;287 if e==7; 288 title('OLR composite EOF1 1030j simulation AFR ','fontsize',8) ; 277 289 end 278 290 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 279 291 pos_vert=e/10; 280 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 292 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 281 293 end; 282 294 283 figure(1); print -depsc2 composite_olr_EOF1_1030j_simulation_AFR_part1.eps; 284 285 figure(2); orient('landscape'); 295 figure(1); 296 print -depsc2 composite_olr_EOF1_1030j_simulation_AFR_part1.eps; 297 298 figure(2); 299 orient('landscape'); 286 300 287 301 for e=1:7; … … 314 328 delta_olr_filtre_min(1,2)=50.0001; 315 329 fin=-30+24*2.5; 316 330 317 331 clear fin 318 332 fin=-10+16*2.5; … … 322 336 else 323 337 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 324 end 338 end 325 339 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 326 340 if e==4; 327 co=colorbar; 341 co=colorbar; 328 342 set(co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 329 343 end; 330 hold on; cartemonde1; 344 hold on; 345 cartemonde1; 331 346 set (gca,'tickDir','out'); 332 347 axis equal … … 337 352 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 338 353 pos_vert=e/10; 339 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 354 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 340 355 end; 341 356 342 figure(2); print -depsc2 composite_olr_EOF1_1030j_simulation_AFR_part2.eps; 343 344 345 357 figure(2); 358 print -depsc2 composite_olr_EOF1_1030j_simulation_AFR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AFR_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 … … 95 98 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 96 99 clear olr; 97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%98 100 99 101 load eof1_AFR_30100.txt 100 102 101 103 % on met sous la forme annee mois 102 olr_eof=reshape(eof1_AFR_30100,122,29); clear eof1_AFR_30100; 104 olr_eof=reshape(eof1_AFR_30100,122,29); 105 clear eof1_AFR_30100; 103 106 104 107 % on calcule l ecart type sur la serie temporelle de l OLR 105 k=122*29; 108 k=122*29; 106 109 olrbis=reshape(olr_eof,k,1); 107 olrbis=std(olrbis); 110 olrbis=std(olrbis); 108 111 109 112 % intialisation des tableaux 110 olr_filtre_compomax=NaN*ones(50,31,64,128); 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 111 114 olr_filtre_compomin=NaN*ones(50,31,64,128); 112 115 113 compteurmax=0; 116 compteurmax=0; 114 117 compteurmin=0; 115 118 116 for a=1:29; % boucle sur les annees 117 clear delta; 119 % boucle sur les annees 120 for a=1:29; 121 clear delta; 118 122 delta=zeros(122,1); 119 for b=1:122; % boucle sur les jours : on prepare avant 123 % boucle sur les jours : on prepare avant 124 for b=1:122; 120 125 if b>1; 121 126 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 122 127 end; 123 128 end; 124 for b=1:122; % boucle sur les jours 125 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 126 % cas 1 : max deltas apres negetifs et deltas avant postifs 127 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 % boucle sur les jours 130 for b=1:122; 131 % 1ere condition (laisser une marge de 10) 132 if (b>20 && b<112); 133 % cas 1 : max deltas apres negetifs et deltas avant postifs 134 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 128 135 compteurmax=compteurmax+1; 129 136 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 160 167 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 161 168 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 162 % cas 2 : min deltas apres positifs et deltas avant negatifs 169 % cas 2 : min deltas apres positifs et deltas avant negatifs 163 170 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 164 171 compteurmin=compteurmin+1; … … 199 206 end; 200 207 end; 201 end; 208 end; 202 209 end; 203 210 % on fait le test de Student … … 217 224 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 218 225 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 219 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 220 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 221 222 x=[-10:1:10]'; %' 223 224 figure(1); orient('landscape'); 225 226 lat=lat'; 226 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 227 clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 229 clear olr_filtre_compomax; 230 231 x=[-10:1:10]'; 232 233 figure(1); 234 orient('landscape'); 235 236 lat=lat'; 227 237 lon=lon-180; 228 238 for e=1:7; … … 255 265 delta_olr_filtre_min(1,2)=50.0001; 256 266 fin=-30+24*2.5; 257 267 258 268 clear fin 259 269 fin=-10+16*2.5; … … 263 273 else 264 274 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 265 end 275 end 266 276 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 267 277 if e==4; 268 co=colorbar; 278 co=colorbar; 269 279 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 270 280 end; 271 hold on; cartemonde1; 281 hold on; 282 cartemonde1; 272 283 set (gca,'tickDir','out'); 273 284 axis equal 274 285 axis([-180 180 -20 40]); 275 if e==7; 286 if e==7; 276 287 title('OLR composite EOF1 30100j simulation AFR ','fontsize',8) ; 277 288 end 278 289 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 279 290 pos_vert=e/10; 280 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 291 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 281 292 end; 282 293 283 figure(1); print -depsc2 composite_olr_EOF1_30100j_simulation_AFR_part1.eps; 284 285 figure(2); orient('landscape'); 294 figure(1); 295 print -depsc2 composite_olr_EOF1_30100j_simulation_AFR_part1.eps; 296 297 figure(2); 298 orient('landscape'); 286 299 287 300 for e=1:7; … … 314 327 delta_olr_filtre_min(1,2)=50.0001; 315 328 fin=-30+24*2.5; 316 329 317 330 clear fin 318 331 fin=-10+16*2.5; … … 322 335 else 323 336 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 324 end 337 end 325 338 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 326 339 if e==4; 327 co=colorbar; 340 co=colorbar; 328 341 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 329 342 end; 330 hold on; cartemonde1; 343 hold on; 344 cartemonde1; 331 345 set (gca,'tickDir','out'); 332 346 axis equal … … 337 351 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 338 352 pos_vert=e/10; 339 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 353 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 340 354 end; 341 355 342 figure(2); print -depsc2 composite_olr_EOF1_30100j_simulation_AFR_part2.eps; 343 344 345 356 figure(2); 357 print -depsc2 composite_olr_EOF1_30100j_simulation_AFR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AFR_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 … … 95 98 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 96 99 clear olr; 97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%98 100 99 101 load eof2_AFR_1030.txt 100 102 101 103 % on met sous la forme annee mois 102 olr_eof=reshape(eof2_AFR_1030,122,29); clear eof2_AFR_1030; 104 olr_eof=reshape(eof2_AFR_1030,122,29); 105 clear eof2_AFR_1030; 103 106 104 107 % on calcule l ecart type sur la serie temporelle de l OLR 105 k=122*29; 108 k=122*29; 106 109 olrbis=reshape(olr_eof,k,1); 107 olrbis=1.25*std(olrbis); 110 olrbis=1.25*std(olrbis); 108 111 109 112 % intialisation des tableaux 110 olr_filtre_compomax=NaN*ones(50,31,64,128); 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 111 114 olr_filtre_compomin=NaN*ones(50,31,64,128); 112 115 113 compteurmax=0; 116 compteurmax=0; 114 117 compteurmin=0; 115 118 116 for a=1:29; % boucle sur les annees 117 clear delta; 119 % boucle sur les annees 120 for a=1:29; 121 clear delta; 118 122 delta=zeros(122,1); 119 for b=1:122; % boucle sur les jours : on prepare avant 123 % boucle sur les jours : on prepare avant 124 for b=1:122; 120 125 if b>1; 121 126 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 122 127 end; 123 128 end; 124 for b=1:122; % boucle sur les jours 125 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 126 % cas 1 : max deltas apres negetifs et deltas avant postifs 127 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 % boucle sur les jours 130 for b=1:122; 131 % 1ere condition (laisser une marge de 10) 132 if (b>20 && b<112); 133 % cas 1 : max deltas apres negetifs et deltas avant postifs 134 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 128 135 compteurmax=compteurmax+1; 129 136 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 160 167 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 161 168 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 162 % cas 2 : min deltas apres positifs et deltas avant negatifs 169 % cas 2 : min deltas apres positifs et deltas avant negatifs 163 170 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 164 171 compteurmin=compteurmin+1; … … 199 206 end; 200 207 end; 201 end; 208 end; 202 209 end; 203 210 … … 221 228 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 222 229 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 223 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 224 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 225 226 x=[-10:1:10]'; %' 227 228 figure(1); orient('landscape'); 229 230 lat=lat'; 230 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 231 clear olr_filtre_compomin; 232 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 233 clear olr_filtre_compomax; 234 235 x=[-10:1:10]'; 236 237 figure(1); 238 orient('landscape'); 239 240 lat=lat'; 231 241 lon=lon-180; 232 242 for e=1:7; … … 259 269 delta_olr_filtre_min(1,2)=50.0001; 260 270 fin=-30+24*2.5; 261 271 262 272 clear fin 263 273 fin=-10+16*2.5; … … 267 277 else 268 278 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 269 end 279 end 270 280 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 271 281 if e==4; 272 co=colorbar; 282 co=colorbar; 273 283 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 274 284 end; 275 hold on; cartemonde1; 285 hold on; 286 cartemonde1; 276 287 set (gca,'tickDir','out'); 277 288 axis equal 278 289 axis([-180 180 -20 40]); 279 if e==7; 290 if e==7; 280 291 title('OLR composite EOF2 1030j simulation AFR ','fontsize',8) ; 281 292 end 282 293 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 283 294 pos_vert=e/10; 284 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 295 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 285 296 end; 286 297 287 figure(1); print -depsc2 composite_olr_EOF2_1030j_simulation_AFR_part1.eps; 288 289 figure(2); orient('landscape'); 298 figure(1); 299 print -depsc2 composite_olr_EOF2_1030j_simulation_AFR_part1.eps; 300 301 figure(2); 302 orient('landscape'); 290 303 291 304 for e=1:7; … … 319 332 delta_olr_filtre_min(1,2)=50.0001; 320 333 fin=-30+24*2.5; 321 334 322 335 clear fin 323 336 fin=-10+16*2.5; … … 327 340 else 328 341 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 329 end 342 end 330 343 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 331 344 if e==4; 332 co=colorbar; 345 co=colorbar; 333 346 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 334 347 end; 335 hold on; cartemonde1; 348 hold on; 349 cartemonde1; 336 350 set (gca,'tickDir','out'); 337 351 axis equal … … 342 356 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 343 357 pos_vert=e/10; 344 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 358 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 345 359 end; 346 360 347 figure(2); print -depsc2 composite_olr_EOF2_1030j_simulation_AFR_part2.eps; 348 349 350 361 figure(2); 362 print -depsc2 composite_olr_EOF2_1030j_simulation_AFR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AFR_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 … … 95 98 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 96 99 clear olr; 97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%98 100 99 101 load eof2_AFR_30100.txt 100 102 101 103 % on met sous la forme annee mois 102 olr_eof=reshape(eof2_AFR_30100,122,29); clear eof2_AFR_30100; 104 olr_eof=reshape(eof2_AFR_30100,122,29); 105 clear eof2_AFR_30100; 103 106 104 107 % on calcule l ecart type sur la serie temporelle de l OLR 105 k=122*29; 108 k=122*29; 106 109 olrbis=reshape(olr_eof,k,1); 107 olrbis=std(olrbis); 110 olrbis=std(olrbis); 108 111 109 112 % intialisation des tableaux 110 olr_filtre_compomax=NaN*ones(50,31,64,128); 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 111 114 olr_filtre_compomin=NaN*ones(50,31,64,128); 112 115 113 compteurmax=0; 116 compteurmax=0; 114 117 compteurmin=0; 115 118 116 for a=1:29; % boucle sur les annees 117 clear delta; 119 % boucle sur les annees 120 for a=1:29; 121 clear delta; 118 122 delta=zeros(122,1); 119 for b=1:122; % boucle sur les jours : on prepare avant 123 % boucle sur les jours : on prepare avant 124 for b=1:122; 120 125 if b>1; 121 126 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 122 127 end; 123 128 end; 124 for b=1:122; % boucle sur les jours 125 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 126 % cas 1 : max deltas apres negetifs et deltas avant postifs 127 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 % boucle sur les jours 130 for b=1:122; 131 % 1ere condition (laisser une marge de 10) 132 if (b>20 && b<112); 133 % cas 1 : max deltas apres negetifs et deltas avant postifs 134 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 128 135 compteurmax=compteurmax+1; 129 136 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 160 167 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 161 168 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 162 % cas 2 : min deltas apres positifs et deltas avant negatifs 169 % cas 2 : min deltas apres positifs et deltas avant negatifs 163 170 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 164 171 compteurmin=compteurmin+1; … … 199 206 end; 200 207 end; 201 end; 208 end; 202 209 end; 203 210 % on fait le test de Student … … 217 224 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 218 225 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 219 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 220 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 221 222 x=[-10:1:10]'; %' 223 224 figure(1); orient('landscape'); 225 226 lat=lat'; 226 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 227 clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 229 clear olr_filtre_compomax; 230 231 x=[-10:1:10]'; 232 233 figure(1); 234 orient('landscape'); 235 236 lat=lat'; 227 237 lon=lon-180; 228 238 for e=1:7; … … 255 265 delta_olr_filtre_min(1,2)=50.0001; 256 266 fin=-30+24*2.5; 257 267 258 268 clear fin 259 269 fin=-10+16*2.5; … … 263 273 else 264 274 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 265 end 275 end 266 276 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 267 277 if e==4; 268 co=colorbar; 278 co=colorbar; 269 279 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 270 280 end; 271 hold on; cartemonde1; 281 hold on; 282 cartemonde1; 272 283 set (gca,'tickDir','out'); 273 284 axis equal 274 285 axis([-180 180 -20 40]); 275 if e==7; 286 if e==7; 276 287 title('OLR composite EOF2 30100j simulation AFR ','fontsize',8) ; 277 288 end 278 289 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 279 290 pos_vert=e/10; 280 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 291 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 281 292 end; 282 293 283 figure(1); print -depsc2 composite_olr_EOF2_30100j_simulation_AFR_part1.eps; 284 285 figure(2); orient('landscape'); 294 figure(1); 295 print -depsc2 composite_olr_EOF2_30100j_simulation_AFR_part1.eps; 296 297 figure(2); 298 orient('landscape'); 286 299 287 300 for e=1:7; … … 314 327 delta_olr_filtre_min(1,2)=50.0001; 315 328 fin=-30+24*2.5; 316 329 317 330 clear fin 318 331 fin=-10+16*2.5; … … 322 335 else 323 336 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 324 end 337 end 325 338 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 326 339 if e==4; 327 co=colorbar; 340 co=colorbar; 328 341 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 329 342 end; 330 hold on; cartemonde1; 343 hold on; 344 cartemonde1; 331 345 set (gca,'tickDir','out'); 332 346 axis equal … … 337 351 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 338 352 pos_vert=e/10; 339 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 353 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 340 354 end; 341 355 342 figure(2); print -depsc2 composite_olr_EOF2_30100j_simulation_AFR_part2.eps; 343 344 345 356 figure(2); 357 print -depsc2 composite_olr_EOF2_30100j_simulation_AFR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AS_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('INDE') … … 96 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 97 100 clear olr; 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%99 101 100 102 load eof1_AS_1030.txt 101 103 102 104 % on met sous la forme annee mois 103 olr_eof=reshape(eof1_AS_1030,122,29); clear eof1_AS_1030; 105 olr_eof=reshape(eof1_AS_1030,122,29); 106 clear eof1_AS_1030; 104 107 105 108 % on calcule l ecart type sur la serie temporelle de l OLR 106 k=122*29; 109 k=122*29; 107 110 olrbis=reshape(olr_eof,k,1); 108 olrbis=std(olrbis); 111 olrbis=std(olrbis); 109 112 110 113 % intialisation des tableaux 111 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 112 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 113 116 114 compteurmax=0; 117 compteurmax=0; 115 118 compteurmin=0; 116 119 117 for a=1:29; % boucle sur les annees 118 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 119 123 delta=zeros(122,1); 120 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 121 126 if b>1; 122 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 123 128 end; 124 129 end; 125 for b=1:122; % boucle sur les jours 126 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 127 % cas 1 : max deltas apres negetifs et deltas avant postifs 128 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 % cas 1 : max deltas apres negetifs et deltas avant postifs 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 136 compteurmax=compteurmax+1; 130 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 161 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 162 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 163 % cas 2 : min deltas apres positifs et deltas avant negatifs 170 % cas 2 : min deltas apres positifs et deltas avant negatifs 164 171 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 165 172 compteurmin=compteurmin+1; … … 200 207 end; 201 208 end; 202 end; 209 end; 203 210 end; 204 211 % on fait le test de Student … … 218 225 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 219 226 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 220 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 221 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 222 223 x=[-10:1:10]'; %' 224 225 figure(1); orient('landscape'); 226 227 lat=lat'; 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 228 clear olr_filtre_compomin; 229 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 230 clear olr_filtre_compomax; 231 232 x=[-10:1:10]'; 233 234 figure(1); 235 orient('landscape'); 236 237 lat=lat'; 228 238 lon=lon-180; 229 239 for e=1:7; … … 256 266 delta_olr_filtre_min(1,2)=50.0001; 257 267 fin=-30+24*2.5; 258 268 259 269 clear fin 260 270 fin=-10+16*2.5; … … 264 274 else 265 275 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 266 end 276 end 267 277 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 268 278 if e==4; 269 co=colorbar; 279 co=colorbar; 270 280 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 271 281 end; 272 hold on; cartemonde1; 282 hold on; 283 cartemonde1; 273 284 set (gca,'tickDir','out'); 274 285 axis equal 275 286 axis([-180 180 -20 40]); 276 if e==7; 287 if e==7; 277 288 title('OLR composite EOF1 1030j simulation AS ','fontsize',8) ; 278 289 end 279 290 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 280 291 pos_vert=e/10; 281 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 292 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 282 293 end; 283 294 284 figure(1); print -depsc2 composite_olr_EOF1_1030j_simulation_AS_part1.eps; 285 286 figure(2); orient('landscape'); 295 figure(1); 296 print -depsc2 composite_olr_EOF1_1030j_simulation_AS_part1.eps; 297 298 figure(2); 299 orient('landscape'); 287 300 288 301 for e=1:7; … … 315 328 delta_olr_filtre_min(1,2)=50.0001; 316 329 fin=-30+24*2.5; 317 330 318 331 clear fin 319 332 fin=-10+16*2.5; … … 323 336 else 324 337 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 325 end 338 end 326 339 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 327 340 if e==4; 328 co=colorbar; 341 co=colorbar; 329 342 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 330 343 end; 331 hold on; cartemonde1; 344 hold on; 345 cartemonde1; 332 346 set (gca,'tickDir','out'); 333 347 axis equal … … 338 352 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 339 353 pos_vert=e/10; 340 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 354 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 341 355 end; 342 356 343 figure(2); print -depsc2 composite_olr_EOF1_1030j_simulation_AS_part2.eps; 344 345 346 357 figure(2); 358 print -depsc2 composite_olr_EOF1_1030j_simulation_AS_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AS_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('INDE') … … 96 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 97 100 clear olr; 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%99 101 100 102 load eof1_AS_30100.txt 101 103 102 104 % on met sous la forme annee mois 103 olr_eof=reshape(eof1_AS_30100,122,29); clear eof1_AS_30100; 105 olr_eof=reshape(eof1_AS_30100,122,29); 106 clear eof1_AS_30100; 104 107 105 108 % on calcule l ecart type sur la serie temporelle de l OLR 106 k=122*29; 109 k=122*29; 107 110 olrbis=reshape(olr_eof,k,1); 108 olrbis=std(olrbis); 111 olrbis=std(olrbis); 109 112 110 113 % intialisation des tableaux 111 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 112 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 113 116 114 compteurmax=0; 117 compteurmax=0; 115 118 compteurmin=0; 116 119 117 for a=1:29; % boucle sur les annees 118 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 119 123 delta=zeros(122,1); 120 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 121 126 if b>1; 122 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 123 128 end; 124 129 end; 125 for b=1:122; % boucle sur les jours 126 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 127 % cas 1 : max deltas apres negetifs et deltas avant postifs 128 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 % cas 1 : max deltas apres negetifs et deltas avant postifs 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 136 compteurmax=compteurmax+1; 130 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 161 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 162 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 163 % cas 2 : min deltas apres positifs et deltas avant negatifs 170 % cas 2 : min deltas apres positifs et deltas avant negatifs 164 171 elseif (delta(b+1)>0 && delta(b) && olr_eof(b,a)<(-olrbis)); 165 172 compteurmin=compteurmin+1; … … 200 207 end; 201 208 end; 202 end; 209 end; 203 210 end; 204 211 % on fait le test de Student … … 218 225 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 219 226 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 220 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 221 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 222 223 x=[-10:1:10]'; %' 224 225 figure(1); orient('landscape'); 226 227 lat=lat'; 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 228 clear olr_filtre_compomin; 229 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 230 clear olr_filtre_compomax; 231 232 x=[-10:1:10]'; 233 234 figure(1); 235 orient('landscape'); 236 237 lat=lat'; 228 238 lon=lon-180; 229 239 for e=1:7; … … 256 266 delta_olr_filtre_min(1,2)=50.0001; 257 267 fin=-30+24*2.5; 258 268 259 269 clear fin 260 270 fin=-10+16*2.5; … … 264 274 else 265 275 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 266 end 276 end 267 277 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 268 278 if e==4; 269 co=colorbar; 279 co=colorbar; 270 280 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 271 281 end; 272 hold on; cartemonde1; 282 hold on; 283 cartemonde1; 273 284 set (gca,'tickDir','out'); 274 285 axis equal 275 286 axis([-180 180 -20 40]); 276 if e==7; 287 if e==7; 277 288 title('OLR composite EOF1 30100j simulation AS ','fontsize',8) ; 278 289 end 279 290 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 280 291 pos_vert=e/10; 281 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 292 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 282 293 end; 283 294 284 figure(1); print -depsc2 composite_olr_EOF1_30100j_simulation_AS_part1.eps; 285 286 figure(2); orient('landscape'); 295 figure(1); 296 print -depsc2 composite_olr_EOF1_30100j_simulation_AS_part1.eps; 297 298 figure(2); 299 orient('landscape'); 287 300 288 301 for e=1:7; … … 315 328 delta_olr_filtre_min(1,2)=50.0001; 316 329 fin=-30+24*2.5; 317 330 318 331 clear fin 319 332 fin=-10+16*2.5; … … 323 336 else 324 337 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 325 end 338 end 326 339 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 327 340 if e==4; 328 co=colorbar; 341 co=colorbar; 329 342 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 330 343 end; 331 hold on; cartemonde1; 344 hold on; 345 cartemonde1; 332 346 set (gca,'tickDir','out'); 333 347 axis equal … … 338 352 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 339 353 pos_vert=e/10; 340 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 354 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 341 355 end; 342 356 343 figure(2); print -depsc2 composite_olr_EOF1_30100j_simulation_AS_part2.eps; 344 345 346 357 figure(2); 358 print -depsc2 composite_olr_EOF1_30100j_simulation_AS_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AS_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('INDE') … … 96 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 97 100 clear olr; 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%99 101 100 102 load eof2_AS_1030.txt 101 103 102 104 % on met sous la forme annee mois 103 olr_eof=reshape(eof2_AS_1030,122,29); clear eof2_AS_1030; 105 olr_eof=reshape(eof2_AS_1030,122,29); 106 clear eof2_AS_1030; 104 107 105 108 % on calcule l ecart type sur la serie temporelle de l OLR 106 k=122*29; 109 k=122*29; 107 110 olrbis=reshape(olr_eof,k,1); 108 olrbis=std(olrbis); 111 olrbis=std(olrbis); 109 112 110 113 % intialisation des tableaux 111 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 112 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 113 116 114 compteurmax=0; 117 compteurmax=0; 115 118 compteurmin=0; 116 119 117 for a=1:29; % boucle sur les annees 118 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 119 123 delta=zeros(122,1); 120 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 121 126 if b>1; 122 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 123 128 end; 124 129 end; 125 for b=1:122; % boucle sur les jours 126 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 127 % cas 1 : max deltas apres negetifs et deltas avant postifs 128 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 % cas 1 : max deltas apres negetifs et deltas avant postifs 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 136 compteurmax=compteurmax+1; 130 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 161 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 162 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 163 % cas 2 : min deltas apres positifs et deltas avant negatifs 170 % cas 2 : min deltas apres positifs et deltas avant negatifs 164 171 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis)); 165 172 compteurmin=compteurmin+1; … … 200 207 end; 201 208 end; 202 end; 209 end; 203 210 end; 204 211 % on fait le test de Student … … 218 225 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 219 226 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 220 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 221 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 222 223 x=[-10:1:10]'; %' 224 225 figure(1); orient('landscape'); 226 227 lat=lat'; 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 228 clear olr_filtre_compomin; 229 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 230 clear olr_filtre_compomax; 231 232 x=[-10:1:10]'; 233 234 figure(1); 235 orient('landscape'); 236 237 lat=lat'; 228 238 lon=lon-180; 229 239 for e=1:7; … … 256 266 delta_olr_filtre_min(1,2)=50.0001; 257 267 fin=-30+24*2.5; 258 268 259 269 clear fin 260 270 fin=-10+16*2.5; … … 264 274 else 265 275 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 266 end 276 end 267 277 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 268 278 if e==4; 269 co=colorbar; 279 co=colorbar; 270 280 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 271 281 end; 272 hold on; cartemonde1; 282 hold on; 283 cartemonde1; 273 284 set (gca,'tickDir','out'); 274 285 axis equal 275 286 axis([-180 180 -20 40]); 276 if e==7; 287 if e==7; 277 288 title('OLR composite EOF2 1030j simulation AS ','fontsize',8) ; 278 289 end 279 290 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 280 291 pos_vert=e/10; 281 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 292 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 282 293 end; 283 294 284 figure(1); print -depsc2 composite_olr_EOF2_1030j_simulation_AS_part1.eps; 285 286 figure(2); orient('landscape'); 295 figure(1); 296 print -depsc2 composite_olr_EOF2_1030j_simulation_AS_part1.eps; 297 298 figure(2); 299 orient('landscape'); 287 300 288 301 for e=1:7; … … 315 328 delta_olr_filtre_min(1,2)=50.0001; 316 329 fin=-30+24*2.5; 317 330 318 331 clear fin 319 332 fin=-10+16*2.5; … … 323 336 else 324 337 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 325 end 338 end 326 339 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 327 340 if e==4; 328 co=colorbar; 341 co=colorbar; 329 342 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 330 343 end; 331 hold on; cartemonde1; 344 hold on; 345 cartemonde1; 332 346 set (gca,'tickDir','out'); 333 347 axis equal … … 338 352 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 339 353 pos_vert=e/10; 340 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 354 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 341 355 end; 342 356 343 figure(2); print -depsc2 composite_olr_EOF2_1030j_simulation_AS_part2.eps; 344 345 346 357 figure(2); 358 print -depsc2 composite_olr_EOF2_1030j_simulation_AS_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_AS_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('INDE') … … 96 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 97 100 clear olr; 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%99 101 100 102 load eof2_AS_30100.txt 101 103 102 104 % on met sous la forme annee mois 103 olr_eof=reshape(eof2_AS_30100,122,29); clear eof2_AS_30100; 105 olr_eof=reshape(eof2_AS_30100,122,29); 106 clear eof2_AS_30100; 104 107 105 108 % on calcule l ecart type sur la serie temporelle de l OLR 106 k=122*29; 109 k=122*29; 107 110 olrbis=reshape(olr_eof,k,1); 108 olrbis=std(olrbis); 111 olrbis=std(olrbis); 109 112 110 113 % intialisation des tableaux 111 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 112 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 113 116 114 compteurmax=0; 117 compteurmax=0; 115 118 compteurmin=0; 116 119 117 for a=1:29; % boucle sur les annees 118 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 119 123 delta=zeros(122,1); 120 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 121 126 if b>1; 122 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 123 128 end; 124 129 end; 125 for b=1:122; % boucle sur les jours 126 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 127 % cas 1 : max deltas apres negetifs et deltas avant postifs 128 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 % cas 1 : max deltas apres negetifs et deltas avant postifs 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 136 compteurmax=compteurmax+1; 130 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 161 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 162 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 163 % cas 2 : min deltas apres positifs et deltas avant negatifs 170 % cas 2 : min deltas apres positifs et deltas avant negatifs 164 171 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && olr_eof(b,a)<(-olrbis)); 165 172 compteurmin=compteurmin+1; … … 200 207 end; 201 208 end; 202 end; 209 end; 203 210 end; 204 211 % on fait le test de Student … … 218 225 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 219 226 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 220 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 221 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 222 223 x=[-10:1:10]'; %' 224 225 figure(1); orient('landscape'); 226 227 lat=lat'; 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 228 clear olr_filtre_compomin; 229 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 230 clear olr_filtre_compomax; 231 232 x=[-10:1:10]'; 233 234 figure(1); 235 orient('landscape'); 236 237 lat=lat'; 228 238 lon=lon-180; 229 239 for e=1:7; … … 256 266 delta_olr_filtre_min(1,2)=50.0001; 257 267 fin=-30+24*2.5; 258 268 259 269 clear fin; 260 270 fin=-10+16*2.5; … … 264 274 else 265 275 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 266 end 276 end 267 277 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 268 278 if e==4; 269 co=colorbar; 279 co=colorbar; 270 280 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 271 281 end; 272 hold on; cartemonde1; 282 hold on; 283 cartemonde1; 273 284 set (gca,'tickDir','out'); 274 285 axis equal 275 286 axis([-180 180 -20 40]); 276 if e==7; 277 title('OLR composite EOF2 30100j simulation AS ','fontsize',8) ;287 if e==7; 288 title('OLR composite EOF2 30100j simulation AS ','fontsize',8) ; 278 289 end 279 290 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 280 291 pos_vert=e/10; 281 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 292 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 282 293 end; 283 294 284 figure(1); print -depsc2 composite_olr_EOF2_30100j_simulation_AS_part1.eps; 285 286 figure(2); orient('landscape'); 295 figure(1); 296 print -depsc2 composite_olr_EOF2_30100j_simulation_AS_part1.eps; 297 298 figure(2); 299 orient('landscape'); 287 300 288 301 for e=1:7; … … 315 328 delta_olr_filtre_min(1,2)=50.0001; 316 329 fin=-30+24*2.5; 317 330 318 331 clear fin 319 332 fin=-10+16*2.5; … … 323 336 else 324 337 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 325 end 338 end 326 339 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 327 340 if e==4; 328 co=colorbar; 341 co=colorbar; 329 342 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 330 343 end; 331 hold on; cartemonde1; 344 hold on; 345 cartemonde1; 332 346 set (gca,'tickDir','out'); 333 347 axis equal … … 338 352 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 339 353 pos_vert=e/10; 340 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 354 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 341 355 end; 342 356 343 figure(2); print -depsc2 composite_olr_EOF2_30100j_simulation_AS_part2.eps; 344 345 346 357 figure(2); 358 print -depsc2 composite_olr_EOF2_30100j_simulation_AS_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_CTL_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('CTL') … … 98 101 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 99 102 clear olr; 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 103 102 104 load eof1_CTL_1030.txt 103 105 104 106 % on met sous la forme annee mois 105 olr_eof=reshape(eof1_CTL_1030,122,29); clear eof1_CTL_1030; 107 olr_eof=reshape(eof1_CTL_1030,122,29); 108 clear eof1_CTL_1030; 106 109 107 110 % on calcule l ecart type sur la serie temporelle de l OLR 108 k=122*29; 111 k=122*29; 109 112 olrbis=reshape(olr_eof,k,1); 110 olrbis=std(olrbis); 113 olrbis=std(olrbis); 111 114 112 115 % intialisation des tableaux 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 116 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 117 olr_filtre_compomin=NaN*ones(50,31,64,128); 115 118 116 compteurmax=0; 119 compteurmax=0; 117 120 compteurmin=0; 118 121 119 for a=1:29; % boucle sur les annees 120 clear delta; 122 % boucle sur les annees 123 for a=1:29; 124 clear delta; 121 125 delta=zeros(122,1); 122 for b=1:122; % boucle sur les jours : on prepare avant 126 % boucle sur les jours : on prepare avant 127 for b=1:122; 123 128 if b>1; 124 129 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 125 130 end; 126 131 end; 127 for b=1:122; % boucle sur les jours 128 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 129 130 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 132 % boucle sur les jours 133 for b=1:122; 134 % 1ere condition (laisser une marge de 10) 135 if (b>20 && b<112); 136 137 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 138 compteurmax=compteurmax+1; 132 139 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 163 170 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 164 171 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 165 172 166 173 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 167 174 compteurmin=compteurmin+1; … … 202 209 end; 203 210 end; 204 end; 211 end; 205 212 end; 206 213 % on fait le test de Student … … 220 227 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 221 228 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 222 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 223 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 224 225 x=[-10:1:10]'; %' 226 227 figure(1); orient('landscape'); 228 229 lat=lat'; 229 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 230 clear olr_filtre_compomin; 231 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 232 clear olr_filtre_compomax; 233 234 x=[-10:1:10]'; 235 236 figure(1); 237 orient('landscape'); 238 239 lat=lat'; 230 240 lon=lon-180; 231 241 for e=1:7; … … 258 268 delta_olr_filtre_min(1,2)=50.0001; 259 269 fin=-30+24*2.5; 260 270 261 271 clear fin 262 272 fin=-10+16*2.5; … … 266 276 else 267 277 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 268 end 278 end 269 279 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 270 280 if e==4; 271 co=colorbar; 281 co=colorbar; 272 282 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 273 283 end; 274 hold on; cartemonde1; 284 hold on; 285 cartemonde1; 275 286 set (gca,'tickDir','out'); 276 287 axis equal 277 288 axis([-180 180 -20 40]); 278 if e==7; 289 if e==7; 279 290 title('OLR composite EOF1 1030j simulation CTL ','fontsize',8) ; 280 291 end 281 292 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 282 293 pos_vert=e/10; 283 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 294 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 284 295 end; 285 296 286 figure(1); print -depsc2 composite_olr_EOF1_1030j_simulation_CTL_part1.eps; 287 288 figure(2); orient('landscape'); 297 figure(1); 298 print -depsc2 composite_olr_EOF1_1030j_simulation_CTL_part1.eps; 299 300 figure(2); 301 orient('landscape'); 289 302 290 303 for e=1:7; … … 317 330 delta_olr_filtre_min(1,2)=50.0001; 318 331 fin=-30+24*2.5; 319 332 320 333 clear fin 321 334 fin=-10+16*2.5; … … 325 338 else 326 339 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 327 end 340 end 328 341 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 329 342 if e==4; 330 co=colorbar; 343 co=colorbar; 331 344 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 332 345 end; 333 hold on; cartemonde1; 346 hold on; 347 cartemonde1; 334 348 set (gca,'tickDir','out'); 335 349 axis equal … … 340 354 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 341 355 pos_vert=e/10; 342 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 356 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 343 357 end; 344 358 345 figure(2); print -depsc2 composite_olr_EOF1_1030j_simulation_CTL_part2.eps; 346 347 348 359 figure(2); 360 print -depsc2 composite_olr_EOF1_1030j_simulation_CTL_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_CTL_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('CTL') … … 98 101 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 99 102 clear olr; 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 103 102 104 load eof1_CTL_30100.txt 103 105 104 106 % on met sous la forme annee mois 105 olr_eof=reshape(eof1_CTL_30100,122,29); clear eof1_CTL_30100; 107 olr_eof=reshape(eof1_CTL_30100,122,29); 108 clear eof1_CTL_30100; 106 109 107 110 % on calcule l ecart type sur la serie temporelle de l OLR 108 k=122*29; 111 k=122*29; 109 112 olrbis=reshape(olr_eof,k,1); 110 olrbis=std(olrbis); 113 olrbis=std(olrbis); 111 114 112 115 % intialisation des tableaux 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 116 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 117 olr_filtre_compomin=NaN*ones(50,31,64,128); 115 118 116 compteurmax=0; 119 compteurmax=0; 117 120 compteurmin=0; 118 121 119 for a=1:29; % boucle sur les annees 120 clear delta; 122 % boucle sur les annees 123 for a=1:29; 124 clear delta; 121 125 delta=zeros(122,1); 122 for b=1:122; % boucle sur les jours : on prepare avant 126 % boucle sur les jours : on prepare avant 127 for b=1:122; 123 128 if b>1; 124 129 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 125 130 end; 126 131 end; 127 for b=1:122; % boucle sur les jours 128 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 129 130 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 132 % boucle sur les jours 133 for b=1:122; 134 % 1ere condition (laisser une marge de 10) 135 if (b>20 && b<112); 136 137 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 138 compteurmax=compteurmax+1; 132 139 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 163 170 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 164 171 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 165 172 166 173 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 167 174 compteurmin=compteurmin+1; … … 202 209 end; 203 210 end; 204 end; 211 end; 205 212 end; 206 213 % on fait le test de Student … … 220 227 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 221 228 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 222 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 223 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 224 225 x=[-10:1:10]'; %' 226 227 figure(1); orient('landscape'); 228 229 lat=lat'; 229 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 230 clear olr_filtre_compomin; 231 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 232 clear olr_filtre_compomax; 233 234 x=[-10:1:10]'; 235 236 figure(1); 237 orient('landscape'); 238 239 lat=lat'; 230 240 lon=lon-180; 231 241 for e=1:7; … … 258 268 delta_olr_filtre_min(1,2)=50.0001; 259 269 fin=-30+24*2.5; 260 270 261 271 clear fin 262 272 fin=-10+16*2.5; … … 266 276 else 267 277 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 268 end 278 end 269 279 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 270 280 if e==4; 271 co=colorbar; 281 co=colorbar; 272 282 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 273 283 end; 274 hold on; cartemonde1; 284 hold on; 285 cartemonde1; 275 286 set (gca,'tickDir','out'); 276 287 axis equal 277 288 axis([-180 180 -20 40]); 278 if e==7; 289 if e==7; 279 290 title('OLR composite EOF1 30100j simulation CTL ','fontsize',8) ; 280 291 end 281 292 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 282 293 pos_vert=e/10; 283 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 294 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 284 295 end; 285 296 286 figure(1); print -depsc2 composite_olr_EOF1_30100j_simulation_CTL_part1.eps; 287 288 figure(2); orient('landscape'); 297 figure(1); 298 print -depsc2 composite_olr_EOF1_30100j_simulation_CTL_part1.eps; 299 300 figure(2); 301 orient('landscape'); 289 302 290 303 for e=1:7; … … 317 330 delta_olr_filtre_min(1,2)=50.0001; 318 331 fin=-30+24*2.5; 319 332 320 333 clear fin 321 334 fin=-10+16*2.5; … … 325 338 else 326 339 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 327 end 340 end 328 341 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 329 342 if e==4; 330 co=colorbar; 343 co=colorbar; 331 344 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 332 345 end; 333 hold on; cartemonde1; 346 hold on; 347 cartemonde1; 334 348 set (gca,'tickDir','out'); 335 349 axis equal … … 340 354 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 341 355 pos_vert=e/10; 342 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 356 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 343 357 end; 344 358 345 figure(2); print -depsc2 composite_olr_EOF1_30100j_simulation_CTL_part2.eps; 346 347 348 359 figure(2); 360 print -depsc2 composite_olr_EOF1_30100j_simulation_CTL_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_CTL_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('CTL') … … 90 93 ncload('rlut_d.CtIV.200006-09.nc','rlut','lat','lon'); 91 94 olr(:,29,:,:)=rlut; clear rlut; 92 93 95 94 96 cd('..'); … … 98 100 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 99 101 clear olr; 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 102 103 load eof2_CTL_1030.txt 103 104 104 105 % on met sous la forme annee mois 105 olr_eof=reshape(eof2_CTL_1030,122,29); clear eof2_CTL_1030; 106 olr_eof=reshape(eof2_CTL_1030,122,29); 107 clear eof2_CTL_1030; 106 108 107 109 % on calcule l ecart type sur la serie temporelle de l OLR 108 k=122*29; 110 k=122*29; 109 111 olrbis=reshape(olr_eof,k,1); 110 olrbis=std(olrbis); 112 olrbis=std(olrbis); 111 113 112 114 % intialisation des tableaux 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 115 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 116 olr_filtre_compomin=NaN*ones(50,31,64,128); 115 117 116 compteurmax=0; 118 compteurmax=0; 117 119 compteurmin=0; 118 120 119 for a=1:29; % boucle sur les annees 120 clear delta; 121 % boucle sur les annees 122 for a=1:29; 123 clear delta; 121 124 delta=zeros(122,1); 122 for b=1:122; % boucle sur les jours : on prepare avant 125 % boucle sur les jours : on prepare avant 126 for b=1:122; 123 127 if b>1; 124 128 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 125 129 end; 126 130 end; 127 for b=1:122; % boucle sur les jours 128 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 129 130 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 % boucle sur les jours 132 for b=1:122; 133 % 1ere condition (laisser une marge de 10) 134 if (b>20 && b<112); 135 136 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 137 compteurmax=compteurmax+1; 132 138 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 163 169 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 164 170 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 165 171 166 172 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 167 173 compteurmin=compteurmin+1; … … 202 208 end; 203 209 end; 204 end; 210 end; 205 211 end; 206 212 % on fait le test de Student … … 220 226 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 221 227 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 222 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 223 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 224 225 x=[-10:1:10]'; %' 226 227 figure(1); orient('landscape'); 228 229 lat=lat'; 228 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 229 clear olr_filtre_compomin; 230 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 231 clear olr_filtre_compomax; 232 233 x=[-10:1:10]'; 234 235 figure(1); 236 orient('landscape'); 237 238 lat=lat'; 230 239 lon=lon-180; 231 240 for e=1:7; … … 258 267 delta_olr_filtre_min(1,2)=50.0001; 259 268 fin=-30+24*2.5; 260 269 261 270 clear fin 262 271 fin=-10+16*2.5; … … 266 275 else 267 276 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 268 end 277 end 269 278 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 270 279 if e==4; 271 co=colorbar; 280 co=colorbar; 272 281 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 273 282 end; 274 hold on; cartemonde1; 283 hold on; 284 cartemonde1; 275 285 set (gca,'tickDir','out'); 276 286 axis equal 277 287 axis([-180 180 -20 40]); 278 if e==7; 288 if e==7; 279 289 title('OLR composite EOF2 1030j simulation CTL ','fontsize',8) ; 280 290 end 281 291 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 282 292 pos_vert=e/10; 283 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 293 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 284 294 end; 285 295 286 figure(1); print -depsc2 composite_olr_EOF2_1030j_simulation_CTL_part1.eps; 287 288 figure(2); orient('landscape'); 296 figure(1); 297 print -depsc2 composite_olr_EOF2_1030j_simulation_CTL_part1.eps; 298 299 figure(2); 300 orient('landscape'); 289 301 290 302 for e=1:7; … … 317 329 delta_olr_filtre_min(1,2)=50.0001; 318 330 fin=-30+24*2.5; 319 331 320 332 clear fin 321 333 fin=-10+16*2.5; … … 325 337 else 326 338 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 327 end 339 end 328 340 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 329 341 if e==4; 330 co=colorbar; 342 co=colorbar; 331 343 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 332 344 end; 333 hold on; cartemonde1; 345 hold on; 346 cartemonde1; 334 347 set (gca,'tickDir','out'); 335 348 axis equal … … 340 353 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 341 354 pos_vert=e/10; 342 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 355 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 343 356 end; 344 357 345 figure(2); print -depsc2 composite_olr_EOF2_1030j_simulation_CTL_part2.eps; 346 347 348 358 figure(2); 359 print -depsc2 composite_olr_EOF2_1030j_simulation_CTL_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_CTL_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('CTL') … … 90 93 ncload('rlut_d.CtIV.200006-09.nc','rlut','lat','lon'); 91 94 olr(:,29,:,:)=rlut; clear rlut; 92 93 95 94 96 cd('..'); … … 98 100 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 99 101 clear olr; 100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%101 102 102 103 load eof2_CTL_30100.txt 103 104 104 105 % on met sous la forme annee mois 105 olr_eof=reshape(eof2_CTL_30100,122,29); clear eof2_CTL_30100; 106 olr_eof=reshape(eof2_CTL_30100,122,29); 107 clear eof2_CTL_30100; 106 108 107 109 % on calcule l ecart type sur la serie temporelle de l OLR 108 k=122*29; 110 k=122*29; 109 111 olrbis=reshape(olr_eof,k,1); 110 olrbis=std(olrbis); 112 olrbis=std(olrbis); 111 113 112 114 % intialisation des tableaux 113 olr_filtre_compomax=NaN*ones(50,31,64,128); 115 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 116 olr_filtre_compomin=NaN*ones(50,31,64,128); 115 117 116 compteurmax=0; 118 compteurmax=0; 117 119 compteurmin=0; 118 120 119 for a=1:29; % boucle sur les annees 120 clear delta; 121 % boucle sur les annees 122 for a=1:29; 123 clear delta; 121 124 delta=zeros(122,1); 122 for b=1:122; % boucle sur les jours : on prepare avant 125 % boucle sur les jours : on prepare avant 126 for b=1:122; 123 127 if b>1; 124 128 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 125 129 end; 126 130 end; 127 for b=1:122; % boucle sur les jours 128 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 129 130 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 % boucle sur les jours 132 for b=1:122; 133 % 1ere condition (laisser une marge de 10) 134 if (b>20 && b<112); 135 136 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 131 137 compteurmax=compteurmax+1; 132 138 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 163 169 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 164 170 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 165 171 166 172 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 167 173 compteurmin=compteurmin+1; … … 202 208 end; 203 209 end; 204 end; 210 end; 205 211 end; 206 212 % on fait le test de Student … … 220 226 % on fait la somme des valeurs de olr_filtreentiel sur le nbre d occurences 221 227 % on obtent un tableau de la forme (jours-avant-apres,lon,lat) 222 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 223 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 224 225 x=[-10:1:10]'; %' 226 227 figure(1); orient('landscape'); 228 229 lat=lat'; 228 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 229 clear olr_filtre_compomin; 230 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 231 clear olr_filtre_compomax; 232 233 x=[-10:1:10]'; 234 235 figure(1); 236 orient('landscape'); 237 238 lat=lat'; 230 239 lon=lon-180; 231 240 for e=1:7; … … 258 267 delta_olr_filtre_min(1,2)=50.0001; 259 268 fin=-30+24*2.5; 260 269 261 270 clear fin 262 271 fin=-10+16*2.5; … … 266 275 else 267 276 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 268 end 277 end 269 278 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 270 279 if e==4; 271 co=colorbar; 280 co=colorbar; 272 281 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 273 282 end; 274 hold on; cartemonde1; 283 hold on; 284 cartemonde1; 275 285 set (gca,'tickDir','out'); 276 286 axis equal 277 287 axis([-180 180 -20 40]); 278 if e==7; 279 title('OLR composite EOF2 30100j simulation CTL ','fontsize',8) ;288 if e==7; 289 title('OLR composite EOF2 30100j simulation CTL ','fontsize',8) ; 280 290 end 281 291 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 282 292 pos_vert=e/10; 283 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 293 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 284 294 end; 285 295 286 figure(1); print -depsc2 composite_olr_EOF2_30100j_simulation_CTL_part1.eps; 287 288 figure(2); orient('landscape'); 296 figure(1); 297 print -depsc2 composite_olr_EOF2_30100j_simulation_CTL_part1.eps; 298 299 figure(2); 300 orient('landscape'); 289 301 290 302 for e=1:7; … … 317 329 delta_olr_filtre_min(1,2)=50.0001; 318 330 fin=-30+24*2.5; 319 331 320 332 clear fin 321 333 fin=-10+16*2.5; … … 325 337 else 326 338 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 327 end 339 end 328 340 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 329 341 if e==4; 330 co=colorbar; 342 co=colorbar; 331 343 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 332 344 end; 333 hold on; cartemonde1; 345 hold on; 346 cartemonde1; 334 347 set (gca,'tickDir','out'); 335 348 axis equal … … 340 353 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 341 354 pos_vert=e/10; 342 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 355 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 343 356 end; 344 357 345 figure(2); print -depsc2 composite_olr_EOF2_30100j_simulation_CTL_part2.eps; 346 347 348 358 figure(2); 359 print -depsc2 composite_olr_EOF2_30100j_simulation_CTL_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_TR_eof1_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,29,64,128); 4 7 cd('TROP') … … 96 99 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 97 100 clear olr; 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%99 101 100 102 load eof1_TR_1030.txt 101 103 102 104 % on met sous la forme annee mois 103 olr_eof=reshape(eof1_TR_1030,122,29); clear eof1_TR_1030; 105 olr_eof=reshape(eof1_TR_1030,122,29); 106 clear eof1_TR_1030; 104 107 105 108 % on calcule l ecart type sur la serie temporelle de l OLR 106 k=122*29; 109 k=122*29; 107 110 olrbis=reshape(olr_eof,k,1); 108 olrbis=std(olrbis); 111 olrbis=std(olrbis); 109 112 110 113 % intialisation des tableaux 111 olr_filtre_compomax=NaN*ones(50,31,64,128); 114 olr_filtre_compomax=NaN*ones(50,31,64,128); 112 115 olr_filtre_compomin=NaN*ones(50,31,64,128); 113 116 114 compteurmax=0; 117 compteurmax=0; 115 118 compteurmin=0; 116 119 117 for a=1:29; % boucle sur les annees 118 clear delta; 120 % boucle sur les annees 121 for a=1:29; 122 clear delta; 119 123 delta=zeros(122,1); 120 for b=1:122; % boucle sur les jours : on prepare avant 124 % boucle sur les jours : on prepare avant 125 for b=1:122; 121 126 if b>1; 122 127 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 123 128 end; 124 129 end; 125 for b=1:122; % boucle sur les jours 126 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 127 128 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 130 % boucle sur les jours 131 for b=1:122; 132 % 1ere condition (laisser une marge de 10) 133 if (b>20 && b<112); 134 135 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>(olrbis)); 129 136 compteurmax=compteurmax+1; 130 137 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 161 168 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 162 169 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 163 170 164 171 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<(-olrbis)); 165 172 compteurmin=compteurmin+1; … … 200 207 end; 201 208 end; 202 end; 209 end; 203 210 end; 204 211 % on fait le test de Student … … 217 224 218 225 219 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 220 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 221 222 x=[-10:1:10]'; %' 223 224 figure(1); orient('landscape'); 225 226 lat=lat'; 226 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 227 clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 229 clear olr_filtre_compomax; 230 231 x=[-10:1:10]'; 232 233 figure(1); 234 orient('landscape'); 235 236 lat=lat'; 227 237 lon=lon-180; 228 238 for e=1:7; … … 255 265 delta_olr_filtre_min(1,2)=50.0001; 256 266 fin=-30+24*2.5; 257 267 258 268 clear fin 259 269 fin=-10+16*2.5; … … 263 273 else 264 274 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 265 end 275 end 266 276 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 267 277 if e==4; 268 co=colorbar; 278 co=colorbar; 269 279 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 270 280 end; 271 hold on; cartemonde1; 281 hold on; 282 cartemonde1; 272 283 set (gca,'tickDir','out'); 273 284 axis equal 274 285 axis([-180 180 -20 40]); 275 if e==7; 286 if e==7; 276 287 title('OLR composite EOF1 1030j simulation TR ','fontsize',8) ; 277 288 end 278 289 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 279 290 pos_vert=e/10; 280 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 291 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 281 292 end; 282 293 283 figure(1); print -depsc2 composite_olr_EOF1_1030j_simulation_TR_part1.eps; 284 285 figure(2); orient('landscape'); 294 figure(1); 295 print -depsc2 composite_olr_EOF1_1030j_simulation_TR_part1.eps; 296 297 figure(2); 298 orient('landscape'); 286 299 287 300 for e=1:7; … … 314 327 delta_olr_filtre_min(1,2)=50.0001; 315 328 fin=-30+24*2.5; 316 329 317 330 clear fin 318 331 fin=-10+16*2.5; … … 322 335 else 323 336 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 324 end 337 end 325 338 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 326 339 if e==4; 327 co=colorbar; 340 co=colorbar; 328 341 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 329 342 end; 330 hold on; cartemonde1; 343 hold on; 344 cartemonde1; 331 345 set (gca,'tickDir','out'); 332 346 axis equal … … 337 351 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 338 352 pos_vert=e/10; 339 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 353 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 340 354 end; 341 355 342 figure(2); print -depsc2 composite_olr_EOF1_1030j_simulation_TR_part2.eps; 343 344 345 356 figure(2); 357 print -depsc2 composite_olr_EOF1_1030j_simulation_TR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_TR_eof1_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,30,64,128); 4 7 cd('TROP') … … 99 102 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 100 103 clear olr; 101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%102 104 103 105 load eof1_TR_30100.txt 104 106 105 107 % on met sous la forme annee mois 106 olr_eof=reshape(eof1_TR_30100,122,30); clear eof1_TR_30100; 108 olr_eof=reshape(eof1_TR_30100,122,30); 109 clear eof1_TR_30100; 107 110 108 111 % on calcule l ecart type sur la serie temporelle de l OLR 109 k=122*30; 112 k=122*30; 110 113 olrbis=reshape(olr_eof,k,1); 111 olr_std=std(olrbis); 112 olr_moy=mean(olrbis); 114 olr_std=std(olrbis); 115 olr_moy=mean(olrbis); 113 116 114 117 for a=1:3660; … … 117 120 118 121 % intialisation des tableaux 119 olr_filtre_compomax=NaN*ones(50,31,64,128); 122 olr_filtre_compomax=NaN*ones(50,31,64,128); 120 123 olr_filtre_compomin=NaN*ones(50,31,64,128); 121 124 122 compteurmax=0; 125 compteurmax=0; 123 126 compteurmin=0; 124 127 125 for a=1:30; % boucle sur les annees 126 clear delta; 128 % boucle sur les annees 129 for a=1:30; 130 clear delta; 127 131 delta=zeros(122,1); 128 for b=1:122; % boucle sur les jours : on prepare avant 132 % boucle sur les jours : on prepare avant 133 for b=1:122; 129 134 if b>1; 130 135 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 131 136 end; 132 137 end; 133 for b=1:122; % boucle sur les jours 134 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 135 136 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 138 % boucle sur les jours 139 for b=1:122; 140 % 1ere condition (laisser une marge de 10) 141 if (b>20 && b<112); 142 143 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 137 144 compteurmax=compteurmax+1; 138 145 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 169 176 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 170 177 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 171 178 172 179 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<-1); 173 180 compteurmin=compteurmin+1; … … 208 215 end; 209 216 end; 210 end; 217 end; 211 218 end; 212 219 % on fait le test de Student … … 223 230 end 224 231 225 226 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 229 230 x=[-10:1:10]'; %' 231 232 figure(1); orient('landscape'); 233 234 lat=lat'; 232 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 233 clear olr_filtre_compomin; 234 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 235 clear olr_filtre_compomax; 236 237 x=[-10:1:10]'; 238 239 figure(1); 240 orient('landscape'); 241 242 lat=lat'; 235 243 lon=lon-180; 236 244 for e=1:7; … … 263 271 delta_olr_filtre_min(1,2)=50.0001; 264 272 fin=-30+24*2.5; 265 273 266 274 clear fin 267 275 fin=-10+16*2.5; … … 271 279 else 272 280 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 273 end 281 end 274 282 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 275 283 if e==4; 276 co=colorbar; 284 co=colorbar; 277 285 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 278 286 end; 279 hold on; cartemonde1; 287 hold on; 288 cartemonde1; 280 289 set (gca,'tickDir','out'); 281 290 axis equal 282 291 axis([-180 180 -20 40]); 283 if e==7; 292 if e==7; 284 293 title('OLR composite EOF1 30100j simulation TR ','fontsize',8) ; 285 294 end 286 295 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 287 296 pos_vert=e/10; 288 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 297 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 289 298 end; 290 299 291 figure(1); print -depsc2 composite_olr_EOF1_30100j_simulation_TR_part1.eps; 292 293 figure(2); orient('landscape'); 300 figure(1); 301 print -depsc2 composite_olr_EOF1_30100j_simulation_TR_part1.eps; 302 303 figure(2); 304 orient('landscape'); 294 305 295 306 for e=1:7; … … 322 333 delta_olr_filtre_min(1,2)=50.0001; 323 334 fin=-30+24*2.5; 324 335 325 336 clear fin 326 337 fin=-10+16*2.5; … … 330 341 else 331 342 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 332 end 343 end 333 344 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 334 345 if e==4; 335 co=colorbar; 346 co=colorbar; 336 347 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 337 348 end; 338 hold on; cartemonde1; 349 hold on; 350 cartemonde1; 339 351 set (gca,'tickDir','out'); 340 352 axis equal … … 345 357 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 346 358 pos_vert=e/10; 347 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 359 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 348 360 end; 349 361 350 figure(2); print -depsc2 composite_olr_EOF1_30100j_simulation_TR_part2.eps; 351 352 353 362 figure(2); 363 print -depsc2 composite_olr_EOF1_30100j_simulation_TR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_TR_eof2_1030.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,30,64,128); 4 7 cd('TROP') … … 99 102 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 100 103 clear olr; 101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%102 104 103 105 load eof2_TR_30100.txt 104 106 105 107 % on met sous la forme annee mois 106 olr_eof=reshape(eof2_TR_30100,122,30); clear eof2_TR_30100; 108 olr_eof=reshape(eof2_TR_30100,122,30); 109 clear eof2_TR_30100; 107 110 108 111 % on calcule l ecart type sur la serie temporelle de l OLR 109 k=122*30; 112 k=122*30; 110 113 olrbis=reshape(olr_eof,k,1); 111 olr_std=std(olrbis); 112 olr_moy=mean(olrbis); 114 olr_std=std(olrbis); 115 olr_moy=mean(olrbis); 113 116 114 117 for a=1:3660; … … 117 120 118 121 % intialisation des tableaux 119 olr_filtre_compomax=NaN*ones(50,31,64,128); 122 olr_filtre_compomax=NaN*ones(50,31,64,128); 120 123 olr_filtre_compomin=NaN*ones(50,31,64,128); 121 124 122 compteurmax=0; 125 compteurmax=0; 123 126 compteurmin=0; 124 127 125 for a=1:30; % boucle sur les annees 126 clear delta; 128 % boucle sur les annees 129 for a=1:30; 130 clear delta; 127 131 delta=zeros(122,1); 128 for b=1:122; % boucle sur les jours : on prepare avant 132 % boucle sur les jours : on prepare avant 133 for b=1:122; 129 134 if b>1; 130 135 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 131 136 end; 132 137 end; 133 for b=1:122; % boucle sur les jours 134 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 135 136 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 138 % boucle sur les jours 139 for b=1:122; 140 % 1ere condition (laisser une marge de 10) 141 if (b>20 && b<112); 142 143 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 137 144 compteurmax=compteurmax+1; 138 145 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 169 176 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 170 177 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 171 178 172 179 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<-1); 173 180 compteurmin=compteurmin+1; … … 208 215 end; 209 216 end; 210 end; 217 end; 211 218 end; 212 219 % on fait le test de Student … … 225 232 226 233 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 229 230 x=[-10:1:10]'; %' 231 232 figure(1); orient('landscape'); 233 234 lat=lat'; 234 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 235 clear olr_filtre_compomin; 236 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 237 clear olr_filtre_compomax; 238 239 x=[-10:1:10]'; 240 241 figure(1); 242 orient('landscape'); 243 244 lat=lat'; 235 245 lon=lon-180; 236 246 for e=1:7; … … 263 273 delta_olr_filtre_min(1,2)=50.0001; 264 274 fin=-30+24*2.5; 265 275 266 276 clear fin 267 277 fin=-10+16*2.5; … … 271 281 else 272 282 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 273 end 283 end 274 284 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 275 285 if e==4; 276 co=colorbar; 286 co=colorbar; 277 287 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 278 288 end; 279 hold on; cartemonde1; 289 hold on; 290 cartemonde1; 280 291 set (gca,'tickDir','out'); 281 292 axis equal 282 293 axis([-180 180 -20 40]); 283 if e==7; 294 if e==7; 284 295 title('OLR composite EOF2 30100j simulation TR ','fontsize',8) ; 285 296 end 286 297 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 287 298 pos_vert=e/10; 288 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 299 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 289 300 end; 290 301 291 figure(1); print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part1.eps; 292 293 figure(2); orient('landscape'); 302 figure(1); 303 print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part1.eps; 304 305 figure(2); 306 orient('landscape'); 294 307 295 308 for e=1:7; … … 322 335 delta_olr_filtre_min(1,2)=50.0001; 323 336 fin=-30+24*2.5; 324 337 325 338 clear fin 326 339 fin=-10+16*2.5; … … 330 343 else 331 344 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 332 end 345 end 333 346 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 334 347 if e==4; 335 co=colorbar; 348 co=colorbar; 336 349 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 337 350 end; 338 hold on; cartemonde1; 351 hold on; 352 cartemonde1; 339 353 set (gca,'tickDir','out'); 340 354 axis equal … … 345 359 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 346 360 pos_vert=e/10; 347 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 361 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 348 362 end; 349 363 350 figure(2); print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part2.eps; 351 352 353 364 figure(2); 365 print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part2.eps; -
trunk/src/SIMULS_IRCAAM/composite_olr_TR_eof2_30100.m
r15 r16 1 % 2 1 3 % initialisation 2 clear; close all; 4 clear; 5 close all; 3 6 olr=zeros(122,30,64,128); 4 7 cd('TROP') … … 99 102 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 100 103 clear olr; 101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%102 104 103 105 load eof2_TR_30100.txt 104 106 105 107 % on met sous la forme annee mois 106 olr_eof=reshape(eof2_TR_30100,122,30); clear eof2_TR_30100; 108 olr_eof=reshape(eof2_TR_30100,122,30); 109 clear eof2_TR_30100; 107 110 108 111 % on calcule l ecart type sur la serie temporelle de l OLR 109 k=122*30; 112 k=122*30; 110 113 olrbis=reshape(olr_eof,k,1); 111 olr_std=std(olrbis); 112 olr_moy=mean(olrbis); 114 olr_std=std(olrbis); 115 olr_moy=mean(olrbis); 113 116 114 117 for a=1:3660; … … 117 120 118 121 % intialisation des tableaux 119 olr_filtre_compomax=NaN*ones(50,31,64,128); 122 olr_filtre_compomax=NaN*ones(50,31,64,128); 120 123 olr_filtre_compomin=NaN*ones(50,31,64,128); 121 124 122 compteurmax=0; 125 compteurmax=0; 123 126 compteurmin=0; 124 127 125 for a=1:30; % boucle sur les annees 126 clear delta; 128 % boucle sur les annees 129 for a=1:30; 130 clear delta; 127 131 delta=zeros(122,1); 128 for b=1:122; % boucle sur les jours : on prepare avant 132 % boucle sur les jours : on prepare avant 133 for b=1:122; 129 134 if b>1; 130 135 delta(b)=olr_eof(b,a)-olr_eof(b-1,a); 131 136 end; 132 137 end; 133 for b=1:122; % boucle sur les jours 134 if (b>20 && b<112); % 1ere condition (laisser une marge de 10) 135 136 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 138 % boucle sur les jours 139 for b=1:122; 140 % 1ere condition (laisser une marge de 10) 141 if (b>20 && b<112); 142 143 if (delta(b+1)<0 && delta(b)>0 && olr_eof(b,a)>1); 137 144 compteurmax=compteurmax+1; 138 145 olr_filtre_compomax(compteurmax,1,:,:)=olr1(b-20,a,:,:); … … 169 176 olr_filtre_compomax(compteurmax,30,:,:)=olr1(b+9,a,:,:); 170 177 olr_filtre_compomax(compteurmax,31,:,:)=olr1(b+10,a,:,:); 171 178 172 179 elseif (delta(b+1)>0 && delta(b)<0 && olr_eof(b,a)<-1); 173 180 compteurmin=compteurmin+1; … … 208 215 end; 209 216 end; 210 end; 217 end; 211 218 end; 212 219 % on fait le test de Student … … 225 232 226 233 227 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); clear olr_filtre_compomin; 228 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); clear olr_filtre_compomax; 229 230 x=[-10:1:10]'; %' 231 232 figure(1); orient('landscape'); 233 234 lat=lat'; 234 olr_filtre_compomin1(:,:,:)=nanmean(olr_filtre_compomin); 235 clear olr_filtre_compomin; 236 olr_filtre_compomax1(:,:,:)=nanmean(olr_filtre_compomax); 237 clear olr_filtre_compomax; 238 239 x=[-10:1:10]'; 240 241 figure(1); 242 orient('landscape'); 243 244 lat=lat'; 235 245 lon=lon-180; 236 246 for e=1:7; … … 263 273 delta_olr_filtre_min(1,2)=50.0001; 264 274 fin=-30+24*2.5; 265 275 266 276 clear fin 267 277 fin=-10+16*2.5; … … 271 281 else 272 282 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 273 end 283 end 274 284 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 275 285 if e==4; 276 co=colorbar; 286 co=colorbar; 277 287 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 278 288 end; 279 hold on; cartemonde1; 289 hold on; 290 cartemonde1; 280 291 set (gca,'tickDir','out'); 281 292 axis equal 282 293 axis([-180 180 -20 40]); 283 if e==7; 294 if e==7; 284 295 title('OLR composite EOF2 30100j simulation TR ','fontsize',8) ; 285 296 end 286 297 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 287 298 pos_vert=e/10; 288 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 299 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 289 300 end; 290 301 291 figure(1); print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part1.eps; 292 293 figure(2); orient('landscape'); 302 figure(1); 303 print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part1.eps; 304 305 figure(2); 306 orient('landscape'); 294 307 295 308 for e=1:7; … … 322 335 delta_olr_filtre_min(1,2)=50.0001; 323 336 fin=-30+24*2.5; 324 337 325 338 clear fin 326 339 fin=-10+16*2.5; … … 330 343 else 331 344 set (gca,'XTick',[-180:60:180],'XTickLabel',[' ';' ';' ';' ';' ';' '],'fontname','Arial','fontsize',6); 332 end 345 end 333 346 set (gca,'YTick',[-10:10:30],'YTickLabel',['10S';' 0';'10N';'20N';'30N'],'fontname','Arial','fontsize',6); 334 347 if e==4; 335 co=colorbar; 348 co=colorbar; 336 349 set (co,'xtick',[-20:10:20],'xticklabel',[-20:10:20],'fontname','Arial','fontsize',6); 337 350 end; 338 hold on; cartemonde1; 351 hold on; 352 cartemonde1; 339 353 set (gca,'tickDir','out'); 340 354 axis equal … … 345 359 text(-270,10,['day = ',num2str(f-21)],'fontname','Arial','fontsize',10); 346 360 pos_vert=e/10; 347 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 361 set (gca,'position',[0.2 pos_vert 0.5 0.1]) 348 362 end; 349 363 350 figure(2); print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part2.eps; 351 352 353 364 figure(2); 365 print -depsc2 composite_olr_EOF2_30100j_simulation_TR_part2.eps; -
trunk/src/SIMULS_IRCAAM/correlations_eofs_olr_jas.m
r10 r16 1 %%%%%%%%%%%%%%% FICHIER OLR 2 % ouverture / lecture du fichier 3 clear 4 close all 5 6 % initialisation 7 clear; close all; 1 % 2 3 clear; 4 close all; 8 5 9 6 cd('..'); … … 30 27 olr1=zeros(siz,37,144); 31 28 olr1(:,:,1:72)=olr(:,:,73:144); 32 olr1(:,:,73:144)=olr(:,:,1:72); clear olr; 29 olr1(:,:,73:144)=olr(:,:,1:72); 30 clear olr; 33 31 34 32 % on permture le temps et l'espce … … 42 40 vecteur=zeros(siz,1); 43 41 for c=1:siz; 44 vecteur(c)=olr1(a,b,c); 42 vecteur(c)=olr1(a,b,c); 45 43 end 46 44 std_c=nanmean(vecteur); 47 45 for c=1:siz; 48 olr1(a,b,c)=olr1(a,b,c)-std_c; 49 end 46 olr1(a,b,c)=olr1(a,b,c)-std_c; 47 end 50 48 end 51 end; 52 53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 49 end; 50 54 51 % on met sous la forme longitude latitude jour 55 56 52 57 53 % on selectionne les mois d ete (attention aux annees bixestiles!) … … 153 149 %olr=zeros(37,144,92,28); 154 150 155 156 olr1=permute(olr,[3 1 2 4]); clear olr; 157 olr(:,:,:)=nanmean(olr1); 158 151 olr1=permute(olr,[3 1 2 4]); 152 clear olr; 153 olr(:,:,:)=nanmean(olr1); 159 154 160 155 load eof3_noaa_annuel.txt … … 167 162 correlations_eof3=zeros(37,144); 168 163 169 lat=lat(5:41)'; 164 lat=lat(5:41)'; 170 165 lon=lon-180; 171 166 … … 177 172 y(c)=olr(a,b,c); 178 173 end 179 clear coco; coco=corrcoef(y,eof1_noaa_annuel); 174 clear coco; 175 coco=corrcoef(y,eof1_noaa_annuel); 180 176 correlations_eof1(a,b)=coco(2,1); 181 clear coco; coco=corrcoef(y,eof2_noaa_annuel); 177 clear coco; 178 coco=corrcoef(y,eof2_noaa_annuel); 182 179 correlations_eof2(a,b)=coco(2,1); 183 clear coco; coco=corrcoef(y,eof3_noaa_annuel); 180 clear coco; 181 coco=corrcoef(y,eof3_noaa_annuel); 184 182 correlations_eof3(a,b)=coco(2,1); 185 183 186 end 184 end 187 185 end 188 186 189 187 subplot(3,1,1); 190 correlations_eof1(1,1)=1.0001; correlations_eof1(1,2)=-1.0001; 188 correlations_eof1(1,1)=1.0001; 189 correlations_eof1(1,2)=-1.0001; 191 190 192 191 contourf(lon,lat,correlations_eof1,[-1:0.1:1],'LineStyle','none'); … … 206 205 subplot(3,1,2); 207 206 palette 208 correlations_eof2(1,1)=1.0001; correlations_eof2(1,2)=-1.0001; 207 correlations_eof2(1,1)=1.0001; 208 correlations_eof2(1,2)=-1.0001; 209 209 contourf(lon,lat,correlations_eof2,[-1:0.1:1],'LineStyle','none'); 210 210 colorbar; … … 224 224 subplot(3,1,3); 225 225 palette; 226 correlations_eof3(1,1)=1.0001; correlations_eof3(1,2)=-1.0001; 226 correlations_eof3(1,1)=1.0001; 227 correlations_eof3(1,2)=-1.0001; 227 228 contourf(lon,lat,correlations_eof3,[-1:0.1:1],'LineStyle','none'); 228 229 set (gca,'tickDir','out'); -
trunk/src/SIMULS_IRCAAM/correlations_eofs_olr_jas_20.m
r10 r16 1 %%%%%%%%%%%%%%% FICHIER OLR 2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 5 2 6 3 % initialisation 7 clear; close all; 4 clear; 5 close all; 8 6 9 7 cd('..'); … … 30 28 olr1=zeros(siz,37,144); 31 29 olr1(:,:,1:72)=olr(:,:,73:144); 32 olr1(:,:,73:144)=olr(:,:,1:72); clear olr; 30 olr1(:,:,73:144)=olr(:,:,1:72); 31 clear olr; 33 32 34 33 % on permture le temps et l'espce … … 42 41 vecteur=zeros(siz,1); 43 42 for c=1:siz; 44 vecteur(c)=olr1(a,b,c); 43 vecteur(c)=olr1(a,b,c); 45 44 end 46 45 std_c=nanmean(vecteur); 47 46 for c=1:siz; 48 olr1(a,b,c)=olr1(a,b,c)-std_c; 49 end 47 olr1(a,b,c)=olr1(a,b,c)-std_c; 48 end 50 49 end 51 end; 52 53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 50 end; 51 54 52 % on met sous la forme longitude latitude jour 55 56 53 57 54 % on selectionne les mois d ete (attention aux annees bixestiles!) … … 153 150 %olr=zeros(37,144,92,28); 154 151 155 156 olr1=permute(olr,[3 1 2 4]); clear olr; 157 olr(:,:,:)=nanmean(olr1); 158 152 olr1=permute(olr,[3 1 2 4]); 153 clear olr; 154 olr(:,:,:)=nanmean(olr1); 159 155 160 156 load eof3_noaa_annuel_20.txt … … 167 163 correlations_eof3=zeros(37,144); 168 164 169 lat=lat(5:41)'; 165 lat=lat(5:41)'; 170 166 lon=lon-180; 171 167 … … 177 173 y(c)=olr(a,b,c); 178 174 end 179 clear coco; coco=corrcoef(y,eof1_noaa_annuel_20); 175 clear coco; 176 coco=corrcoef(y,eof1_noaa_annuel_20); 180 177 correlations_eof1(a,b)=coco(2,1); 181 clear coco; coco=corrcoef(y,eof2_noaa_annuel_20); 178 clear coco; 179 coco=corrcoef(y,eof2_noaa_annuel_20); 182 180 correlations_eof2(a,b)=coco(2,1); 183 clear coco; coco=corrcoef(y,eof3_noaa_annuel_20); 181 clear coco; 182 coco=corrcoef(y,eof3_noaa_annuel_20); 184 183 correlations_eof3(a,b)=coco(2,1); 185 end 184 end 186 185 end 187 186 188 187 subplot(3,1,1); 189 correlations_eof1(1,1)=1.0001; correlations_eof1(1,2)=-1.0001; 188 correlations_eof1(1,1)=1.0001; 189 correlations_eof1(1,2)=-1.0001; 190 190 191 191 contourf(lon,lat,correlations_eof1,[-1:0.1:1],'LineStyle','none'); … … 205 205 subplot(3,1,2); 206 206 palette 207 correlations_eof2(1,1)=1.0001; correlations_eof2(1,2)=-1.0001; 207 correlations_eof2(1,1)=1.0001; 208 correlations_eof2(1,2)=-1.0001; 208 209 contourf(lon,lat,correlations_eof2,[-1:0.1:1],'LineStyle','none'); 209 210 colorbar; … … 223 224 subplot(3,1,3); 224 225 palette; 225 correlations_eof3(1,1)=1.0001; correlations_eof3(1,2)=-1.0001; 226 correlations_eof3(1,1)=1.0001; 227 correlations_eof3(1,2)=-1.0001; 226 228 contourf(lon,lat,correlations_eof3,[-1:0.1:1],'LineStyle','none'); 227 229 set (gca,'tickDir','out'); -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf10-30.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_1030_ircaam.mat'); 34 29 save('eof_1030_ircaam.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_as.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf10-30_as.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_1030_ircaam_as.mat'); 34 29 save('eof_1030_ircaam_as.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_ctl.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf10-30_ctl.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_1030_ircaam_ctl.mat'); 34 29 save('eof_1030_ircaam_ctl.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_ctl_clim.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf10-30_clim_sst.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_1030_ircaam_ctl_clim.mat'); 34 29 save('eof_1030_ircaam_ctl_clim.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_tr.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf10-30_tr.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_1030_ircaam_tr.mat'); 34 29 save('eof_1030_ircaam_tr.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf30-100.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 % calcul de la matrice de covariance … … 15 16 for b=1:360; 16 17 clear e d covaria; 17 e=olr(b,:); 18 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 19 20 covaria=cov(e,d); 20 21 vaudou(a,b)=covaria(2,1); … … 25 26 [C,L]=eig(vaudou); 26 27 27 % spatialisation du premier mode28 29 30 % serie temporelle de la premiere vP31 32 28 delete('eof_30100_ircaam.mat'); 33 29 save('eof_30100_ircaam.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_as.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf30-100_as.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 % calcul de la matrice de covariance … … 15 16 for b=1:360; 16 17 clear e d covaria; 17 e=olr(b,:); 18 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 19 20 covaria=cov(e,d); 20 21 vaudou(a,b)=covaria(2,1); … … 25 26 [C,L]=eig(vaudou); 26 27 27 % spatialisation du premier mode28 29 30 % serie temporelle de la premiere vP31 32 28 delete('eof_30100_ircaam_as.mat'); 33 29 save('eof_30100_ircaam_as.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_ctl.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf30-100_ctl.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 13 % calcul de la matrice de covariance 14 14 vaudou=zeros(360,360); … … 16 16 for b=1:360; 17 17 clear e d covaria; 18 e=olr(b,:); 19 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 20 20 covaria=cov(e,d); 21 21 vaudou(a,b)=covaria(2,1); … … 26 26 [C,L]=eig(vaudou); 27 27 28 % spatialisation du premier mode29 30 31 % serie temporelle de la premiere vP32 33 28 delete('eof_30100_ircaam_ctl.mat'); 34 29 save('eof_30100_ircaam_ctl.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_tr.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrf30-100_tr.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr=reshape(v,360,3538); clear v; 10 olr=reshape(v,360,3538); 11 clear v; 11 12 12 13 % calcul de la matrice de covariance … … 15 16 for b=1:360; 16 17 clear e d covaria; 17 e=olr(b,:); 18 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 19 20 covaria=cov(e,d); 20 21 vaudou(a,b)=covaria(2,1); … … 25 26 [C,L]=eig(vaudou); 26 27 27 % spatialisation du premier mode28 29 30 % serie temporelle de la premiere vP31 32 28 delete('eof_30100_ircaam_tr.mat'); 33 29 save('eof_30100_ircaam_tr.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_noaa_annuel_jas.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 3 clear 4 close all 1 % 2 3 clear; 4 close all; 5 5 6 6 fid=fopen('olrint.80.dat','r'); … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr1=reshape(v,25,17,10500); clear v;11 10 olr1=reshape(v,25,17,10500); 11 clear v; 12 12 13 13 % on selectionne les mois d ete (attention aux annees bixestiles!) … … 101 101 clear siz28 siz28bis; 102 102 103 104 105 103 clear olr1; 106 104 107 105 olr=reshape(olr,425,92,28); 108 olr1=permute(olr,[2 1 3]); clear olr 109 olr(:,:)=mean(olr1); clear olr1; 106 olr1=permute(olr,[2 1 3]); 107 clear olr; 108 olr(:,:)=mean(olr1); 109 clear olr1; 110 110 111 111 % calcul de la matrice de covariance … … 114 114 for b=1:425; 115 115 clear e d covaria; 116 e=olr(b,:); 117 d=olr(a,:); 116 e=olr(b,:); 117 d=olr(a,:); 118 118 covaria=cov(e,d); 119 119 vaudou(a,b)=covaria(2,1); … … 124 124 [C,L]=eig(vaudou); 125 125 126 % spatialisation du premier mode127 128 129 % serie temporelle de la premiere vP130 131 126 delete('eof_olr_noaa_annuel_jas_1020.mat'); 132 127 save('eof_olr_noaa_annuel_jas_1020.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_noaa_annuel_jas_1_8.m
r10 r16 1 clear 2 close all 1 % 2 3 clear; 4 close all; 3 5 4 6 fid=fopen('olrf1-8_annuel.dat','r'); … … 6 8 v=fread(fid,siz,'float'); 7 9 fclose(fid); 8 olr=reshape(v,425,28); clear v; 10 olr=reshape(v,425,28); 11 clear v; 9 12 10 13 % calcul de la matrice de covariance … … 13 16 for b=1:425; 14 17 clear e d covaria; 15 e=olr(b,:); 16 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 17 20 covaria=cov(e,d); 18 21 vaudou(a,b)=covaria(2,1); … … 23 26 [C,L]=eig(vaudou); 24 27 25 % spatialisation du premier mode26 27 28 % serie temporelle de la premiere vP29 30 28 delete('eof_noaa_annuel_1_8.mat'); 31 29 save('eof_noaa_annuel_1_8.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_noaa_annuel_jas_20.m
r10 r16 1 % %%%%%%%%%%%%%% FICHIER OLR2 % ouverture / lecture du fichier 1 % 2 3 3 clear; 4 4 close all; … … 8 8 v=fread(fid,siz,'float'); 9 9 fclose(fid); 10 olr1=reshape(v,25,17,10500); clear v; 10 olr1=reshape(v,25,17,10500); 11 clear v; 11 12 12 13 cd ('/usr/temp/seglod/SIMULS_IRCAAM/'); … … 102 103 clear siz28 siz28bis; 103 104 104 105 106 105 clear olr1; 107 106 … … 110 109 olr=reshape(olr,325,92,28); 111 110 112 olr1=permute(olr,[2 1 3]); clear olr 113 olr(:,:)=mean(olr1); clear olr1; 111 olr1=permute(olr,[2 1 3]); 112 clear olr; 113 olr(:,:)=mean(olr1); 114 clear olr1; 114 115 115 116 % calcul de la matrice de covariance … … 118 119 for b=1:325; 119 120 clear e d covaria; 120 e=olr(b,:); 121 d=olr(a,:); 121 e=olr(b,:); 122 d=olr(a,:); 122 123 covaria=cov(e,d); 123 124 vaudou(a,b)=covaria(2,1); … … 128 129 [C,L]=eig(vaudou); 129 130 130 % spatialisation du premier mode131 132 133 % serie temporelle de la premiere vP134 135 131 delete('eof_olr_noaa_annuel_jas_1020.mat'); 136 132 save('eof_olr_noaa_annuel_jas_1020.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/eof_olr_noaa_annuel_jas_8_28.m
r10 r16 1 clear 2 close all 1 % 2 3 clear; 4 close all; 3 5 4 6 fid=fopen('olrf8-28_annuel.dat','r'); … … 6 8 v=fread(fid,siz,'float'); 7 9 fclose(fid); 8 olr=reshape(v,425,28); clear v; 10 olr=reshape(v,425,28); 11 clear v; 9 12 10 13 % calcul de la matrice de covariance … … 13 16 for b=1:425; 14 17 clear e d covaria; 15 e=olr(b,:); 16 d=olr(a,:); 18 e=olr(b,:); 19 d=olr(a,:); 17 20 covaria=cov(e,d); 18 21 vaudou(a,b)=covaria(2,1); … … 23 26 [C,L]=eig(vaudou); 24 27 25 % spatialisation du premier mode26 27 28 % serie temporelle de la premiere vP29 30 28 delete('eof_noaa_annuel_8_28.mat'); 31 29 save('eof_noaa_annuel_8_28.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/palette.m
r10 r16 1 % 2 1 3 palette2=zeros(20,3); 2 4 palette2(20,:)= [0.2 0 0]; % noir -
trunk/src/SIMULS_IRCAAM/palette1.m
r10 r16 1 % 2 1 3 palette2=zeros(20,3); 2 4 palette2(20,:)= [0.2 0 0]; % noir -
trunk/src/SIMULS_IRCAAM/palettecomplet.m
r10 r16 1 % 2 1 3 palette2=zeros(20,3); 2 4 palette2(20,:)= [0.2 0 0]; % noir -
trunk/src/SIMULS_IRCAAM/prepare_hgt500_tr.m
r10 r16 1 % 2 1 3 % initialisation 2 clear; close all;3 % 122 9 64 128 4 clear; 5 close all; 4 6 5 7 cd('GEOPOT_TROP'); … … 125 127 cd('..'); 126 128 save hgt500_trop.mat hgt500; 127 128 129 130 -
trunk/src/SIMULS_IRCAAM/prepare_olr_AFR_annuel.m
r15 r16 1 % 1 2 2 3 % ncload('rlut_d.AfNQIVIV.197106-09.nc') … … 4 5 % Name Size Bytes Class Attributes 5 6 % 6 % ans 1x4 268 cell 7 % lat 64x1 512 double 8 % lon 128x1 1024 double 9 % rlut 122x64x128 7995392 double 10 % time 122x1 976 double 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 11 12 % 12 13 … … 15 16 16 17 olr=zeros(122,30,64,128); 17 18 18 19 19 ncload('rlut_d.AfNQIVIV.197106-09.nc','rlut'); … … 111 111 olr1(:,:,:,1:64)=olr(:,:,:,65:128); 112 112 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 113 clear olr 114 olr=olr1; clear olr1; 113 clear olr; 114 olr=olr1; 115 clear olr1; 115 116 olr=olr(:,:,29:43,54:77); 116 117 taille=(43-29+1)*(77-54+1); … … 118 119 % taille de OLR 119 120 % 122 28 14 24 120 olr=olr(31:122,:,:,:); 121 olr1(:,:,:)=mean(olr); clear olr; 122 olr=permute(olr1,[3 2 1]); clear olr1; 121 olr=olr(31:122,:,:,:); 122 olr1(:,:,:)=mean(olr); 123 clear olr; 124 olr=permute(olr1,[3 2 1]); 125 clear olr1; 123 126 olr=reshape(olr,360,30); 124 127 for a=1:360; … … 130 133 end 131 134 132 133 134 135 % calcul de la matrice de covariance 135 136 vaudou=zeros(360,360); … … 137 138 for b=1:360; 138 139 clear e d covaria; 139 e=olr(b,:); 140 d=olr(a,:); 140 e=olr(b,:); 141 d=olr(a,:); 141 142 covaria=cov(e,d); 142 143 vaudou(a,b)=covaria(2,1); … … 147 148 [C,L]=eig(vaudou); 148 149 149 % spatialisation du premier mode150 151 152 % serie temporelle de la premiere vP153 154 150 delete('eof_annuel_AFR.mat'); 155 151 save('eof_annuel_AFR.mat','C','L','olr') -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre.m
r10 r16 1 % 1 2 2 3 % initialisation 3 clear; close all; 4 clear; 5 close all; 4 6 5 7 fid=fopen('olrint.80.dat','r'); … … 7 9 v=fread(fid,siz,'float'); 8 10 fclose(fid); 9 olr1=reshape(v,25,17,10500); clear v;10 11 olr1=reshape(v,25,17,10500); 12 clear v; 11 13 12 14 % on selectionne les mois d ete (attention aux annees bixestiles!) … … 100 102 clear siz28 siz28bis; 101 103 102 103 104 104 clear olr1; 105 105 106 106 olr=reshape(olr,425,92,28); 107 olr1=permute(olr,[2 1 3]); clear olr 108 olr(:,:)=mean(olr1); clear olr1; 107 olr1=permute(olr,[2 1 3]); 108 clear olr; 109 olr(:,:)=mean(olr1); 110 clear olr1; 109 111 %olr=reshape(olr,25,17,28); 110 112 % size olr : 425 28 -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_AFR.m
r15 r16 1 % 2 1 3 % ce programme prepare les fichiers d'OLR de simulations IRCAAM CNRM 2 4 % pour le programme de filtrage … … 5 7 % Name Size Bytes Class Attributes 6 8 % 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 9 % ans 1x4 268 cell 10 % lat 64x1 512 double 11 % lon 128x1 1024 double 12 % rlut 122x64x128 7995392 double 13 % time 122x1 976 double 12 14 % 13 15 … … 16 18 17 19 olr=zeros(122,29,64,128); 18 19 20 20 21 ncload('rlut_d.AfNQIVIV.197106-09.nc','rlut'); … … 110 111 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 111 112 clear olr 112 olr=olr1; clear olr1; 113 olr=olr1; 114 clear olr1; 113 115 olr=olr(:,:,29:43,54:77); 114 116 taille=(43-29+1)*(77-54+1); 115 117 tps=122*29; 116 118 % taille de OLR 117 % 122 28 14 24 119 % 122 28 14 24 118 120 olr=reshape(olr,3538,15,24); 119 121 olr=permute(olr,[3 2 1]); -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_AS.m
r15 r16 1 % 2 1 3 % ce programme prepare les fichiers d'OLR de simulations IRCAAM CNRM 2 4 % pour le programme de filtrage … … 5 7 % Name Size Bytes Class Attributes 6 8 % 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 9 % ans 1x4 268 cell 10 % lat 64x1 512 double 11 % lon 128x1 1024 double 12 % rlut 122x64x128 7995392 double 13 % time 122x1 976 double 12 14 % 13 15 … … 111 113 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 112 114 clear olr; 113 olr=olr1; clear olr1; 115 olr=olr1; 116 clear olr1; 114 117 olr=olr(:,:,29:43,54:77); 115 118 taille=(43-29+1)*(77-54+1); 116 119 tps=122*29; 117 120 % taille de OLR 118 % 122 28 14 24 121 % 122 28 14 24 119 122 olr=reshape(olr,3538,15,24); 120 123 olr=permute(olr,[3 2 1]); -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_CTL.m
r10 r16 1 % 2 1 3 % ce programme prepare les fichiers d'OLR de simulations IRCAAM CNRM 2 4 % pour le programme de filtrage … … 5 7 % Name Size Bytes Class Attributes 6 8 % 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 9 % ans 1x4 268 cell 10 % lat 64x1 512 double 11 % lon 128x1 1024 double 12 % rlut 122x64x128 7995392 double 13 % time 122x1 976 double 12 14 % 13 15 … … 111 113 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 112 114 clear olr 113 olr=olr1; clear olr1; 115 olr=olr1; 116 clear olr1; 114 117 olr=olr(:,:,29:43,54:77); 115 118 taille=(43-29+1)*(77-54+1); 116 119 tps=122*29; 117 120 % taille de OLR 118 % 122 28 14 24 121 % 122 28 14 24 119 122 olr=reshape(olr,3538,15,24); 120 123 olr=permute(olr,[3 2 1]); -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_CTL_clim.m
r10 r16 1 % 2 1 3 % ce programme prepare les fichiers d'OLR de simulations IRCAAM CNRM 2 4 % pour le programme de filtrage … … 5 7 % Name Size Bytes Class Attributes 6 8 % 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % rlut 122x64x128 7995392 double 11 % time 122x1 976 double 9 % ans 1x4 268 cell 10 % lat 64x1 512 double 11 % lon 128x1 1024 double 12 % rlut 122x64x128 7995392 double 13 % time 122x1 976 double 12 14 % 13 15 … … 111 113 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 112 114 clear olr 113 olr=olr1; clear olr1; 115 olr=olr1; 116 clear olr1; 114 117 olr=olr(:,:,29:43,54:77); 115 118 taille=(43-29+1)*(77-54+1); 116 119 tps=122*29; 117 120 % taille de OLR 118 % 122 28 14 24 121 % 122 28 14 24 119 122 olr=reshape(olr,3538,15,24); 120 123 olr=permute(olr,[3 2 1]); -
trunk/src/SIMULS_IRCAAM/prepare_olr_filtre_TR.m
r15 r16 1 % 2 1 3 % ce programme prepare les fichiers d'OLR de simulations IRCAAM CNRM 2 4 % pour le programme de filtrage … … 4 6 % Name Size Bytes Class Attributes 5 7 % 6 % ans 1x4 268 cell 7 % lat 64x1 512 double 8 % lon 128x1 1024 double 9 % rlut 122x64x128 7995392 double 10 % time 122x1 976 double 8 % ans 1x4 268 cell 9 % lat 64x1 512 double 10 % lon 128x1 1024 double 11 % rlut 122x64x128 7995392 double 12 % time 122x1 976 double 11 13 % 12 14 … … 110 112 olr1(:,:,:,65:128)=olr(:,:,:,1:64); 111 113 clear olr; 112 olr=olr1; clear olr1; 114 olr=olr1; 115 clear olr1; 113 116 olr=olr(:,:,29:43,54:77); 114 117 taille=(43-29+1)*(77-54+1); 115 118 tps=122*29; 116 119 % taille de OLR 117 % 122 28 14 24 120 % 122 28 14 24 118 121 olr=reshape(olr,3538,15,24); 119 122 olr=permute(olr,[3 2 1]); -
trunk/src/SIMULS_IRCAAM/prepare_pluie_AFR_annuel.m
r15 r16 1 % 1 2 2 3 % ncload('pr_d.AfNQIVIV.197106-09.nc') … … 4 5 % Name Size Bytes Class Attributes 5 6 % 6 % ans 1x4 268 cell 7 % lat 64x1 512 double 8 % lon 128x1 1024 double 9 % pr 122x64x128 7995392 double 10 % time 122x1 976 double 7 % ans 1x4 268 cell 8 % lat 64x1 512 double 9 % lon 128x1 1024 double 10 % pr 122x64x128 7995392 double 11 % time 122x1 976 double 11 12 % 12 13 … … 112 113 pluie1(:,:,:,65:128)=pluie(:,:,:,1:64); 113 114 clear pluie 114 pluie=pluie1; clear pluie1; 115 pluie=pluie1; 116 clear pluie1; 115 117 pluie=pluie(:,:,29:43,54:77); 116 118 taille=(43-29+1)*(77-54+1); … … 118 120 % taille de PLUIE 119 121 % 122 28 14 24 120 pluie=pluie(31:122,:,:,:); 121 pluie1(:,:,:)=mean(pluie); clear pluie; 122 pluie=permute(pluie1,[3 2 1]); clear pluie1; 122 pluie=pluie(31:122,:,:,:); 123 pluie1(:,:,:)=mean(pluie); 124 clear pluie; 125 pluie=permute(pluie1,[3 2 1]); 126 clear pluie1; 123 127 pluie=reshape(pluie,360,30); 124 128 for a=1:360; … … 137 141 for b=1:360; 138 142 clear e d covaria; 139 e=pluie(b,:); 140 d=pluie(a,:); 143 e=pluie(b,:); 144 d=pluie(a,:); 141 145 covaria=cov(e,d); 142 146 vaudou(a,b)=covaria(2,1); … … 147 151 [C,L]=eig(vaudou); 148 152 149 % spatialisation du premier mode150 151 152 % serie temporelle de la premiere vP153 154 153 delete('eof_pluie_annuel_AFR.mat'); 155 154 save('eof_pluie_annuel_AFR.mat','C','L','pluie'); -
trunk/src/SIMULS_IRCAAM/time_serie_afr_1030.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 26 28 for a=1:29; 27 29 if a<12; 28 figure(1); subplot(4,3,a); 30 figure(1); 31 subplot(4,3,a); 29 32 elseif a<23; 30 figure(2); subplot(4,3,a-11); 33 figure(2); 34 subplot(4,3,a-11); 31 35 else 32 figure(3); subplot(4,3,a-22); 36 figure(3); 37 subplot(4,3,a-22); 33 38 end 34 clear koro1 39 clear koro1 35 40 debut=(a-1)*122+1; 36 41 fin=a*122; 37 42 koro1=time_serie_olr1(debut:fin); 38 43 koro2=time_serie_olr2(debut:fin); 39 clear x; x=[1:122]'; 44 clear x; 45 x=[1:122]'; 40 46 plot(x,koro1,'r'); 41 47 hold on … … 53 59 set (gca,'tickDir','out'); 54 60 axis([1 122 -3 3]); 55 61 56 62 57 63 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 59 65 end; 60 66 61 figure(1); print -depsc2 time_serie_eof_afr_1030a.eps; 62 figure(2); print -depsc2 time_serie_eof_afr_1030b.eps; 63 figure(3); print -depsc2 time_serie_eof_afr_1030c.eps; 64 67 figure(1); 68 print -depsc2 time_serie_eof_afr_1030a.eps; 69 figure(2); 70 print -depsc2 time_serie_eof_afr_1030b.eps; 71 figure(3); 72 print -depsc2 time_serie_eof_afr_1030c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_afr_30100.m
r15 r16 1 % 2 1 3 clear; 2 4 … … 4 6 olr=olr'; 5 7 PC1=olr*C; 6 7 8 8 9 %%%%%%% cronique de la VP1 … … 25 26 for a=1:29; 26 27 if a<12; 27 figure(1); subplot(4,3,a); 28 figure(1); 29 subplot(4,3,a); 28 30 elseif a<23; 29 figure(2); subplot(4,3,a-11); 31 figure(2); 32 subplot(4,3,a-11); 30 33 else 31 figure(3); subplot(4,3,a-22); 34 figure(3); 35 subplot(4,3,a-22); 32 36 end 33 clear koro1 37 clear koro1 34 38 debut=(a-1)*122+1; 35 39 fin=a*122; 36 40 koro1=time_serie_olr1(debut:fin); 37 41 koro2=time_serie_olr2(debut:fin); 38 clear x; x=[1:122]'; 42 clear x; 43 x=[1:122]'; 39 44 plot(x,koro1,'r'); 40 45 hold on … … 52 57 set (gca,'tickDir','out'); 53 58 axis([1 122 -3 3]); 54 59 55 60 56 61 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 58 63 end; 59 64 60 figure(1); print -depsc2 time_serie_eof_afr_30100a.eps; 61 figure(2); print -depsc2 time_serie_eof_afr_30100b.eps; 62 figure(3); print -depsc2 time_serie_eof_afr_30100c.eps; 63 65 figure(1); 66 print -depsc2 time_serie_eof_afr_30100a.eps; 67 figure(2); 68 print -depsc2 time_serie_eof_afr_30100b.eps; 69 figure(3); 70 print -depsc2 time_serie_eof_afr_30100c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_as_1030.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 27 29 for a=1:29; 28 30 if a<12; 29 figure(1); subplot(4,3,a); 31 figure(1); 32 subplot(4,3,a); 30 33 elseif a<23; 31 figure(2); subplot(4,3,a-11); 34 figure(2); 35 subplot(4,3,a-11); 32 36 else 33 figure(3); subplot(4,3,a-22); 37 figure(3); 38 subplot(4,3,a-22); 34 39 end 35 clear koro1 40 clear koro1; 36 41 debut=(a-1)*122+1; 37 42 fin=a*122; 38 43 koro1=time_serie_olr1(debut:fin); 39 44 koro2=time_serie_olr2(debut:fin); 40 clear x; x=[1:122]'; 45 clear x; 46 x=[1:122]'; 41 47 plot(x,koro1,'r'); 42 48 hold on … … 54 60 set (gca,'tickDir','out'); 55 61 axis([1 122 -3 3]); 56 62 57 63 58 64 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 60 66 end; 61 67 62 figure(1); print -depsc2 time_serie_eof_as_1030a.eps; 63 figure(2); print -depsc2 time_serie_eof_as_1030b.eps; 64 figure(3); print -depsc2 time_serie_eof_as_1030c.eps; 65 68 figure(1); 69 print -depsc2 time_serie_eof_as_1030a.eps; 70 figure(2); 71 print -depsc2 time_serie_eof_as_1030b.eps; 72 figure(3); 73 print -depsc2 time_serie_eof_as_1030c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_as_30100.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 27 29 for a=1:29; 28 30 if a<12; 29 figure(1); subplot(4,3,a); 31 figure(1); 32 subplot(4,3,a); 30 33 elseif a<23; 31 figure(2); subplot(4,3,a-11); 34 figure(2); 35 subplot(4,3,a-11); 32 36 else 33 figure(3); subplot(4,3,a-22); 37 figure(3); 38 subplot(4,3,a-22); 34 39 end 35 clear koro1 40 clear koro1 36 41 debut=(a-1)*122+1; 37 42 fin=a*122; 38 43 koro1=time_serie_olr1(debut:fin); 39 44 koro2=time_serie_olr2(debut:fin); 40 clear x; x=[1:122]'; 45 clear x; 46 x=[1:122]'; 41 47 plot(x,koro1,'r'); 42 48 hold on … … 54 60 set (gca,'tickDir','out'); 55 61 axis([1 122 -3 3]); 56 62 57 63 58 64 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 60 66 end; 61 67 62 figure(1); print -depsc2 time_serie_eof_as_30100a.eps; 63 figure(2); print -depsc2 time_serie_eof_as_30100b.eps; 64 figure(3); print -depsc2 time_serie_eof_as_30100c.eps; 65 68 figure(1); 69 print -depsc2 time_serie_eof_as_30100a.eps; 70 figure(2); 71 print -depsc2 time_serie_eof_as_30100b.eps; 72 figure(3); 73 print -depsc2 time_serie_eof_as_30100c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_ctl_1030.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 26 28 for a=1:29; 27 29 if a<12; 28 figure(1); subplot(4,3,a); 30 figure(1); 31 subplot(4,3,a); 29 32 elseif a<23; 30 figure(2); subplot(4,3,a-11); 33 figure(2); 34 subplot(4,3,a-11); 31 35 else 32 figure(3); subplot(4,3,a-22); 36 figure(3); 37 subplot(4,3,a-22); 33 38 end 34 clear koro1 39 clear koro1 35 40 debut=(a-1)*122+1; 36 41 fin=a*122; 37 42 koro1=time_serie_olr1(debut:fin); 38 43 koro2=time_serie_olr2(debut:fin); 39 clear x; x=[1:122]'; 44 clear x; 45 x=[1:122]'; 40 46 plot(x,koro1,'r'); 41 47 hold on … … 53 59 set (gca,'tickDir','out'); 54 60 axis([1 122 -3 3]); 55 61 56 62 57 63 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 59 65 end; 60 66 61 figure(1); print -depsc2 time_serie_eof_ctl_1030a.eps; 62 figure(2); print -depsc2 time_serie_eof_ctl_1030b.eps; 63 figure(3); print -depsc2 time_serie_eof_ctl_1030c.eps; 64 67 figure(1); 68 print -depsc2 time_serie_eof_ctl_1030a.eps; 69 figure(2); 70 print -depsc2 time_serie_eof_ctl_1030b.eps; 71 figure(3); 72 print -depsc2 time_serie_eof_ctl_1030c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_ctl_30100.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 26 28 for a=1:29; 27 29 if a<12; 28 figure(1); subplot(4,3,a); 30 figure(1); 31 subplot(4,3,a); 29 32 elseif a<23; 30 figure(2); subplot(4,3,a-11); 33 figure(2); 34 subplot(4,3,a-11); 31 35 else 32 figure(3); subplot(4,3,a-22); 36 figure(3); 37 subplot(4,3,a-22); 33 38 end 34 clear koro1 39 clear koro1 35 40 debut=(a-1)*122+1; 36 41 fin=a*122; 37 42 koro1=time_serie_olr1(debut:fin); 38 43 koro2=time_serie_olr2(debut:fin); 39 clear x; x=[1:122]'; 44 clear x; 45 x=[1:122]'; 40 46 plot(x,koro1,'r'); 41 47 hold on … … 53 59 set (gca,'tickDir','out'); 54 60 axis([1 122 -3 3]); 55 61 56 62 57 63 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 59 65 end; 60 66 61 figure(1); print -depsc2 time_serie_eof_ctl_30100a.eps; 62 figure(2); print -depsc2 time_serie_eof_ctl_30100b.eps; 63 figure(3); print -depsc2 time_serie_eof_ctl_30100c.eps; 64 67 figure(1); 68 print -depsc2 time_serie_eof_ctl_30100a.eps; 69 figure(2); 70 print -depsc2 time_serie_eof_ctl_30100b.eps; 71 figure(3); 72 print -depsc2 time_serie_eof_ctl_30100c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_noaa_annuel.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 38 40 koro3=time_serie_olr3; 39 41 40 clear x; x=[1979:2006]'; 42 clear x; 43 x=[1979:2006]'; 41 44 aa=plot(x,-koro1,'r'); 42 45 hold on … … 54 57 set (gca,'tickDir','out'); 55 58 print -depsc2 time_serie_eof_noaa_annuel.eps; 56 -
trunk/src/SIMULS_IRCAAM/time_serie_noaa_annuel_20.m
r15 r16 1 % 1 2 clear; 2 3 close all; … … 37 38 koro3=time_serie_olr3; 38 39 39 clear x; x=[1979:2006]'; 40 clear x; 41 x=[1979:2006]'; 40 42 aa=plot(x,-koro1,'r'); 41 43 hold on … … 53 55 set (gca,'tickDir','out'); 54 56 print -depsc2 time_serie_eof_noaa_annuel_20.eps; 55 -
trunk/src/SIMULS_IRCAAM/time_serie_tr_1030.m
r15 r16 1 % 1 2 clear; 2 3 close all; … … 26 27 for a=1:29; 27 28 if a<12; 28 figure(1); subplot(4,3,a); 29 figure(1); 30 subplot(4,3,a); 29 31 elseif a<23; 30 figure(2); subplot(4,3,a-11); 32 figure(2); 33 subplot(4,3,a-11); 31 34 else 32 figure(3); subplot(4,3,a-22); 35 figure(3); 36 subplot(4,3,a-22); 33 37 end 34 clear koro1 38 clear koro1 35 39 debut=(a-1)*122+1; 36 40 fin=a*122; 37 41 koro1=time_serie_olr1(debut:fin); 38 42 koro2=time_serie_olr2(debut:fin); 39 clear x; x=[1:122]'; 43 clear x; 44 x=[1:122]'; 40 45 plot(x,koro1,'r'); 41 46 hold on … … 53 58 set (gca,'tickDir','out'); 54 59 axis([1 122 -3 3]); 55 60 56 61 57 62 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 59 64 end; 60 65 61 figure(1); print -depsc2 time_serie_eof_tr_1030a.eps; 62 figure(2); print -depsc2 time_serie_eof_tr_1030b.eps; 63 figure(3); print -depsc2 time_serie_eof_tr_1030c.eps; 64 66 figure(1); 67 print -depsc2 time_serie_eof_tr_1030a.eps; 68 figure(2); 69 print -depsc2 time_serie_eof_tr_1030b.eps; 70 figure(3); 71 print -depsc2 time_serie_eof_tr_1030c.eps; -
trunk/src/SIMULS_IRCAAM/time_serie_tr_30100.m
r15 r16 1 % 2 1 3 clear; 2 4 close all; … … 26 28 for a=1:29; 27 29 if a<12; 28 figure(1); subplot(4,3,a); 30 figure(1); 31 subplot(4,3,a); 29 32 elseif a<23; 30 figure(2); subplot(4,3,a-11); 33 figure(2); 34 subplot(4,3,a-11); 31 35 else 32 figure(3); subplot(4,3,a-22); 36 figure(3); 37 subplot(4,3,a-22); 33 38 end 34 clear koro1 39 clear koro1 35 40 debut=(a-1)*122+1; 36 41 fin=a*122; 37 42 koro1=time_serie_olr1(debut:fin); 38 43 koro2=time_serie_olr2(debut:fin); 39 clear x; x=[1:122]'; 44 clear x; 45 x=[1:122]'; 40 46 plot(x,koro1,'r'); 41 47 hold on … … 53 59 set (gca,'tickDir','out'); 54 60 axis([1 122 -3 3]); 55 61 56 62 57 63 set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); … … 59 65 end; 60 66 61 figure(1); print -depsc2 time_serie_eof_tr_30100a.eps; 62 figure(2); print -depsc2 time_serie_eof_tr_30100b.eps; 63 figure(3); print -depsc2 time_serie_eof_tr_30100c.eps; 64 67 figure(1); 68 print -depsc2 time_serie_eof_tr_30100a.eps; 69 figure(2); 70 print -depsc2 time_serie_eof_tr_30100b.eps; 71 figure(3); 72 print -depsc2 time_serie_eof_tr_30100c.eps;
Note: See TracChangeset
for help on using the changeset viewer.