Changeset 48 for trunk


Ignore:
Timestamp:
02/02/09 15:04:40 (15 years ago)
Author:
pinsard
Message:

parametrisation of SIMULS_IRCAAM/carte_eof_ircaam_....m

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

Legend:

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

    r26 r48  
    1 % 
    2  
    3 clear; 
    4 status=load('eof_1030_ircaam.mat','C','L'); 
     1function carte_eof_df(dataset,simulation,ndmin, ndmax) 
     2% carte_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% and rlut_d.\ *simulation*\ .197106-09.nc, 
     15% ``carte_eof_df`` compute ++. 
     16% 
     17% ``carte_eof_df`` plot ++. 
     18% 
     19% 1 Postscript file 
     20% carte_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d.eps are 
     21% written. 
     22% 
     23% EXAMPLES 
     24% ======== 
     25% 
     26% Following line read ``eof_arpege_AfNQIVIV_10-30d.mat`` and 
     27% ``rlut_d.afNQIVIV.197106-09.nc``, 
     28% compute ++, 
     29% plot ++, 
     30% write ``eof[12]_arpege_AfNQIVIV_10-30d`` and 
     31% write ``carte_arpege_AfNQIVIV_10-30d.eps`` 
     32% :: 
     33% 
     34% >> carte_eof_df('arpege','AfNQIVIV',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% time_serie_eof_df.m_ 
     44% 
     45% .. _time_serie_eof_df.m : time_serie_eof_df.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-02T13:45:57Z aedon.locean-ipsl.upmc.fr (Darwin) 
     62% 
     63%   * created from carte_eof_ircaam_1030.m .m to replace it as well as 
     64%     carte_eof_ircaam_1030_as.m, carte_eof_ircaam_1030_ctl.m, 
     65%     carte_eof_ircaam_1030_ctl_clim.m, carte_eof_ircaam_1030_tr.m, 
     66%     carte_eof_ircaam_30100.m, carte_eof_ircaam_30100_as.m, 
     67%     carte_eof_ircaam_30100_ctl.m and carte_eof_ircaam_30100_tr.m 
     68% 
     69%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 
     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%- 
     75 
     76global IRCAAM_ID; 
     77global IRCAAM_OD; 
     78 
     79if nargin==4 
     80 % dataset must be equal to arpege 
     81 if ~strcmp(dataset,'arpege') 
     82  disp(['dataset = ', dataset]); 
     83  error('eee : dataset must be equal to arpege'); 
     84 end 
     85 if strcmp(dataset,'arpege') 
     86  list_simulation={'AfNQIVIV','TrNQIVIV','AsNQIVIV','CtIV','CtCl'}; 
     87 end 
     88 switch simulation 
     89 case list_simulation 
     90  % ok 
     91 otherwise 
     92  disp(['simulation = ', simulation]); 
     93  disp(['list_simulation = ', mat2str(list_simulation)]); 
     94  error('eee : simulation must be equal to one of list_simulation'); 
     95 end 
     96 clear list_simulation; 
     97 % ndmin must be lower than ndmax 
     98 if (ndmin > ndmax) 
     99  disp(['ndmin = ', int2str(ndmin)]); 
     100  disp(['ndmax = ', int2str(ndmax)]); 
     101  error('eee : ndmin must be lower than ndmax'); 
     102 end 
     103else 
     104  usage='usage : time_serie_jjas_df(dataset,simulation,ndmin, ndmax)'; 
     105  disp(usage); 
     106  error('eee : wrong arguments numbers') 
     107end 
     108 
     109% ndmin and ndmax will be used in xx-yyd form in filenames 
     110df = [int2str(ndmin),'-',int2str(ndmax),'d']; 
     111clear ndmin; 
     112clear ndmax; 
     113 
     114close all; 
     115 
     116fullfilename=[IRCAAM_ID,'eof_',dataset,'_', simulation, '_', df, '.mat']; 
     117status=load(fullfilename,'C','L'); 
     118clear fullfilename; 
     119 
    5120C=status.C; 
    6121L=status.L; 
    7122clear status; 
     123 
    8124carte1=C(:,360); 
    9  
    10 carte=reshape(carte1,24,15); 
    11 carte=carte'; 
    12  
    13 clear carte1; 
    14 % defintion des lat et lon 
    15 ncload('rlut_d.AfNQIVIV.197106-09.nc','lat','lon'); 
     125carte=reshape(carte1,24,15); 
     126carte=carte'; 
     127clear carte1; 
     128 
     129% definition des lat et lon 
     130fullfilename=[IRCAAM_ID,'rlut_d.',simulation, '.197106-09.nc']; 
     131ncload(fullfilename,'lat','lon'); 
     132clear fullfilename; 
     133 
    16134lon=lon-180; 
    17135lon=lon(54:77); 
     
    150268set (gca,'tickDir','out'); 
    151269 
    152 print('-depsc2','resultats_eof_jjas_2006_1030.eps'); 
     270fullfilename=[IRCAAM_OD,'carte_eof_', dataset, '_', simulation, '_', df, '.eps']; 
     271print('-depsc2',fullfilename); 
     272clear fullfilename; 
     273 
     274clear dataset; 
     275clear simulation; 
     276clear df; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8%  
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_as.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl_clim.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
     14 
    215clear; 
    316status=load('eof_1030_ircaam_ctl_clim.mat','C','L'); 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_tr.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_as.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
    214 
    315clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_ctl.m

    r26 r48  
    11% 
     2%+ 
     3% 
     4% EVOLUTIONS 
     5% =========== 
     6% 
     7% $Id$ 
     8% 
     9% - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10% 
     11%   * replaced by carte_eof_df.m 
     12% 
     13%- 
     14 
    215 
    316clear; 
  • trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_tr.m

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

    r46 r48  
    4141% .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 
    4242% 
    43 % carte_eof_ircaam_1030.m_ 
    44 % 
    45 % .. _carte_eof_ircaam_1030.m : carte_eof_ircaam_1030.m.html 
     43% carte_eof_df.m_ 
     44% 
     45% .. _carte_eof_df.m : carte_eof_df.m.html 
    4646% 
    4747% TODO 
     
    6868%     Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 
    6969% 
    70 %     Dataset ``arpege`` will be forced in output file names.. 
     70%     Dataset ``arpege`` will be forced in output file names. 
    7171% 
    7272%     Simulation name will be add to  output file names (see parameters). 
Note: See TracChangeset for help on using the changeset viewer.