Ignore:
Timestamp:
01/28/09 13:00:57 (15 years ago)
Author:
pinsard
Message:

parametrisation of composite_olr_phase....m; some unparametrized files in obsolete directory

File:
1 copied

Legend:

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

    r38 r42  
    1 % 
    2  
    3 % initialisation 
    4 clear; 
    5  
    6 ncload('olr.day.mean.nc'); 
     1function composite_olr_phase_num(phase_num) 
     2% composite_olr_phase_num ++explication between 1 and 8 
     3 
     4%+ 
     5% module 
     6% ====== 
     7% 
     8% ++ 
     9% 
     10% DESCRIPTION 
     11% =========== 
     12% 
     13% From ``olr.day.mean.nc`` and phase\ *phase_num*\ .txt, composite_olr_phase_num  
     14% compute ++, plot ++ 
     15% 
     16% CAUTIONS 
     17% ======== 
     18% 
     19% Need Statistics_Toolbox because of nanmean 
     20% 
     21% can't work with octave because of ncload and nanmean 
     22% 
     23% EXAMPLES 
     24% ======== 
     25% 
     26% Following line read olr.day.mean.nc and phase\ *phase_num*\ .txt, compute ++, 
     27% plot ++  
     28% :: 
     29%  
     30% >> composite_olr_phase_num(1); 
     31% 
     32% SEE ALSO 
     33% ======== 
     34% 
     35% 
     36% lagged_correlations_eof2_eof3_1030.m_ 
     37% 
     38% .. _lagged_correlations_eof2_eof3_1030.m : lagged_correlations_eof2_eof3_1030.m.html 
     39% 
     40% composite_olr_phase.m_ 
     41% 
     42% .. _composite_olr_phase.m : composite_olr_phase.m.html 
     43% 
     44% time_serie_histog_phase.m_ 
     45% 
     46% .. _time_serie_histog_phase.m : time_serie_histog_phase.m.html 
     47% 
     48% time_serie_histog_phase_num.m_ 
     49% 
     50% .. _time_serie_histog_phase_num.m : time_serie_histog_phase_num.m.html 
     51% 
     52% TODO 
     53% ==== 
     54% 
     55% improve description 
     56% 
     57% improve file pb 
     58% 
     59% use return function 
     60% 
     61% externalize time selection on olr.day.mean.nc 
     62% 
     63% test at the beginning if Statistics_Toolbox  available 
     64% 
     65% test at the beginning if octave is running 
     66% 
     67% EVOLUTIONS 
     68% ========== 
     69% 
     70% $Id$ 
     71% 
     72% - fplod 2009-01-28T10:38:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     73% 
     74%   * created from composite_olr_phase8.m to replace it as well as 
     75%     composite_olr_phase[1-7].m 
     76% 
     77%- 
     78 
     79global IRCAAM_ID; 
     80global IRCAAM_OD; 
     81 
     82phase_num_min=1; 
     83phase_num_max=8; 
     84 
     85if nargin==1 
     86 % phase_num must be greater or equal to 1 and lower or equal to 8 
     87 if ((phase_num < phase_num_min) || (phase_num > phase_num_max)) 
     88  disp(['phase_num_min = ', int2str(phase_num_min)]); 
     89  disp(['phase_num_max = ', int2str(phase_num_max)]); 
     90  error('eee : phase_num must be between phase_num_min and phase_num_max'); 
     91 end 
     92else 
     93  usage='usage : composite_olr_phase_num(phase_num)'; 
     94  disp(usage); 
     95  error('eee : wrong arguments numbers') 
     96end 
     97 
     98fullfilename=[IRCAAM_ID,'olr.day.mean.nc']; 
     99ncload(fullfilename); 
     100clear fullfilename; 
    7101 
    8102% taille 12327x73x144 1er juin 1974-31 decembre2007 
     
    151245clear olr2; 
    152246 
    153 status=load('phase8.txt'); 
    154 phase8=status; 
     247fullfilename=[IRCAAM_OD,'phase',int2str(phase_num),'.txt']; 
     248status=load(fullfilename); 
     249clear fullfilename; 
     250 
     251phase=status; 
    155252clear status; 
    156 phase8=reshape(phase8,122,28,3); 
     253phase=reshape(phase,122,28,3); 
    157254olr_filtre_compomax=zeros(90,21,144); 
    158255compteurmax=0; 
     
    164261      % 1ere condition (laisser une marge de 10) 
    165262      if (b>11 && b<112); 
    166          if phase8(b,a,1)==1; 
     263         if phase(b,a,1)==1; 
    167264            compteurmax=compteurmax+1; 
    168265            olr_filtre_compomax(compteurmax,:,:)=olr1(b,a,:,:); 
Note: See TracChangeset for help on using the changeset viewer.