Skip to content

Processing code to aggregate GCAM output to IAM format for producing gridded emissions

Notifications You must be signed in to change notification settings

JGCRI/GCAM_to_IAMC_Aggregation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The script GCAM_to_IAMC_Aggregation.R aggregates emission scenarios generated by the GCAM model to the modified IAMC format for producing future gridded emissions in the format used by climate models as part of CMIP6.

Sector Mapping

Most GCAM sectors are mapped directly to an IAMC output sector, with a few exceptions:

  • Agriculture (AGR) and Agricultural Waste Burning (AWB) emissions: These emissions are mapped to an output sector based on a suffix that is added to their GHG by default. For example, an entry with a GHG of “N2O_AWB” would be mapped to the Agricultural Waste Burning output sector.

  • Some GCAM subsectors are mapped to a separate output sector. For example, GCAM sector “industrial processes” has multiple subsectors. Most of these subsectors are mapped to the Industrial Sector output sector, except for GCAM subsector “solvents”, which is mapped to the Solvents Production and Application output sector.

  • Other exceptions include GCAM sector “trn_pass” and “UnmanagedLand”.

    These are handled case by case in the script.

International Shipping and aviation are aggregated globally because they are mapped to a spatial grid on a global basis. The “Regional” column in GCAM_IAMC_mapping.csv indicates whether or not the emissions should be aggregated regionally (1) or globally (0).

Inputs

GCAM_nonCO2_emissions.csv:

The GCAM nonCO2 emissions input should be the result of a query from the relevant GCAM database for emissions by subsector. The file can contain multiple scenarios. A truncated example is included (GCAM_nonCO2_emissions_example.csv) with proper column names and formatting.

GCAM_nonCO2_resource_emissions.csv:

The GCAM nonCO2 resource emissions input should be the result of a query from the relevant GCAM database for emissions by resource production. The file can contain multiple scenarios. A truncated example is included (GCAM_nonCO2_resource_emissions_example.csv) with proper column names and formatting.

GCAM_IAMC_mapping.csv:

This file maps GCAM sectors and subsectors to IAMC output sectors, and indicates whether the output sector emissions should be aggregated regionally or globally. If new sectors are added to GCAM this file may need to be modified.

Script Outputs

Data is written to the output folder:

GCAM_output.xlsx contains the aggregated emissions, and is used as an input for downscaling.

diagnostic.csv contains total input and output emissions for each scenario, year, and GHG, as well as the difference in emissions (should be 0, or very close to). “value_original” indicates emissions in the input data (GCAM_nonCO2_emissions.csv) and “value” indicates emissions in the output data (GCAM_output.xlsx). If there are differences here that are not tiny, this probably indicates a missing sector in the mapping file.

Using This script

To use this script, the user must create the GCAM_nonCO2_emissions.csv and GCAM_nonco2_resource_emissions.csv inputs and place them in the input folder. These should be the results of two queries. The user must also set the working directory to their input folder.

Note that the IAMC downscaling and gridding code will work best if you use a base-year historical emissions input file that is consistent with the version of the CEDS emissions data used to calibrate GCAM. See the wiki section of the IAMC downscaling and gridding code.

About

Processing code to aggregate GCAM output to IAM format for producing gridded emissions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages