Changeset 50 for trunk


Ignore:
Timestamp:
02/02/09 16:03:38 (15 years ago)
Author:
pinsard
Message:

parametrisation of SIMULS_IRCAAM/eof_ircaam_....m

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

Legend:

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

    r48 r50  
    2020% carte_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d.eps are 
    2121% written. 
     22% 
     23% CAUTIONS 
     24% ======== 
     25% 
     26% can't work with octave because of ncload. 
    2227% 
    2328% EXAMPLES 
     
    2833% compute ++, 
    2934% plot ++, 
    30 % write ``eof[12]_arpege_AfNQIVIV_10-30d`` and 
    3135% write ``carte_arpege_AfNQIVIV_10-30d.eps`` 
    3236% :: 
     
    3741% ======== 
    3842% 
    39 % eof_olr_ircaam_1030_as.m_ 
    40 % 
    41 % .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 
     43% eof_df.m_ 
     44% 
     45% .. _eof_df.m : eof_df.m.html 
    4246% 
    4347% time_serie_eof_df.m_ 
     
    6872% 
    6973%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 
     74% 
    7075%     Dataset ``arpege`` will be forced in output file names. 
    7176% 
    72 %     Simulation name will be add to  output file names (see parameters). 
     77%     Simulation name will be add to output file names (see parameters). 
    7378% 
    7479%- 
     
    102107 end 
    103108else 
    104   usage='usage : time_serie_jjas_df(dataset,simulation,ndmin, ndmax)'; 
     109  usage='usage : carte_eof_df(dataset,simulation,ndmin, ndmax)'; 
    105110  disp(usage); 
    106111  error('eee : wrong arguments numbers') 
  • trunk/src/SIMULS_IRCAAM/eof_df.m

    r22 r50  
     1function eof_df(ircaam_dataset,simulation,ndmin, ndmax) 
     2% eof_df ++explication between ndmin days and ndmax days 
     3 
     4%+ 
     5% module 
     6% ====== 
    17% 
     8% ++ 
     9% 
     10% DESCRIPTION 
     11% =========== 
     12% 
     13% From olrf_arpege_ \ *simulation*\ _  \ *ndmin*\ -\ *ndmax*\ d.80.dat, 
     14% ``eof_df`` compute ++. 
     15% 
     16% 1 Postscript file 
     17% eof_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d.eps are 
     18% written. 
     19% 
     20% EXAMPLES 
     21% ======== 
     22% 
     23% Following line read ``eof_arpege_AfNQIVIV_10-30d.80.dat``, 
     24% compute ++, 
     25% write ``eof_arpege_AfNQIVIV_10-30d.eps`` 
     26% :: 
     27% 
     28% >> eof_df('arpege','AfNQIVIV',10,30) 
     29% 
     30% SEE ALSO 
     31% ======== 
     32% 
     33% carte_eof_df.m_ 
     34% 
     35% .. _carte_eof_df.m : carte_eof_df.m.html 
     36% 
     37% time_serie_eof_df.m_ 
     38% 
     39% .. _time_serie_eof_df.m : time_serie_eof_df.m.html 
     40% 
     41% TODO 
     42% ==== 
     43% 
     44% improve description 
     45% 
     46% improve file pb 
     47% 
     48% use return function 
     49% 
     50% EVOLUTIONS 
     51% ========== 
     52% 
     53% $Id$ 
     54% 
     55% - fplod 2009-02-02T13:45:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
     56% 
     57%   * created from eof_ircaam_1030.m .m to replace it as well as 
     58%     eof_olr_ircaam_1030_as.m, eof_olr_ircaam_1030_ctl.m,  
     59%     eof_olr_ircaam_1030_ctl_clim.m, eof_olr_ircaam_1030_tr.m,  
     60%     eof_olr_ircaam_30100.m, eof_olr_ircaam_30100_as.m, eof_olr_ircaam_30100_ctl.m 
     61%     and eof_olr_ircaam_30100_tr.m 
     62% 
     63%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 
     64% 
     65%     Dataset ``arpege`` will be forced in output file names. 
     66% 
     67% 
     68%- 
    269 
    3 clear; 
     70global IRCAAM_ID; 
     71global IRCAAM_OD; 
     72 
     73if nargin==4 
     74 % ircaam_dataset must be equal to arpege 
     75 if ~strcmp(ircaam_dataset,'arpege') 
     76  disp(['ircaam_dataset = ', ircaam_dataset]); 
     77  error('eee : ircaam_dataset must be equal to arpege'); 
     78 end 
     79 if strcmp(ircaam_dataset,'arpege') 
     80  list_simulation={'AfNQIVIV','TrNQIVIV','AsNQIVIV','CtIV','CtCl'}; 
     81 end 
     82 switch simulation 
     83 case list_simulation 
     84  % ok 
     85 otherwise 
     86  disp(['simulation = ', simulation]); 
     87  disp(['list_simulation = ', mat2str(list_simulation)]); 
     88  error('eee : simulation must be equal to one of list_simulation'); 
     89 end 
     90 clear list_simulation; 
     91 % ndmin must be lower than ndmax 
     92 if (ndmin > ndmax) 
     93  disp(['ndmin = ', int2str(ndmin)]); 
     94  disp(['ndmax = ', int2str(ndmax)]); 
     95  error('eee : ndmin must be lower than ndmax'); 
     96 end 
     97else 
     98  usage='usage : eof_df(ircaam_dataset,simulation,ndmin, ndmax)'; 
     99  disp(usage); 
     100  error('eee : wrong arguments numbers') 
     101end 
     102 
     103% ndmin and ndmax will be used in xx-yyd form in filenames 
     104df = [int2str(ndmin),'-',int2str(ndmax),'d']; 
     105clear ndmin; 
     106clear ndmax; 
     107 
    4108close all; 
    5109 
    6 fid=fopen('olrf10-30.80.dat','r'); 
     110fullfilename=[IRCAAM_ID,'olrf_',ircaam_dataset,'_', simulation, '_', df, '.80.dat']; fid=fopen(fullfilename,'r'); 
     111clear fullfilename; 
    7112siz=24*15*3538; 
    8113v=fread(fid,siz,'float'); 
     
    26131[C,L]=eig(vaudou); 
    27132 
    28 delete('eof_1030_ircaam.mat'); 
    29 save('eof_1030_ircaam.mat','C','L','olr') 
     133fullfilename=[IRCAAM_OD,'eof_',ircaam_dataset,'_', simulation, '_', df, '.mat']; 
     134delete(fullfilename); 
     135save(fullfilename,'C','L','olr'); 
     136clear fullfilename; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8%  
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_as.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_ctl.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_ctl_clim.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_1030_tr.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_as.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_ctl.m

    r17 r50  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T14:11:28Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/eof_olr_ircaam_30100_tr.m

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

    r48 r50  
    3737% ======== 
    3838% 
    39 % eof_olr_ircaam_1030_as.m_ 
    40 % 
    41 % .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 
     39% eof_df.m_ 
     40% 
     41% .. _eof_df.m : eof_df.m.html 
    4242% 
    4343% carte_eof_df.m_ 
Note: See TracChangeset for help on using the changeset viewer.