Changeset 46 for trunk


Ignore:
Timestamp:
02/02/09 14:32:11 (15 years ago)
Author:
pinsard
Message:

parametrisation of SIMULS_IRCAAM/time_serie_....m

Location:
trunk/src/SIMULS_IRCAAM
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/SIMULS_IRCAAM/time_serie_afr_1030.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8%  
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_afr_30100.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_as_1030.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_as_30100.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_ctl_1030.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_ctl_30100.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_eof_df.m

    r30 r46  
    1 % 
    2  
    3 clear; 
     1function time_serie_eof_df(dataset,simulation,ndmin, ndmax) 
     2% time_serie_eof_df ++explication between ndmin days and ndmax days 
     3 
     4%+ 
     5% module 
     6% ====== 
     7% 
     8% ++ 
     9% 
     10% DESCRIPTION 
     11% =========== 
     12% 
     13% From eof_arpege_\ *simulation*\ _  \ *ndmin*\ -\ *ndmax*\ d.mat, 
     14% ``time_serie_eof_df`` compute ++. 
     15% 
     16% ``time_serie_eof_df`` plot ++. 
     17% 
     18% ``time_serie_eof_df`` save eof[12]_arpege_\ *simulation*\ _  \ *ndmin*\ -\ *ndmax*\ d.txt. 
     19% 
     20% 2 Postscript files 
     21% time_serie_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d_part[12].eps are 
     22% written. 
     23% 
     24% EXAMPLES 
     25% ======== 
     26% 
     27% Following line read ``eof_arpege_TrNQIVIV_10-30d.mat``, 
     28% compute ++, 
     29% plot ++, 
     30% write ``eof[12]_arpege_TrNQIVIV_10-30d`` and 
     31% write ``time_serie_arpege_TrNQIVIV_10-30d_part[12].eps`` 
     32% :: 
     33% 
     34% >> time_serie_eof_df('arpege','TrNQIVIV',10,30) 
     35% 
     36% SEE ALSO 
     37% ======== 
     38% 
     39% eof_olr_ircaam_1030_as.m_ 
     40% 
     41% .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 
     42% 
     43% carte_eof_ircaam_1030.m_ 
     44% 
     45% .. _carte_eof_ircaam_1030.m : carte_eof_ircaam_1030.m.html 
     46% 
     47% TODO 
     48% ==== 
     49% 
     50% improve description 
     51% 
     52% improve file pb 
     53% 
     54% use return function 
     55% 
     56% EVOLUTIONS 
     57% ========== 
     58% 
     59% $Id$ 
     60% 
     61% - fplod 2009-02-02T10:01:21Z aedon.locean-ipsl.upmc.fr (Darwin) 
     62% 
     63%   * created from time_serie_afr_1030.m to replace it as well as 
     64%     time_serie_afr_30100.m, time_serie_as_1030.m, time_serie_as_30100.m, 
     65%     time_serie_ctl_1030.m, time_serie_ctl_30100.m, time_serie_tr_1030.m and 
     66%     time_serie_tr_30100.m 
     67% 
     68%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 
     69% 
     70%     Dataset ``arpege`` will be forced in output file names.. 
     71% 
     72%     Simulation name will be add to  output file names (see parameters). 
     73% 
     74%     Postscript files names will be suffixe by partx instead of letter. 
     75% 
     76%- 
     77 
     78global IRCAAM_ID; 
     79global IRCAAM_OD; 
     80 
     81if nargin==4 
     82 % dataset must be equal to arpege 
     83 if ~strcmp(dataset,'arpege') 
     84  disp(['dataset = ', dataset]); 
     85  error('eee : dataset must be equal to arpege'); 
     86 end 
     87 if strcmp(dataset,'arpege') 
     88  list_simulation={'AfNQIVIV','TrNQIVIV','AsNQIVIV','CtIV','CtCl'}; 
     89 end 
     90 switch simulation 
     91 case list_simulation 
     92  % ok 
     93 otherwise 
     94  disp(['simulation = ', simulation]); 
     95  disp(['list_simulation = ', mat2str(list_simulation)]); 
     96  error('eee : simulation must be equal to one of list_simulation'); 
     97 end 
     98 clear list_simulation; 
     99 % ndmin must be lower than ndmax 
     100 if (ndmin > ndmax) 
     101  disp(['ndmin = ', int2str(ndmin)]); 
     102  disp(['ndmax = ', int2str(ndmax)]); 
     103  error('eee : ndmin must be lower than ndmax'); 
     104 end 
     105else 
     106  usage='usage : time_serie_jjas_df(dataset,simulation,ndmin, ndmax)'; 
     107  disp(usage); 
     108  error('eee : wrong arguments numbers') 
     109end 
     110 
     111% ndmin and ndmax will be used in xx-yyd form in filenames 
     112df = [int2str(ndmin),'-',int2str(ndmax),'d']; 
     113clear ndmin; 
     114clear ndmax; 
     115 
    4116close all; 
    5117 
    6 status=load('eof_1030_ircaam.mat','C','olr'); 
     118fullfilename=[IRCAAM_ID,'eof_',dataset,'_', simulation, '_', df, '.mat']; 
     119status=load(fullfilename,'C','olr'); 
     120clear fullfilename; 
     121 
    7122C=status.C; 
    8123olr=status.olr; 
     
    24139end; 
    25140 
    26 save('eof1_AFR_1030.txt','time_serie_olr1','-ASCII'); 
    27 save('eof2_AFR_1030.txt','time_serie_olr2','-ASCII'); 
     141fullfilename=[IRCAAM_OD,'eof1_',dataset,'_', simulation, '_', df,'.txt']; 
     142save(fullfilename,'time_serie_olr1','-ASCII'); 
     143clear fullfilename; 
     144 
     145fullfilename=[IRCAAM_OD,'eof2_',dataset,'_', simulation, '_', df,'.txt']; 
     146save(fullfilename','time_serie_olr2','-ASCII'); 
     147clear fullfilename; 
    28148 
    29149x=[1:3538]'; 
     
    52172   plot(x,y,'k:'); 
    53173   title(a+1970,'FontSize',8); 
     174   my_title=['serie temporelle eof ', dataset, ' ' , simulation, ' ' , df]; 
    54175   if a==2; 
    55        text(0,5.5,'serie temporelle eof AFR 1030'); 
     176       text(0,5.5,my_title); 
    56177   elseif a==13; 
    57        text(0,5.5,'serie temporelle eof AFR 1030'); 
     178       text(0,5.5,my_title); 
    58179   elseif a==24; 
    59        text(0,5.5,'serie temporelle eof AFR 1030'); 
     180       text(0,5.5,my_title); 
    60181   end; 
     182   clear my_title; 
    61183   set (gca,'tickDir','out'); 
    62184   axis([1 122 -3 3]); 
    63185 
    64186   set (gca,'YTick',[-3:1:3],'YTickLabel',[-3:1:3],'fontname','Arial','fontsize',6); 
    65 set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6); 
     187   set (gca,'XTick',[0:20:120],'XTickLabel',[0:20:120],'fontname','Arial','fontsize',6); 
    66188end; 
    67189 
    68190figure(1); 
    69 print('-depsc2','time_serie_eof_afr_1030a.eps'); 
     191fullfilename=[IRCAAM_OD,'time_serie_eof_', dataset, '_', simulation, '_', df, '_part1.eps']; 
     192print('-depsc2',fullfilename); 
     193clear fullfilename; 
     194 
    70195figure(2); 
    71 print('-depsc2','time_serie_eof_afr_1030b.eps'); 
     196fullfilename=[IRCAAM_OD,'time_serie_eof_', dataset, '_', simulation, '_', df, '_part2.eps']; 
     197print('-depsc2',fullfilename); 
     198clear fullfilename; 
     199 
    72200figure(3); 
    73 print('-depsc2','time_serie_eof_afr_1030c.eps'); 
     201fullfilename=[IRCAAM_OD,'time_serie_eof_', dataset, '_', simulation, '_', df, '_part3.eps']; 
     202print('-depsc2',fullfilename); 
     203clear fullfilename; 
     204 
     205clear dataset; 
     206clear simulation; 
     207clear df; 
  • trunk/src/SIMULS_IRCAAM/time_serie_tr_1030.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/SIMULS_IRCAAM/time_serie_tr_30100.m

    r30 r46  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T09:59:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by time_serie_eof_df.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
Note: See TracChangeset for help on using the changeset viewer.