Changes between Version 1 and Version 2 of SmoothFile


Ignore:
Timestamp:
05/09/11 12:29:41 (13 years ago)
Author:
mmaipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SmoothFile

    v1 v2  
    11= Smoothfiles = 
     2Smooth\Files section is a "get files" section with frequency informations for all initial map and files get in libIGCM configurations. 
     3 
     4It is an optionnal section. 
     5 
     6All frequency values are in Cumul\Period unit. See section Smooth\Modulo below for usage of frequency vector. 
    27 
    38== How to use Smoothfile section ? == 
    4  
     9lmdz.card : 
     10{{{ 
     11[SmoothFiles] 
     1252      # With AR5 aerosols (including ASSO4M(=SO4), CSSO4M, AIBCM, ASBCM, AIPOMM, ASPOMM, ASSSM, CSSSM, SSSSM, CIDUSTM) 
     1353      # With AR5 ozone(tropo + strato from LMDZOR-INCA-REPROBUS simulations) 
     1454      List=   (${R_BC}/ATM/${config_UserChoices_TagName}/${RESOL_ATM}/AR5/HISTORIQUE/aerosols_11YearsClim_${year}_v3.nc, aerosols${year}.nc, 1:12:), \ 
     1555              (${R_BC}/ATM/${config_UserChoices_TagName}/${RESOL_ATM}/AR5/HISTORIQUE/climoz_LMDZ_${year}_v2.nc,          climoz_LMDZ.nc,     1:12:) 
     16}}} 
     17orchidee.card : 
     18{{{ 
     19[SmoothFiles] 
     2017      List=(${R_BC}/SRF/${config_UserChoices_TagName}/PFTmap_1850to2005_AR5_LUHa.rc2/PFTmap_IPCC_${year_p1}.nc, PFTmap.nc, 12:12:) 
     21}}}      
    522== History for versions of Smootfile function == 
    623 
    7 == Smooth'Modulo function == 
     24=== Original branch === 
     25Smooth\Files branch begin at commit #6 see first import in changset [8]. 
     26It use a new function IGCM_Smooth\Modulo to analyse A string of min max and modulo like definition of Scilab vectors. 
     27{{{ 
     28IGCM_SmoothModulo StringModulo value 
     29}}} 
     30 
     31=== Merge in the trunk === 
     32Original branch has been merged in trunk in changset [247]. 
     33 
     34=== Change the test for re-submission === 
     35=== Bug on re-submission === 
     36Changeset [412] : 
     37{{{ 
     38        386                     eval ret=$( IGCM_SmoothModulo ${SmoothDef} ${CumulPeriod} )  
     39        387                     if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ) ) ; then  
     40}}} 
     41{{{ 
     42        391                     aux=$( IGCM_SmoothModulo ${SmoothDef} ${CumulPeriod} )  
     43        392                     j=1  
     44        393                     for val in ${aux} ; do  
     45        394                         [ ${j} -eq 1 ] && SmoothMin=${val}  
     46        395                         [ ${j} -eq 2 ] && SmoothMax=${val}  
     47        396                         [ ${j} -eq 3 ] && ret=${val}  
     48        397                         (( j=j+1 ))  
     49        398                     done  
     50        399                     if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ] ) ) ; then  
     51}}} 
     52 
     53== Smooth\Modulo function == 
    854Definition of Smooth modulo function  
     55 
     56Function IGCM_Smooth\Modulo analyses a string of "min max and modulo" like definition of Scilab vectors. 
     57 
    958usage : 
    1059{{{ 
     
    1261}}} 
    1362 
    14 String'Modulo : A string of min max and modulo like definition of Scilab vectors.  
     63String\Modulo : A string of min:module:max like definition of Scilab vectors.  
    1564<<< 
    1665[min]:[modulo:][max]  
     
    2271 * modulo not given or empty equal 1  
    2372 * empty string or just ':' equal always.  
     73Then all is optionnal (but only one ':' that means "always"). 
     74 
     75Example :  
     76 * 1:12: for a 1M Period\Length means in all january only through the end (defaut end corresponds to Date\End) 
     77 * 1:12:124 for a 1M Period\Length meansthen same, but only if CumulPeriod < 125. 
     78 * :12:124 is the same a previous (default init is 1). 
     79 * 1:124 means always before CumulPeriod < 125.