Ignore:
Timestamp:
01/06/09 10:53:18 (15 years ago)
Author:
pinsard
Message:

remove trailing blanks, split lines with multiple statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mode_sahelien/reconstitution_1025.m

    r15 r16  
     1% 
    12 
    2 clear; close all; 
     3clear; 
     4close all; 
    35 
    46%lon=[-30:2.5:30], lat=[-10:2.5:30] 
     
    911 
    1012cosa=zeros(4,3416,425); 
    11 for a=1:4; % boucle sur les VP 
     13% boucle sur les VP 
     14for a=1:4; 
    1215      for b=1:3416 % boucle sur le temps 
    1316          for c=1:425 % boucle sur l espace 
     
    1720end; 
    1821 
    19 cosa1(:,:)=cosa(1,:,:);   
    20 cosa1=reshape(cosa1,3416,25,17);  
     22cosa1(:,:)=cosa(1,:,:); 
     23cosa1=reshape(cosa1,3416,25,17); 
    2124 
    22 cosa2(:,:)=cosa(2,:,:);   
    23 cosa2=reshape(cosa2,3416,25,17);  
     25cosa2(:,:)=cosa(2,:,:); 
     26cosa2=reshape(cosa2,3416,25,17); 
    2427 
    25 cosabis=cosa(2:3,:,:);  
    26 cosa23(:,:)=sum(cosabis); clear cosabis; 
    27 cosa23=reshape(cosa23,3416,25,17);  
     28cosabis=cosa(2:3,:,:); 
     29cosa23(:,:)=sum(cosabis); 
     30clear cosabis; 
     31cosa23=reshape(cosa23,3416,25,17); 
    2832 
    29 cosabis=cosa(2:4,:,:);  
    30 cosa24(:,:)=sum(cosabis); clear cosabis; 
    31 cosa24=reshape(cosa24,3416,25,17);  
     33cosabis=cosa(2:4,:,:); 
     34cosa24(:,:)=sum(cosabis); 
     35clear cosabis; 
     36cosa24=reshape(cosa24,3416,25,17); 
    3237 
    33 figure(1); orient('landscape') 
    34 figure(2); orient('landscape') 
    35 figure(3); orient('landscape') 
     38figure(1); 
     39orient('landscape') 
     40figure(2); 
     41orient('landscape') 
     42figure(3); 
     43orient('landscape') 
    3644 
    3745% On selectionne la demaine geographique 
    3846 
    3947% 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) 
     49lat1=7; 
     50lat2=10; 
     51lon1=9; 
     52lon2=17; 
    4353taille=(lat2-lat1+1)*(lon2-lon1+1); 
    4454 
    45  
    46 cosa23=cosa23(:,lon1:lon2,lat1:lat2); clear cosi2; 
    47 cosa23=reshape(cosa23,3416,taille);  
     55cosa23=cosa23(:,lon1:lon2,lat1:lat2); 
     56clear cosi2; 
     57cosa23=reshape(cosa23,3416,taille); 
    4858cosa23=cosa23'; 
    49 cosa23=mean(cosa23);  
     59cosa23=mean(cosa23); 
    5060cosa23=cosa23'; 
    5161save eof23_1025.txt cosa23 -ascii; 
    5262cosa23=reshape(cosa23,122,28); 
    5363 
    54 cosa24=cosa24(:,lon1:lon2,lat1:lat2); clear cosi2; 
    55 cosa24=reshape(cosa24,3416,taille);  
     64cosa24=cosa24(:,lon1:lon2,lat1:lat2); 
     65clear cosi2; 
     66cosa24=reshape(cosa24,3416,taille); 
    5667cosa24=cosa24'; 
    57 cosa24=mean(cosa24);  
     68cosa24=mean(cosa24); 
    5869cosa24=cosa24'; 
    5970save eof24_1025.txt cosa24 -ascii; 
     
    6677 
    6778% on met sous la forme annee mois 
    68 ind_olr=reshape(v,122,29); clear v;  
     79ind_olr=reshape(v,122,29); 
     80clear v; 
    6981 
    7082% on selectionne les annees de 1979 a 2006 
    71 ind_olr=ind_olr(:,1:28);  
    72  
    73  
     83ind_olr=ind_olr(:,1:28); 
    7484 
    7585for a=1:28; 
    7686     if a<12; 
    77         figure(1); subplot(4,3,a); 
     87        figure(1); 
     88        subplot(4,3,a); 
    7889     elseif a<24 
    79         figure(2); subplot(4,3,a-11); 
     90        figure(2); 
     91        subplot(4,3,a-11); 
    8092    else 
    81         figure(3); subplot(4,3,a-23); 
     93        figure(3); 
     94        subplot(4,3,a-23); 
    8295     end 
    8396     y2=ind_olr(:,a); 
    8497     y4=cosa24(:,a); 
    85      x=[1:122]';  
    86      plot(x,y2); hold on; 
     98     x=[1:122]'; 
     99     plot(x,y2); 
     100     hold on; 
    87101     plot(x,y4,'k'); 
    88102     y5=zeros(122,1); 
    89103     plot(x,y5,'k:'); 
    90       
     104 
    91105     title(a+1978,'Fontsize',8); 
    92106     if a==2; 
     
    110124   set (gca,'XTick',[10:10:122],'XTickLabel',[10:10:122],'fontname','Arial','fontsize',6); 
    111125 
    112 end;  
     126end; 
    113127 
    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  
     128figure(1); 
     129print -depsc2 reconstitution1_eof234_1025.eps; 
     130figure(2); 
     131print -depsc2 reconstitution2_eof234_1025.eps; 
     132figure(3); 
     133print -depsc2 reconstitution3_eof234_1025.eps; 
Note: See TracChangeset for help on using the changeset viewer.