#--2D emissions - year 2000
file=/prodigfs/project/input4MIPs/CMIP6/CMIP/PNNL-JGCRI/CEDS-2017-05-18/atmos/mon/CO2-em-anthro/gn/v20170519/CO2-em-anthro_input4MIPs_emissions_CMIP_CEDS-2017-05-18_gn_200001-201412.nc

#--compute annual mean emissions in Tg/yr
cdo outputf,%12.10g,10 -divc,1.e9 -mulc,86400. -mulc,365 -fldsum -mul -timmean -seltimestep,1/12 $file -gridarea $file

#--3D emissions - year 2000
file=/prodigfs/project/input4MIPs/CMIP6/CMIP/PNNL-JGCRI/CEDS-2017-08-30/atmos/mon/CO2-em-AIR-anthro/gn/v20170907/CO2-em-AIR-anthro_input4MIPs_emissions_CMIP_CEDS-2017-08-30_gn_200001-201412.nc

#--compute annual mean emissions in Tg/yr
cdo outputf,%12.10g,10 -divc,1.e9 -mulc,86400. -mulc,365 -fldsum -mul -timmean -vertsum -seltimestep,1/12 $file -gridarea $file
