Ignore:
Timestamp:
05/24/18 21:35:06 (6 years ago)
Author:
oboucher
Message:

Change of two variable names (_ instead of -)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/CMIP6_FORCING/GHG/extract.sh

    r3595 r3833  
    3232GHG='N2O' 
    3333name='nitrous-oxide' 
     34namevar='nitrous_oxide' 
    3435file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 
    3536rm -f tmp.txt ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    3637dirin=${dirin1}'mole-fraction-of-'${name}'-in-air/'${dirin2} 
    37 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${name}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
     38cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
    3839paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    3940 
     
    4142GHG='CH4' 
    4243name='methane' 
     44namevar='methane' 
    4345file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 
    4446dirin=${dirin1}'mole-fraction-of-'${name}'-in-air/'${dirin2} 
    4547rm -f tmp.txt ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    46 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${name}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
     48cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
    4749paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    4850 
     
    5052GHG='CO2' 
    5153name='carbon-dioxide' 
     54namevar='carbon_dioxide' 
    5255file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 
    5356dirin=${dirin1}'mole-fraction-of-'${name}'-in-air/'${dirin2} 
    5457rm -f tmp.txt ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    55 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${name}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
     58cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 
    5659paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 
    5760 
Note: See TracChangeset for help on using the changeset viewer.