Ignore:
Timestamp:
03/11/11 10:07:19 (12 years ago)
Author:
jgipsl
Message:

Modified lmdz.driver to read file for GHG forcing not containing year so the same driver could be used for different historical or rcp runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/LMDZOR/branches/LMDZOR_v4/LMDZOR/COMP/lmdz.driver

    r1328 r1334  
    179179 
    180180    ##-- GHG forcing for the current year if forcing file is availible 
    181     if [ -f SOLARANDVOLCANOES_1610_2008.txt ] ; then 
    182         IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES_1610_2008.txt | awk -F= '{print $2}'` 
     181    if [ -f SOLARANDVOLCANOES.txt ] ; then 
     182        IPCC_SOLAR=`grep Annee_${year} SOLARANDVOLCANOES.txt | awk -F= '{print $2}'` 
    183183        LMDZ_sed physiq.def solaire     ${IPCC_SOLAR} 
    184184    fi 
    185     if [ -f CO2_1765_2005.txt ] ; then 
    186         IPCC_CO2=`grep Annee_${year} CO2_1765_2005.txt | awk -F= '{print $2}'` 
     185    if [ -f CO2.txt ] ; then 
     186        IPCC_CO2=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 
    187187        LMDZ_sed physiq.def co2_ppm     ${IPCC_CO2} 
    188188    fi 
    189     if [ -f CH4_1765_2005.txt ] ; then 
    190         IPCC_CH4=`grep Annee_${year} CH4_1765_2005.txt | awk -F= '{print $2}'` 
     189    if [ -f CH4.txt ] ; then 
     190        IPCC_CH4=`grep Annee_${year} CH4.txt | awk -F= '{print $2}'` 
    191191        LMDZ_sed physiq.def CH4_ppb     ${IPCC_CH4} 
    192192    fi 
    193     if [ -f N2O_1765_2005.txt ] ; then 
    194         IPCC_N2O=`grep Annee_${year} N2O_1765_2005.txt | awk -F= '{print $2}'` 
     193    if [ -f N2O.txt ] ; then 
     194        IPCC_N2O=`grep Annee_${year} N2O.txt | awk -F= '{print $2}'` 
    195195        LMDZ_sed physiq.def N2O_ppb     ${IPCC_N2O} 
    196196    fi 
    197     if [ -f CFC11_1765_2005.txt ] ; then 
    198         IPCC_CFC11=`grep Annee_${year} CFC11_1765_2005.txt | awk -F= '{print $2}'` 
     197    if [ -f CFC11.txt ] ; then 
     198        IPCC_CFC11=`grep Annee_${year} CFC11.txt | awk -F= '{print $2}'` 
    199199        LMDZ_sed physiq.def CFC11_ppt   ${IPCC_CFC11} 
    200200    fi 
    201     if [ -f CFC12_1765_2005.txt ] ; then 
    202         IPCC_CFC12=`grep Annee_${year} CFC12_1765_2005.txt | awk -F= '{print $2}'` 
     201    if [ -f CFC12.txt ] ; then 
     202        IPCC_CFC12=`grep Annee_${year} CFC12.txt | awk -F= '{print $2}'` 
    203203        LMDZ_sed physiq.def CFC12_ppt   ${IPCC_CFC12} 
    204204    fi 
Note: See TracChangeset for help on using the changeset viewer.