Changeset 3833
- Timestamp:
- 05/24/18 21:35:06 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/CMIP6_FORCING/GHG/extract.sh
r3595 r3833 32 32 GHG='N2O' 33 33 name='nitrous-oxide' 34 namevar='nitrous_oxide' 34 35 file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 35 36 rm -f tmp.txt ${dirout}/${GHG}_CMIP6_0000_2014.txt 36 37 dirin=${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.txt38 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 38 39 paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 39 40 … … 41 42 GHG='CH4' 42 43 name='methane' 44 namevar='methane' 43 45 file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 44 46 dirin=${dirin1}'mole-fraction-of-'${name}'-in-air/'${dirin2} 45 47 rm -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.txt48 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 47 49 paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 48 50 … … 50 52 GHG='CO2' 51 53 name='carbon-dioxide' 54 namevar='carbon_dioxide' 52 55 file='mole-fraction-of-'${name}'-in-air_input4MIPs_GHGConcentrations_CMIP_UoM-CMIP-1-2-0_gr1-GMNHSH_0000-2014.nc' 53 56 dirin=${dirin1}'mole-fraction-of-'${name}'-in-air/'${dirin2} 54 57 rm -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.txt58 cdo outputf,%12.4e,3 -selvar,'mole_fraction_of_'${namevar}'_in_air' ${dirin}/${file} | awk '{print $1}' > tmp.txt 56 59 paste years.txt tmp.txt > ${dirout}/${GHG}_CMIP6_0000_2014.txt 57 60
Note: See TracChangeset
for help on using the changeset viewer.