Skip to contents

ScenarioConstructor

Usage

calcScenarioConstructor(
  driver,
  scenario,
  pastData,
  futureData,
  harmonization,
  extension2150,
  naming,
  popAsWeight,
  ...
)

Arguments

driver

A string designating the driver. Available drivers are:

  • GDP

  • Population

  • GDPpc

  • Labour

  • Urban

scenario

A string (or vector of strings) designating the scenario(s) to be returned. Use toolGetScenarioDefinition() to learn what scenarios are available.

pastData

A string passed to the calc'Driver'Past function, e.g. calcGDPPast() or calcPopulationPast().

futureData

A string passed to the calc'Driver'Future function, e.g. calcGDPFuture() or calcPopulationFuture().

harmonization

A string designating the harmonization function.

extension2150

A string specifying if/how the scenarios should be extended until 2150. Can be either:

  • "bezier" (default): A bezier curve extension that leads to a smooth flattening of the scenario: the slope in the last year of the scenario is halved by 2150. Currently only works for scenarios with 2100 as their last year.

  • "constant": The last value of the scenarios is taken as constant until 2150.

  • "none": No extension.

naming

A string giving the naming scheme of the data dimension. Can be either:

  • "indicator_scenario" (default): Returns names of the type "gdp_SSP2", or "pop_SSP2".

  • "indicator.scenario": Returns names of the type "gdp.SSP2", or "pop.SSP2".

  • "scenario": Returns names of the type "SSP2".

Set naming to "scenario" when you want to operate on SSP2 gdp and population data for instance, and not have to worry about the conflicting names.

popAsWeight

If TRUE, then population data of the same scenario is used as weight.

...

Arguments passed on to the 'driver'Past, 'driver'Future and driver'Harmonization' functions.

Value

magpie object with the requested output data either on country or on regional level depending on the choice of argument "aggregate" or a list of information if supplementary is set to TRUE.

Combining data sources with "-"

Data sources can be combined with "-" and passed to both the pastData and futureData arguments, i.e. "WDI-MI". This signifies that WDI data will be taken first, but missing data will be then be filled in with data from MI.

See also