Changeset 16 for trunk/src/mode_sahelien/reconstitution_1025.m
- Timestamp:
- 01/06/09 10:53:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mode_sahelien/reconstitution_1025.m
r15 r16 1 % 1 2 2 clear; close all; 3 clear; 4 close all; 3 5 4 6 %lon=[-30:2.5:30], lat=[-10:2.5:30] … … 9 11 10 12 cosa=zeros(4,3416,425); 11 for a=1:4; % boucle sur les VP 13 % boucle sur les VP 14 for a=1:4; 12 15 for b=1:3416 % boucle sur le temps 13 16 for c=1:425 % boucle sur l espace … … 17 20 end; 18 21 19 cosa1(:,:)=cosa(1,:,:); 20 cosa1=reshape(cosa1,3416,25,17); 22 cosa1(:,:)=cosa(1,:,:); 23 cosa1=reshape(cosa1,3416,25,17); 21 24 22 cosa2(:,:)=cosa(2,:,:); 23 cosa2=reshape(cosa2,3416,25,17); 25 cosa2(:,:)=cosa(2,:,:); 26 cosa2=reshape(cosa2,3416,25,17); 24 27 25 cosabis=cosa(2:3,:,:); 26 cosa23(:,:)=sum(cosabis); clear cosabis; 27 cosa23=reshape(cosa23,3416,25,17); 28 cosabis=cosa(2:3,:,:); 29 cosa23(:,:)=sum(cosabis); 30 clear cosabis; 31 cosa23=reshape(cosa23,3416,25,17); 28 32 29 cosabis=cosa(2:4,:,:); 30 cosa24(:,:)=sum(cosabis); clear cosabis; 31 cosa24=reshape(cosa24,3416,25,17); 33 cosabis=cosa(2:4,:,:); 34 cosa24(:,:)=sum(cosabis); 35 clear cosabis; 36 cosa24=reshape(cosa24,3416,25,17); 32 37 33 figure(1); orient('landscape') 34 figure(2); orient('landscape') 35 figure(3); orient('landscape') 38 figure(1); 39 orient('landscape') 40 figure(2); 41 orient('landscape') 42 figure(3); 43 orient('landscape') 36 44 37 45 % On selectionne la demaine geographique 38 46 39 47 % la latitude : 5N (7) 12.5N (10) 40 % la longitude : 10W (9) 10E(17) 41 lat1=7; lat2=10; 42 lon1=9; lon2=17; 48 % la longitude : 10W (9) 10E(17) 49 lat1=7; 50 lat2=10; 51 lon1=9; 52 lon2=17; 43 53 taille=(lat2-lat1+1)*(lon2-lon1+1); 44 54 45 46 c osa23=cosa23(:,lon1:lon2,lat1:lat2); clear cosi2;47 cosa23=reshape(cosa23,3416,taille); 55 cosa23=cosa23(:,lon1:lon2,lat1:lat2); 56 clear cosi2; 57 cosa23=reshape(cosa23,3416,taille); 48 58 cosa23=cosa23'; 49 cosa23=mean(cosa23); 59 cosa23=mean(cosa23); 50 60 cosa23=cosa23'; 51 61 save eof23_1025.txt cosa23 -ascii; 52 62 cosa23=reshape(cosa23,122,28); 53 63 54 cosa24=cosa24(:,lon1:lon2,lat1:lat2); clear cosi2; 55 cosa24=reshape(cosa24,3416,taille); 64 cosa24=cosa24(:,lon1:lon2,lat1:lat2); 65 clear cosi2; 66 cosa24=reshape(cosa24,3416,taille); 56 67 cosa24=cosa24'; 57 cosa24=mean(cosa24); 68 cosa24=mean(cosa24); 58 69 cosa24=cosa24'; 59 70 save eof24_1025.txt cosa24 -ascii; … … 66 77 67 78 % on met sous la forme annee mois 68 ind_olr=reshape(v,122,29); clear v; 79 ind_olr=reshape(v,122,29); 80 clear v; 69 81 70 82 % on selectionne les annees de 1979 a 2006 71 ind_olr=ind_olr(:,1:28); 72 73 83 ind_olr=ind_olr(:,1:28); 74 84 75 85 for a=1:28; 76 86 if a<12; 77 figure(1); subplot(4,3,a); 87 figure(1); 88 subplot(4,3,a); 78 89 elseif a<24 79 figure(2); subplot(4,3,a-11); 90 figure(2); 91 subplot(4,3,a-11); 80 92 else 81 figure(3); subplot(4,3,a-23); 93 figure(3); 94 subplot(4,3,a-23); 82 95 end 83 96 y2=ind_olr(:,a); 84 97 y4=cosa24(:,a); 85 x=[1:122]'; 86 plot(x,y2); hold on; 98 x=[1:122]'; 99 plot(x,y2); 100 hold on; 87 101 plot(x,y4,'k'); 88 102 y5=zeros(122,1); 89 103 plot(x,y5,'k:'); 90 104 91 105 title(a+1978,'Fontsize',8); 92 106 if a==2; … … 110 124 set (gca,'XTick',[10:10:122],'XTickLabel',[10:10:122],'fontname','Arial','fontsize',6); 111 125 112 end; 126 end; 113 127 114 figure(1); print -depsc2 reconstitution1_eof234_1025.eps; 115 figure(2); print -depsc2 reconstitution2_eof234_1025.eps; 116 figure(3); print -depsc2 reconstitution3_eof234_1025.eps; 117 128 figure(1); 129 print -depsc2 reconstitution1_eof234_1025.eps; 130 figure(2); 131 print -depsc2 reconstitution2_eof234_1025.eps; 132 figure(3); 133 print -depsc2 reconstitution3_eof234_1025.eps;
Note: See TracChangeset
for help on using the changeset viewer.