Changes between Version 17 and Version 18 of DevelopmentActivities/inputRoutine


Ignore:
Timestamp:
2017-07-30T16:39:32+02:00 (7 years ago)
Author:
dgoll
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentActivities/inputRoutine

    v17 v18  
    7979== Deposition data == 
    8080We have time series of N and P deposition from Wang et al. (2017) 'Global forest carbon uptake due to nitrogen and phosphorus deposition from 1850 to 2100' ready to use for ORCHIDEE. 
    81  
    8281=== since r4535 === 
    8382{{{ 
     
    8988curie:/ccc/work/cont003/dsm/p529goll/NP_deposition/final_NEW 
    9089}}} 
     90 
     91== use libIGCM to update yearly the fluxes in run.def in case of IMPOSE_NMAP=n ==  
     92Add this to orchidee_ol.driver 
     93COMP/orchidee_ol.driver: 
     94{{{ 
     95########################################################################## 
     96# NP DEPOSITION FROM FILE - SITE SIMULATION 
     97############################################################################################## 
     98    if [ -f NPdeposition.txt ] ; then 
     99        # If this file exist, then read N and P deposition  
     100        NOY=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $2}'` 
     101        NHX=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $3}'` 
     102        Pdep=`grep Annee_${year} NPdeposition.txt | awk -F= '{print $4}'` 
     103 
     104        if [ X"${NOY}" = X ] ; then 
     105            # The grep returned empty variable: stop execution 
     106            IGCM_debug_Exit "The file NPdeposition.txt.txt do not contain the current year." 
     107            IGCM_debug_Verif_Exit 
     108        fi 
     109        IGCM_comp_modifyDefFile nonblocker run.def Ndep_NHX ${NHX} 
     110        IGCM_comp_modifyDefFile nonblocker run.def Ndep_NOY ${NOY} 
     111        IGCM_comp_modifyDefFile nonblocker run.def Pdep_p   ${Pdep} 
     112    fi 
     113 
     114############################################################################################## 
     115}}} 
     116add to COMP/stomate.card the  link to your deposition file 
     117{{{ 
     118[ParametersFiles] 
     119List=   (${SUBMIT_DIR}/PARAM/run.def, .),\ 
     120        (/ccc/work/cont003/dsm/p529goll/AmaFACE_forcing/v01/CO2_1850_2100_AmaFACE.txt, CO2.txt),\ 
     121        (/ccc/work/cont003/dsm/p529goll/AmaFACE_forcing/AmaFACE18502100_NPdeposition.txt, NPdeposition.txt) 
     122}}} 
     123the deposition file should store yearly fluxes in g/m2/yr; sequence is Annee_YEAR,NOY,NHX,Pdep: 
     124{{{ 
     125Annee_1850,0.0715,0.0715,0.0144 
     126Annee_1851,0.0715,0.0715,0.0144 
     127Annee_1852,0.0715,0.0715,0.0144 
     128Annee_1853,0.0715,0.0715,0.0144 
     129Annee_1854,0.0715,0.0715,0.0144 
     130Annee_1855,0.0715,0.0715,0.0144 
     131Annee_1856,0.0715,0.0715,0.0144 
     132Annee_1857,0.072,0.072,0.0144 
     133Annee_1858,0.072,0.072,0.0144 
     134}}} 
     135 
     136 
    91137 
    92138= For ENSEMBLE setup =