emisCO2: emisCO2

View source: R/emisCO2.R

emisCO2R Documentation

emisCO2

Description

reads detailed CO2 emissions out of a MAgPIE gdx file

Usage

emisCO2(
  gdx,
  file = NULL,
  level = "cell",
  unit = "gas",
  sum_cpool = TRUE,
  sum_land = TRUE,
  cumulative = FALSE,
  baseyear = 1995,
  lowpass = 3
)

Arguments

gdx

GDX file

file

a file name the output should be written to using write.magpie

level

Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate

unit

"element" or "gas"; "element": co2_c in Mt C/yr "gas": co2_c Mt CO2/yr

sum_cpool

aggregate carbon pools (TRUE), below ground (soilc) and above ground (vegc and litc) will be reported, if FALSE

sum_land

TRUE (default) or FALSE. Sum over land types (TRUE) or report land-type specific emissions (FALSE).

cumulative

Logical; Determines if emissions are reported annually (FALSE) or cumulative (TRUE). The starting point for cumulative emissions is y1995.

baseyear

Baseyear used for cumulative emissions (default = 1995)

lowpass

number of lowpass filter iterations (default = 3)

Value

CO2 emissions as MAgPIE object (unit depends on unit)

Author(s)

Florian Humpenoeder, Michael Crawford

Examples

## Not run: 
x <- emisCO2(gdx)

## End(Not run)

pik-piam/magpie4 documentation built on Dec. 20, 2024, 1:59 p.m.