create_scenario: Create a Hector emissions scenario

Description Usage Arguments Value Author(s)

View source: R/create_scenario.R

Description

Create a Hector emissions scenario

Usage

1
2
3
4
create_scenario(cc = NULL, ch4_frac = NULL, co2 = NULL, ch4 = NULL,
  base_scenario_data = NULL, base_scenario = "RCP45",
  base_scenario_file = system.file(paste0("input/emissions/",
  base_scenario, "_emissions.csv"), package = "hector"), ...)

Arguments

cc

data.frame of total carbon (C) emissions, with columns year and value (emissions in GtC/yr).

ch4_frac

Fraction of carbon emitted as methane. Length must be either 1 or nrow(cc).

co2

data.frame of CO2 emissions (same structure as cc)

ch4

data.frame of CH4 emissions (same structure as cc)

base_scenario_data

data.frame containing baseline scenario, onto which CO2 and CH4 emissions will be added. If NULL (default), read from base_scenario_file

base_scenario

Character describing base scenario (default = "RCP45").

base_scenario_file

Path to base emissions file (default is hector package RCP 4.5 emissions file).

...

Additional arguments to readr::read_csv() for reading scenario file

Value

data.frame containing Hector emissions, with additional CO2 and CH4 emissions added to target years.

Author(s)

Alexey Shiklomanov


ashiklom/hector_permafrost_emit documentation built on March 26, 2020, 12:15 a.m.