Changeset 41 for trunk


Ignore:
Timestamp:
01/28/09 11:09:56 (15 years ago)
Author:
pinsard
Message:

parametrisation of time_serie_histog_phase....m

Location:
trunk/src/mode_sahelien
Files:
9 edited
1 copied

Legend:

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

    r24 r41  
     1function time_serie_histog_phase() 
     2% time_serie_histog_phase plot WTs distribution++ 
     3%+ 
     4% module 
     5% ====== 
    16% 
     7% ++ 
     8% 
     9% DESCRIPTION 
     10% =========== 
     11% 
     12% From occu.txt and phase[1-8].txt, time_serie_histog_phase plots 
     13% for each WT and each phase distribution ++. 
     14% 2 Postscript files time_serie_type_tps_phase14.eps and  
     15% time_serie_type_tps_phase58.eps are written. 
     16% 
     17% EXAMPLES 
     18% ======== 
     19% 
     20% :: 
     21% 
     22% >> time_serie_histog_phase(); 
     23% 
     24% SEE ALSO 
     25% ======== 
     26% 
     27% 
     28% composite_olr_phase1.m_ 
     29% 
     30% .. _composite_olr_phase1.m : composite_olr_phase1.m.html 
     31% 
     32% time_serie_histog_phase_num.m_ 
     33% 
     34% .. _time_serie_histog_phase_num.m : time_serie_histog_phase_num.m.html 
     35% 
     36% TODO 
     37% ==== 
     38% 
     39% TODO 
     40% ==== 
     41% 
     42% improve description 
     43% 
     44% improve file pb 
     45% 
     46% use return function 
     47% 
     48% EVOLUTIONS 
     49% ========== 
     50% 
     51% $Id$ 
     52% 
     53% - fplod 2009-01-28T09:35:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
     54%    
     55%   * replace calls to time_serie_histog_phase[1-8] by calls to 
     56%     time_serie_histog_phase_num 
     57%   * add comments in ReST 
     58%   * EPS files in IRCAAM_OD 
     59%- 
     60 
     61global IRCAAM_OD; 
    262 
    363close all; 
    464figure(1); 
    565orient('landscape') 
    6 time_serie_histog_phase1; 
    7 time_serie_histog_phase2; 
    8 time_serie_histog_phase3; 
    9 time_serie_histog_phase4; 
     66phase_num=1; 
     67time_serie_histog_phase_num(phase_num) 
     68phase_num=phase_num+1; 
     69time_serie_histog_phase_num(phase_num) 
     70phase_num=phase_num+1; 
     71time_serie_histog_phase_num(phase_num) 
     72phase_num=phase_num+1; 
     73time_serie_histog_phase_num(phase_num) 
    1074 
    1175figure(2); 
    1276orient('landscape') 
    13 time_serie_histog_phase5; 
    14 time_serie_histog_phase6; 
    15 time_serie_histog_phase7; 
    16 time_serie_histog_phase8; 
     77phase_num=phase_num+1; 
     78time_serie_histog_phase_num(phase_num) 
     79phase_num=phase_num+1; 
     80time_serie_histog_phase_num(phase_num) 
     81phase_num=phase_num+1; 
     82time_serie_histog_phase_num(phase_num) 
     83phase_num=phase_num+1; 
     84time_serie_histog_phase_num(phase_num) 
     85 
     86clear phase_num: 
    1787 
    1888figure(1); 
    19 print('-depsc2','time_serie_type_tps_phase14.eps'); 
     89fullfilename=[IRCAAM_OD,'time_serie_type_tps_phase14.eps']; 
     90print('-depsc2',fullfilename); 
     91clear fullfilename; 
     92 
    2093figure(2); 
    21 print('-depsc2','time_serie_type_tps_phase58.eps'); 
     94fullfilename=[IRCAAM_OD,'time_serie_type_tps_phase58.eps']; 
     95print('-depsc2',fullfilename); 
     96clear fullfilename; 
  • trunk/src/mode_sahelien/time_serie_histog_phase1.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8%  
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase2.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase3.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase4.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase5.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase6.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase7.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase8.m

    r24 r41  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-01-28T08:54:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_histog_phase_num.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/mode_sahelien/time_serie_histog_phase_num.m

    r38 r41  
    1 % 
    2  
    3 clear; 
    4 status=load('phase1.txt'); 
    5 phase1=status; 
     1function time_serie_histog_phase_num(phase_num) 
     2% time_serie_histog_phase_num ++explication between 1 and 8 
     3 
     4%+ 
     5% module 
     6% ====== 
     7% 
     8% ++ 
     9% 
     10% DESCRIPTION 
     11% =========== 
     12% 
     13% From occu.txt and phase``phase_num``.txt, time_serie_histog_phase_num plots 
     14% for each WT ++. 
     15% 
     16% EXAMPLES 
     17% ======== 
     18% 
     19% Following line read phase1.txt and occu.txt and plots for each WT ++ 
     20% :: 
     21% 
     22% >> time_serie_histog_phase_num(1); 
     23% 
     24% SEE ALSO 
     25% ======== 
     26% 
     27% 
     28% composite_olr_phase1.m_ 
     29% 
     30% .. _composite_olr_phase1.m : composite_olr_phase1.m.html 
     31% 
     32% time_serie_histog_phase.m_ 
     33% 
     34% .. _time_serie_histog_phase.m : time_serie_histog_phase.m.html 
     35% 
     36% TODO 
     37% ==== 
     38% 
     39% improve description 
     40% 
     41% improve file pb 
     42% 
     43% use return function 
     44% 
     45% EVOLUTIONS 
     46% ========== 
     47% 
     48% $Id$ 
     49% 
     50% - fplod 2009-01-28T09:01:45Z aedon.locean-ipsl.upmc.fr (Darwin) 
     51% 
     52%   * created from time_serie_histog_phase1.m to replace it as well as 
     53%     time_serie_histog_phase[2-8].m 
     54% 
     55%- 
     56 
     57global IRCAAM_ID; 
     58 
     59phase_num_min=1; 
     60phase_num_max=8; 
     61 
     62if nargin==1 
     63 % phase_num must be greater or equal to 1 and lower or equal to 8 
     64 if ((phase_num < phase_num_min) || (phase_num > phase_num_max)) 
     65  disp(['phase_num_min = ', int2str(phase_num_min)]); 
     66  disp(['phase_num_max = ', int2str(phase_num_max)]); 
     67  error('eee : phase_num must be between phase_num_min and phase_num_max'); 
     68 end 
     69else 
     70  usage='usage : time_serie_histog_phase_num(phase_num)'; 
     71  disp(usage); 
     72  error('eee : wrong arguments numbers') 
     73end 
     74 
     75fullfilename=[IRCAAM_ID,'phase',int2str(phase_num),'.txt']; 
     76status=load(fullfilename); 
     77clear fullfilename; 
     78 
     79phase=status; 
    680clear status; 
    7 phase1=reshape(phase1,122,28,3); 
     81phase=reshape(phase,122,28,3); 
    882 
    983%%%%%%%%%%%% FICHIER TYPE DE TEMPS 
    1084% on ouvre le fichier 
    11 status=load('occu.txt'); 
     85fullfilename=[IRCAAM_ID,'occu.txt']; 
     86status=load(fullfilename); 
     87clear fullfilename; 
    1288occu=status; 
    1389clear status; 
     
    32108%        condition 1 on est a un maximum deltas apres sont negetifs et 
    33109%             delta avant postifs 
    34          if phase1(b,a,1)==1; 
     110         if phase(b,a,1)==1; 
    35111            compteurmax=compteurmax+1; 
    36112            type_temps_compomax(compteurmax,1,:)=occu_type_tps(b-10,a,:); 
     
    95171end; 
    96172 
     173offset=mod(phase_num-1,4)*4; 
    97174for a=1:4; 
    98     subplot(4,4,a); 
     175    subplot(4,4,a+offset); 
    99176    diff=kara_diff(:,a)*100; 
    100177    jour=[-10:10]'; 
     
    116193    if a==1; 
    117194       title('Atl low','Fontsize',8,'Fontname','Arial'); 
    118        text(-20,0,'Phase1'); 
     195       ylabel=['Phase ' int2str(phase_num)]; 
     196       text(-20,0,ylabel); 
     197       clear ylabel; 
    119198    elseif a==2; 
    120199       title('Atl Ridge','Fontsize',8,'Fontname','Arial'); 
     
    125204    end; 
    126205end; 
     206clear offset; 
Note: See TracChangeset for help on using the changeset viewer.