Package 'mrremind'

Title: MadRat REMIND Input Data Package
Description: The mrremind packages contains data preprocessing for the REMIND model.
Authors: Lavinia Baumstark [aut, cre], Renato Rodrigues [aut], Antoine Levesque [aut], Julian Oeser [aut], Christoph Bertram [aut], Ioanna Mouratiadou [aut], Aman Malik [aut], Felix Schreyer [aut], Bjoern Soergel [aut], Marianna Rottoli [aut], Abhijeet Mishra [aut], Alois Dirnaichner [aut], Michaja Pehl [aut], Anastasis Giannousakis [aut], David Klein [aut], Jessica Strefler [aut], Lukas Feldhaus [aut], Regina Brecha [aut], Sebastian Rauner [aut], Jan Philipp Dietrich [aut], Stephen Bi [aut], Falk Benke [aut], Pascal Weigmann [aut], Oliver Richters [aut], Robin Hasse [aut], Sophie Fuchs [aut], Rahel Mandaroux [aut], Johannes Koch [aut]
Maintainer: Lavinia Baumstark <[email protected]>
License: LGPL-3 | file LICENSE
Version: 0.204.1
Built: 2024-12-13 11:24:29 UTC
Source: https://github.com/pik-piam/mrremind

Help Index


mrremind: MadRat REMIND Input Data Package

Description

The mrremind packages contains data preprocessing for the REMIND model.

Author(s)

Maintainer: Lavinia Baumstark [email protected]

Authors:

  • Renato Rodrigues

  • Antoine Levesque

  • Julian Oeser

  • Christoph Bertram

  • Ioanna Mouratiadou

  • Aman Malik

  • Felix Schreyer

  • Bjoern Soergel

  • Marianna Rottoli

  • Abhijeet Mishra

  • Alois Dirnaichner

  • Michaja Pehl

  • Anastasis Giannousakis

  • David Klein

  • Jessica Strefler

  • Lukas Feldhaus

  • Regina Brecha

  • Sebastian Rauner

  • Jan Philipp Dietrich

  • Stephen Bi

  • Falk Benke

  • Pascal Weigmann

  • Oliver Richters

  • Robin Hasse

  • Sophie Fuchs

  • Rahel Mandaroux

  • Johannes Koch

See Also

Useful links:


Calculate REMIND final energy variables from historical AGEB values

Description

Calculate REMIND final energy variables from historical AGEB values

Usage

calcAGEB(subtype = "balances")

Arguments

subtype

data subtype. Either "balances" ("Auswertungstabellen zur Energiebilanz Deutschland") or "electricity" ("Bruttostromerzeugung in Deutschland nach Energieträgern")

Value

A magpie object.

Author(s)

Falk Benke


read biomass supply curves from Magpie emulator

Description

read biomass supply curves from Magpie emulator

Usage

calcBiomassPrices()

Value

Magpie object with two parameters determining linear biomass supply curve


Calculate REMIND variables from historical BP values

Description

Calculate REMIND variables from historical BP values

Usage

calcBP()

Author(s)

Falk Benke


calc Capacity

Description

provides historical capacity values in TW

Usage

calcCapacity(subtype)

Arguments

subtype

data subtype. Either "capacityByTech" or "capacityByPE"

Value

magpie object of capacity data

Author(s)

Renato Rodrigues, Stephen Bi

Examples

## Not run: 
calcOutput("Capacity", subtype = "capacityByTech")

## End(Not run)

calc Capacity Factor

Description

provides capacity factor values

Usage

calcCapacityFactor()

Value

magpie object of the capacity factor data

Author(s)

Renato Rodrigues, Stephen Bi

Examples

## Not run: 
calcOutput("CapacityFactor")

## End(Not run)

calc Capacity Factor

Description

provides capacity factor values

Usage

calcCapacityFactorHist(subtype)

Arguments

subtype

data subtype. Either "wind" or "windoff"

Value

magpie object of the capacity factor data

Author(s)

Renato Rodrigues, Stephen Bi

Examples

## Not run:  
calcOutput("CapacityFactor")

## End(Not run)

Capacity targets from two sources

Description

The capacity targets (GW) at regional level are produced from two different databases- UNFCCC_NDC database, an update of the Rogelj 2017 paper (see readme in inputdata), and REN21 Global Renewables report The UNFCCC_NDC capacity targets are further broken down to conditional and unconditional targets.

Usage

calcCapTarget(sources)

Arguments

sources

Database source

Author(s)

Aman Malik, Oliver Richters


Calculate CCS bound indicator for 2025 and 2030

Description

Calculate CCS bound indicator for 2025 and 2030

Usage

calcCCSbounds()

Author(s)

Jessica Strefler, Lavinia Baumstark

See Also

calcOutput, readSource


calc CCS capacity

Description

Calculate CCS capacity from IEA CCUS data

Usage

calcCCScapacity(subtype)

Arguments

subtype

either 'historical' for data until 2022 or 'projections' for projections in 2020, 2025 and 2030 (including some redistribution on EU/NEU level)

Author(s)

Anne Merfort, Falk Benke


Calculate Cooling Type Shares

Description

This function merges the output of two other functions that calculate REMIND input data for the shares of cooling types per electricity technology and REMIND region, using as initial information the Davies (2013) data per electricity technology and GCAM region. The two other functions separately calculate data for the base year and for future time steps. The source data provide most required information but some assumptions on missing data are also made.

Usage

calcCoolingSharesAll()

Value

MAgPIE object on cooling type shares per elecricity technology and REMIND region

Author(s)

Ioanna Mouratiadou

See Also

calcOutput, readDaviesCooling, convertDaviesCooling, calcCoolingSharesBase,calcCoolingSharesFuture

Examples

## Not run: 

a <- calcOutput("CoolingSharesAll")

## End(Not run)

Calculate Cooling Type Shares for the Base Year

Description

This function calculates REMIND input data for the shares of cooling types per electricity technology and REMIND region in 2005, using as initial information the Davies (2013) data per electricity technology and GCAM region. The source data provide most required information but some assumptions on missing data are also made.

Usage

calcCoolingSharesBase()

Value

MAgPIE object on cooling type shares per elecricity technology and REMIND region

Author(s)

Lavinia Baumstark, Ioanna Mouratiadou

See Also

calcOutput, readDaviesCooling, convertDaviesCooling, calcCoolingSharesAll,calcCoolingSharesFuture

Examples

## Not run: 
a <- calcOutput("CoolingSharesBase")

## End(Not run)

Calculate Cooling Type Shares for Future Timesteps

Description

This function calculates REMIND input data for the shares of cooling types per electricity technology and REMIND region in post-2020, using as initial information the Davies (2013) data per electricity technology and GCAM region. The source data provide most required information but some assumptions on missing data are also made.

Usage

calcCoolingSharesFuture()

Value

MAgPIE object on cooling type shares per elecricity technology and REMIND region

Author(s)

Ioanna Mouratiadou

See Also

calcOutput, readDaviesCooling, convertDaviesCooling, calcCoolingSharesAll,calcCoolingSharesBase

Examples

## Not run: 
a <- calcOutput("CoolingSharesFuture")

## End(Not run)

Calculate trade costs

Description

Provides REMIND data for PE tradecosts (energy losses on import).

Usage

calcCostsTrade()

Value

REMIND data forPE tradecosts (energy losses on import) and corresonding weights (1) as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput, readSource

Examples

## Not run: 
calcOutput("calcCostsTrade")

## End(Not run)

Calculate Trade Cost

Description

Provides REMIND data for PE trade cost (energy losses on import, export and use).

Usage

calcCostsTradePeFinancial()

Author(s)

Regina Brecha, Lavinia Baumstark

See Also

calcOutput, readSource

Examples

## Not run: 
calcOutput("CostsTradePeFinancial")

## End(Not run)

Calculate costs of transport of enhanced weathering

Description

Calculate costs of transport of enhanced weathering

Usage

calcCostsWeathering()

Value

transport costs of spreading rock on the fields

See Also

calcOutput

Examples

## Not run: 
calcOutput("CostsWeathering")

## End(Not run)

Aggregated investment cost data for REMIND regions (based on IEA_WEO)

Description

Disaggregated investment cost data is aggregated and technologies renamed to REMIND names

Usage

calcDiffInvestCosts(subtype)

Arguments

subtype

either "Invest_Costs" or "Efficiency"

Details

REMIND does not have a classification of coal power plants e.g., sub-critical. Therefore, countries are given coal plant costs assuming what type of coal plants are expected to develop there. For other technologies, certain assumptions are taken to change to REMIND convention.

Value

Magpie object with aggregated but differentiated investment costs for some technologies.

Author(s)

Aman Malik


Calculates the share of distributed solar pv, wind-onshore/offshore, hydro-small/large from 2015 to 2050. For spv - Only includes grid-connected pv.

Description

Calculates the share of distributed solar pv, wind-onshore/offshore, hydro-small/large from 2015 to 2050. For spv - Only includes grid-connected pv.

Usage

calcDspvShare(subtype)

Arguments

subtype

Either "current","expert", or "irena". Current are current shares extended until 2050. expert is based on Robert P.'s judgement, and irena are based on IRENA's 2050 global numbers. Hydro case remains same in all cases

Details

Known limitations - source for distributed spv (IEA Renewables 2019) is different than source for total spv (IRENA 2019)

Value

magpie object with REMIND-aggregated regions

Author(s)

Aman Malik


calc Early Retirement Adjustment Factor

Description

provides the extra retirement rate to account for relatively old fleet technologies retirement

Usage

calcEarlyRetirementAdjFactor(subtype = "none")

Arguments

subtype

Some scenarios may require certain regions to increase retirement rate, e.g. PPCA coal phase-out

Value

magpie object of additional adjusment percentage to be added to the fraction of the early retired capital in countries to account for relatively old technologies fleet

Author(s)

Renato Rodrigues

See Also

calcOutput

Examples

## Not run: 
calcOutput(type = "EarlyRetirementAdjFactor")

## End(Not run)

Calculate baseline emissions of waste

Description

Provides REMIND data for CO2 parameters to calculate baseline emissions of waste from population and investment.

Usage

calcEconometricEmiParameter()

Value

REMIND data for CO2 parameters to calculate baseline emissions of waste from population and investment and corresponding weights (population) as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput, readSource

Examples

## Not run: 
calcOutput("calcEconometricEmiParameter")

## End(Not run)

calcEDGAR7Fgases

Description

calcEDGAR7Fgases

Usage

calcEDGAR7Fgases()

Author(s)

Gabriel Abrahao


Prepare EDGETransport inputs

Description

Prepare EDGETransport inputs

Usage

calcEDGETransport(subtype)

Arguments

subtype

REMIND/iterative EDGE-T input data subtypes

Value

REMIND/iterative EDGE-T input data for all scenario combinations

Author(s)

Johanna Hoppe

See Also

readSource

Examples

## Not run: 
a <- calcOutput(type = "EDGETransport", subtype = "CAPEXandNonFuelOPEX", aggregate = F)

## End(Not run)

Calculate EEA emission projections from the two projections sources provided by EEA

Description

Calculate EEA emission projections from the two projections sources provided by EEA

Usage

calcEEAGHGProjections()

Value

A magpie object.

Author(s)

Falk Benke


calc Effort Sharing Reference Emissions

Description

provides region specific Effort Sharing Reference Emissions

Usage

calcEffortSharingRefEmi(subtype)

Arguments

subtype

type of reference emissions used to define emission reduction target fo European Effort Sharing Decision: EEA_GHG, Eurostat_GHG, REMIND_GHG (deprecated) or REMIND_CO2.

Value

2005 reference emissions to calculate effort sharing decision targets

Author(s)

Renato Rodrigues

Examples

## Not run: 
calcOutput("EffortSharingRefEmi",subtype="Eurostat_GHG")

## End(Not run)

calc Effort Sharing Target

Description

provides region specific Effort Sharing Emission target

Usage

calcEffortSharingTarget()

Value

target data magpie object

Author(s)

Renato Rodrigues

Examples

## Not run:  
calcOutput("EffortSharingTarget")

## End(Not run)

calc Ember

Description

prepare the yearly Ember electricity data set To use only a part of the Ember data, call calcOutput("Ember", subtype = "...") and convert to TW if you want to use capacities as input data to REMIND.

Usage

calcEmber(subtype = "all")

Arguments

subtype

data subtype. Either "capacity", "generation" or "all"

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Pascal Weigmann

See Also

['calcOutput()']


calcEmiAirPoll calculate Air Pollution Emissions

Description

calcEmiAirPoll calculate Air Pollution Emissions

Usage

calcEmiAirPollLandUse()

Value

magpie object

Author(s)

Julian Oeser

See Also

calcOutput

Examples

## Not run:  a <- calcOutput(type="EmiAirPollLandUse")

EmiCO2LandUse calculate co2 emissions from land use change

Description

EmiCO2LandUse calculate co2 emissions from land use change

Usage

calcEmiCO2LandUse()

Value

magpie object

Author(s)

Julian Oeser

See Also

calcOutput

Examples

## Not run:  a <- calcOutput(type="EmiCO2LandUse")

calcEmiLULUCFCountryAcc

Description

hisorical LULUCF emissions following country accounting

Usage

calcEmiLULUCFCountryAcc(subtype)

Arguments

subtype

Valid subtypes are 'UNFCCC'

Value

Magpie object with historical LULUCF emissions

Author(s)

Felix Schreyer


Calculate baseline emissions for maccs for 1990

Description

Provides REMIND data for baseline emissions for maccs for 1990.

Usage

calcEmiMac1990()

Value

REMIND data for baseline emissions for maccs for 1990 and corresonding weights (NULL) as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput, readSource

Examples

## Not run:  
calcOutput("calcEmiMac1990")

## End(Not run)

calcEmiPollutantExo calculate EmiPollutantExo based on RCP data

Description

calcEmiPollutantExo calculate EmiPollutantExo based on RCP data

Usage

calcEmiPollutantExo(subtype, aviationshippingsource = "RCP")

Arguments

subtype

Either 'Waste' or 'AviationShipping'

aviationshippingsource

Defines source for aviation and shipping emissions. Either 'RCP' or 'LeeGAINS'.

Value

magpie object

Author(s)

Julian Oeser

See Also

calcOutput

Examples

## Not run:  a <- calcOutput(type="EmiPollutantExo")

calc European Reference Emissions

Description

provides European 2030 emission targets in relation to 1990 and 2005 emissions

Usage

calcEmiReference()

Value

2030 emission reductions tragets for 40

Author(s)

Falk Benke and Renato Rodrigues

Examples

## Not run: 
calcOutput("EmiReference")

## End(Not run)

calcEmissions

Description

calcEmissions

Usage

calcEmissions(datasource = "CEDS16")

Arguments

datasource

"CEDS16", "CEDS2REMIND", "CEDS2024", "EDGAR", "EDGAR6", "EDGARghg" "LIMITS", "ECLIPSE", "GFED", "CDIAC"

Value

magpie object with historical emissions

Author(s)

Steve Smith, Pascal Weigmann


Output for 2 policy cases

Description

Output for 2 policy cases

Usage

calcEmiTarget(sources, subtype)

Arguments

sources

currently only UNFCCC_NDC

subtype

"Ghgshare2005", "Ghgfactor", "Ghghistshare"

Author(s)

Aman Malik, Christoph Bertram, Oliver Richters


calc ETS Reference Emissions

Description

provides region specific ETS Reference Emissions

Usage

calcETSRefEmi(subtype)

Arguments

subtype

type of reference emissions used to define emission reduction targets for European regulations: EEA_GHG

Value

2005 reference emissions to calculate ETS targets

Author(s)

Renato Rodrigues

Examples

## Not run:  
calcOutput("ETSRefEmi",subtype="EEA_GHG")

## End(Not run)

Calculate REMIND variables from European Energy Datasheets

Description

Calculate REMIND variables from European Energy Datasheets

Usage

calcEuropeanEnergyDatasheets(subtype)

Arguments

subtype

data subtype. Either "EU28" (data from June 20 including GBR) or "EU27" (latest data from August 23 without GBR)

Value

A magpie object.

Author(s)

Falk Benke


Calculate REMIND emission variables from historical Eurostat (env_air_gge) values

Description

Calculate REMIND emission variables from historical Eurostat (env_air_gge) values

Usage

calcEurostatEmissions()

Author(s)

Falk Benke


calculate exogenuous FE and ES demand pathways

Description

prepare data for exogenuous FE and ES demand pathways that do not come from EDGE models but from other sources and/or scenario literature. REMIND can be fixed to those demand pathways if the switch cm_exogDem_scen is activated.

Usage

calcExogDemScen()

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Felix Schreyer


Calculate expert guesses

Description

Calculate expert guesses

Usage

calcExpertGuess(subtype)

Arguments

subtype

must be 'tradeConstraints' (more to come)

Author(s)

Falk Benke


Calculates FE historical from IEA energy balances, projections from EDGE, and historical values from IEA WEO 2019

Description

Calculates FE historical from IEA energy balances, projections from EDGE, and historical values from IEA WEO 2019

Usage

calcFE(source = "IEA", scenario_proj = "SSP2", ieaVersion = "default")

Arguments

source

"IEA" or "IEA_WEO"

scenario_proj

"SSP2" by default unless overwritten

ieaVersion

Release version of IEA data, either 'default' (vetted and used in REMIND) or 'latest'.

Author(s)

Lavinia Baumstark, Aman Malik


Calculates Final Energy Demand for Industry, Buildings and Transport

Description

Calculates Final Energy Demand for Industry, Buildings and Transport

Usage

calcFEdemand()

Author(s)

Falk Benke


Returns the EDGE-Buildings data as REMIND variables

Description

Returns the EDGE-Buildings data as REMIND variables

Usage

calcFeDemandBuildings(subtype)

Arguments

subtype

either "FE", "FE_buildings", or "UE_buildings"

Author(s)

Robin Hasse


Calculates FE demand in transport as REMIND variables

Description

Calculates FE demand in transport as REMIND variables

Usage

calcFeDemandTransport()

Author(s)

Alois Dirnaicher, Johanna Hoppe


FE Share parameters used in REMIND

Description

FE Share parameters used in REMIND

Usage

calcFEShares(subtype)

Arguments

subtype

'ind_coal' for the share of coal used in industry. 'ind_bio' for the share of biomass used in industry

Author(s)

Antoine Levesque


Calculate FETaxes

Description

Reads in the data of the source IIASA_subs_taxes, by country. and calculate taxes at the final energy delivery level to the end-use sectors (industry, buildings and transport). Regional aggregation is done via the respective energy quantities as weights.

Usage

calcFETaxes(subtype = "taxes")

Arguments

subtype

choose between tax rates ("taxes") or subsidies rate ("subsidies") output

Value

MAgPIE object

Author(s)

Christoph Bertram and Renato Rodrigues

See Also

calcOutput, readIIASA_subs_taxes, convertIIASA_subs_taxes

Examples

## Not run: 
calcOutput("FETaxes")

## End(Not run)

generate F-Gases based on IMAGE data

Description

generate F-Gases based on IMAGE data

Usage

calcFGas(subtype = "interpolate2025")

Arguments

subtype

"interpolate2025" will intepolate from EDGAR historical data from 2025-2050 to account for the very old IMAGE scenarios. Any other subtype will ignore this step.

Value

magpie object with F-gases information

Author(s)

Lavinia Baumstark

See Also

calcOutput, readSource

Examples

## Not run: 
x <- calcOutput("FGas")

## End(Not run)

Floor space in buildings

Description

Residential, commercial and total floor space from EDGE-B. Set

Usage

calcFloorspace(onlyTotal = FALSE)

Arguments

onlyTotal

boolean, only give total instead of sub-sectoral floor space

Value

MAgPIE object with buildings floor space

Author(s)

Antoine Levesque, Robin Hasse


calc Fossil Extraction

Description

provides coefficients for fossil fuels (oil, gas and coal) and uranium extraction cost equations.

Usage

calcFossilExtraction(subtype = "FossilExtraction")

Arguments

subtype

Either 'FossilExtraction' or 'UraniumExtraction'

Value

magpie object of the coefficients for fossil fuels and uranium extraction cost equations

Author(s)

Renato Rodrigues, Felix Schreyer

See Also

calcOutput

Examples

## Not run: 
calcOutput(type = "FossilExtraction", subtype = "FossilExtraction")

## End(Not run)

calcGAINS

Description

Calculates air pollutant emissions and emission factors (user can choose) based on GAINS emissions and activity data. Result is given on GAINS sector level. User can choose between aggregated and extended sectoral resolution. Results are given for multiple scenarios. Scenario design is partly taken from the GAINS data and partly created in this function (particularly the SSPs).

Usage

calcGAINS(subtype = "emission_factors", sectoral_resolution = "extended")

Arguments

subtype

decides whether emissions or emission factors are returned

sectoral_resolution

aggreaged or extenden (uses different GAINS input data)


Calculate air pollution emissions and emission factors from GAINS data

Description

Provides input data for exoGAINSAirpollutants.R

Usage

calcGAINSEmi(subtype = "emissions")

Arguments

subtype

"emission_factors", "emissions","emissions_starting_values"

Value

Emissions and emission factors

Author(s)

Sebastian Rauner

See Also

calcOutput

Examples

## Not run: 
calcOutput("calcGAINSEmi")

## End(Not run)

calcGEA2012

Description

Extracts oil, gas and coal data from the GEA 2012 into a scenario- and time-dependent grade structure

Usage

calcGEA2012(subtype, datatype)

Arguments

subtype

oil, coal, gas, or bounds

datatype

extraseed, exportbound, or decoffset for bounds subtype

Value

MAgPIE object containing regionally aggregated GEA 2012 data

Author(s)

Stephen Bi

See Also

calcOutput

Examples

## Not run: 
a <- calcOutput("GEA2012")

## End(Not run)

Calc capacities from Global Energy Monitor

Description

Calculate near-term expectations of capacities for use in fullVALIDATION.R

Usage

calcGlobalEnergyMonitor()

Value

A magpie object.

Author(s)

Falk Benke


Gather reference data from various sources.

Description

Gather reference data from various sources.

Usage

calcHistorical()

Calculate Final Energy for the buildings sector from Heat Roadmap Europe scenarios

Description

Calculate Final Energy for the buildings sector from Heat Roadmap Europe scenarios

Usage

calcHRE()

Value

A magpie object.

Author(s)

Pascal Weigmann


Calculate REMIND emission variables from IEA ETP values

Description

Calculate REMIND emission variables from IEA ETP values

Usage

calcIEA_ETP()

Value

A magpie object.

Author(s)

Falk Benke


Calculate REMIND variables from IEA Global EV Outlook data

Description

Calculate REMIND variables from IEA Global EV Outlook data

Usage

calcIEA_EVOutlook()

Author(s)

Falk Benke


Calculate REMIND variables from IEA World Energy Outlook data.

Description

Calculate REMIND variables from IEA World Energy Outlook data.

Usage

calcIEA_WorldEnergyOutlook()

Author(s)

Falk Benke


Calc Input Output

Description

Computes IEA-based model data for different "subtypes" by use of raw IEA "Energy Balances" data and a mapping that corresponds to the structure of "products" and "flows" of IEA.

Usage

calcIO(
  subtype = c("input", "output", "output_biomass", "trade", "input_Industry_subsectors",
    "output_Industry_subsectors", "IEA_input"),
  ieaVersion = "default"
)

Arguments

subtype

Data subtype. See default argument for possible values.

ieaVersion

Release version of IEA data, either 'default' (vetted and used in REMIND) or 'latest'.

Details

Mapping structure example: IEA product ANTCOAL used for IEA flow TPATFUEL, contributes via REMIND technology coaltr for generating sesofos from pecoal (REMIND names)

When using subtype output_Industry_subsectors, additional corrections are applied to the IEA data in tool_fix_IEA_data_for_Industry_subsectors.

Value

IEA data as MAgPIE object aggregated to country level

Author(s)

Anastasis Giannousakis

See Also

calcOutput

Examples

## Not run: 
a <- calcOutput("IO", subtype = "output")

## End(Not run)

Calculate REMIND variables from historical IRENA capacities.

Description

Calculate REMIND variables from historical IRENA capacities.

Usage

calcIRENA()

Author(s)

Falk Benke


Calculate selected REMIND energy and emission variables from historical JRC IDEES values

Description

Calculate selected REMIND energy and emission variables from historical JRC IDEES values

Usage

calcJRC_IDEES(subtype)

Arguments

subtype

one of

  • 'Industry': calculate REMIND Industry variables

  • 'Transport': calculate REMIND Transport variables

  • 'ResCom': calculate REMIND Residential and Commercial variables

Value

A magpie object.

Author(s)

Falk Benke


write KLW damage parameters (from Kotz et al. 2024) into input data they are country-specific and should not be aggregated to the regional level at all

Description

write KLW damage parameters (from Kotz et al. 2024) into input data they are country-specific and should not be aggregated to the regional level at all

Usage

calcKLWdamage(subtype)

Arguments

subtype

"beta1", "beta2", "maxGMT"

Value

MAgPIE object of damage parameters for KLW damage function on country level and for 1000 boostrapping samples

Author(s)

Franziska Piontek


Read in abatement potential for CO2 land-use change derived from MAgPIE

Description

Rrange of possible abatement between maximum and minimum emission level in a year

Usage

calcMACCsCO2()

Value

MAgPIE object

Author(s)

David Klein

Examples

## Not run: 
calcOutput("MACCsCO2")

## End(Not run)

Calculate projected electricity from waste and other fossils using energy demands from IEA Energy Balances.

Description

This is used in remind2 reporting as input data to calculate additional capacity and secondary energy variables.

Usage

calcOtherFossilInElectricity()

Details

The projection focuses on a tight mitigation scenario and assumes that all fossil emissions from waste burning / other fossil processes can be reduced to 0 by 2050. Should be replaced in the future by actual modeling of waste / other fossil plants, or at least connected to RCP scenario assumptions.

Value

A list with a magpie object x, weight, unit, description.

Author(s)

Robert Pietzcker, Falk Benke

See Also

calcOutput()


Computes Primary Energy variables

Description

Computes Primary Energy variables

Usage

calcPE(subtype = "IEA", ieaVersion = "default")

Arguments

subtype

source for calculation, either "IEA" or "IEA_WEO"

ieaVersion

Release version of IEA data, either 'default' (vetted and used in REMIND) or 'latest'.

Value

a magclass object


Calculate SubsStationary

Description

Reads in the data of the source IIASA_subs_taxes, by country. and calculate taxes at primary energy level. Regional aggregation is done via the respective energy quantities as weights.

Usage

calcPETaxes(subtype = "subsidies")

Arguments

subtype

subsidies rate ("subsidies") output

Value

MAgPIE object

Author(s)

Christoph Bertram and Renato Rodrigues

See Also

calcOutput, readIIASA_subs_taxes, convertIIASA_subs_taxes

Examples

## Not run: 
calcOutput("PETaxes")

## End(Not run)

calculates projections for the end of life fate of plastic waste in particular, calculates the share that is incinerated

Description

calculates projections for the end of life fate of plastic waste in particular, calculates the share that is incinerated

Usage

calcPlasticsEoL()

Value

A list with a magpie object x, weight, unit, description.

Author(s)

Falk Benke, Simón Moreno Leiva

See Also

calcOutput()


Calculate Geothermal potential

Description

Provides geothermal potential data

Usage

calcPotentialGeothermal()

Value

geothermal potential data MAgPIE object

Author(s)

Renato Rodrigues

See Also

calcOutput

Examples

## Not run:  
calcOutput("PotentialGeothermal")


## End(Not run)

Calculate hydro potential

Description

Provides hydro potential data

Usage

calcPotentialHydro()

Value

hydro potential data and corresonding weights as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput, readWGBU, convertWGBU, readSource

Examples

## Not run:  
calcOutput("PotentialHydro")


## End(Not run)

Calculate hydro potential

Description

Provides weathering potential data

Usage

calcPotentialWeathering()

Value

weathering potential data and corresonding weights as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput

Examples

## Not run:  
calcOutput("PotentialWeathering")


## End(Not run)

Calculate wind offshore potential

Description

Provides wind offshore potential data

Usage

calcPotentialWindOff()

Value

wind offshore potential data and corresonding weights as a list of two MAgPIE objects

Author(s)

Chen Chris Gong

See Also

calcOutput, readNREL, convertNREL, readSource

Examples

## Not run:  
calcOutput("PotentialWindOff")


## End(Not run)

Calculate wind onshore potential

Description

Provides wind onshore potential data

Usage

calcPotentialWindOn()

Value

wind onshore potential data and corresonding weights as a list of two MAgPIE objects

Author(s)

Lavinia Baumstark

See Also

calcOutput, readNREL, convertNREL, readSource

Examples

## Not run:  
calcOutput("PotentialWindOn")


## End(Not run)

Manufacture production shares for spc and wind

Description

Shares of world manufacture for spv modules and wind turbines for 2018 and 2019

Usage

calcProdShares()

Value

magpie object with REMIND-aggregated region

Author(s)

Aman Malik


calc Project Pipelines

Description

Calculate the expected near-term deployment of technologies based on projects that are currently either being built or in a planning stage for some technologies multiple sources are available. Output object currently needs to contain years 2020, 2025 and 2030.

Usage

calcProjectPipelines(subtype)

Arguments

subtype

choose technology 'biomass', 'coal', 'geothermal', 'hydro', 'nuclear', 'solar', 'wind' or 'CCS'

Details

Discussions on sources and assumptions: https://github.com/pik-piam/mrremind/discussions

Author(s)

Pascal Weigmann


calc RLDC Coefficients

Description

provides RLDC coefficients values

Usage

calcRLDCCoefficients(subtype = "LoB")

Arguments

subtype

Either 'LoB' or 'Peak'

Value

magpie object of the RLDC coefficients data

Author(s)

Renato Rodrigues

See Also

calcOutput

calcOutput

Examples

## Not run:  
calcOutput(type="RLDCCoefficients",subtype='LoB')

## End(Not run)

calc Shared Target

Description

provides region specific target

Usage

calcSharedTarget(subtype)

Arguments

subtype

data subtype. Either "FErenewablesShare", ...

Value

target data magpie object

Author(s)

Renato Rodrigues

Examples

## Not run: 
calcOutput("SharedTarget",subtype="FErenewablesShare")

## End(Not run)

calcSolar calculate Area, Capacity and Energy for photovoltaics (PV) and contentrated solar power (CSP)

Description

calcSolar calculate Area, Capacity and Energy for photovoltaics (PV) and contentrated solar power (CSP)

Usage

calcSolar()

Value

magpie object

Author(s)

Julian Oeser, modified by Renato Rodrigues

See Also

calcOutput

Examples

## Not run:  a <- calcOutput(type="Solar")

calc Capacity Factor

Description

provides capacity factor values

Usage

calcStorageFactor()

Value

magpie object of the capacity factor data

Author(s)

Lavinia Baumstark

See Also

calcOutput

Examples

## Not run: 
calcOutput("StorageFactor")

## End(Not run)

calc Tax Convergence

Description

tax convergence levels for specific regions

Usage

calcTaxConvergence(subtype)

Arguments

subtype

either taxConvergence or taxConvergenceRollback

Value

magpie object of the tax convergence levels

Author(s)

Renato Rodrigues

Examples

## Not run: 
calcOutput("TaxConvergence")

## End(Not run)

calc Tax Limits

Description

tax and subsidies maximum levels. The tax limits serve as a work around to avoid excess of subsidy levels that could cause problems on the REMIND model solution. These files should be removed or replaced once a better way to handle this issue is introduced to the REMIND model formulation or once better yearly and country subsidy level data is available for the primary and final energies.

Usage

calcTaxLimits(subtype)

Arguments

subtype

Name of the subsidy data type limit, e.g. "maxFeSubsidy" for maximum final energy subsidy,"maxPeSubsidy" for maximum primary energy subsidy or "propFeSubsidy" for proportional cap for final energy subsidy

Value

magpie object of the subtype tax limit

Author(s)

Renato Rodrigues

Examples

## Not run: 
calcOutput("TaxLimits")

## End(Not run)

write TC damage parameters into input data they are country-specific and should not be aggregated to the regional level at all

Description

write TC damage parameters into input data they are country-specific and should not be aggregated to the regional level at all

Usage

calcTCdamage(subtype)

Arguments

subtype

"const", "tasK"

Value

MAgPIE object of damage parameters for country level tropical cyclone damage function

Author(s)

Franziska Piontek


Calculate regional Theil-T index

Description

To calculate the regional Theil-T index (= correction to welfare function for a lognormal income distribution) we do the following: (1) convert country-level Gini coefficients to Theil (2) calculate contribution to Theil-T index that includes both between-countries and within-country inequality (see e.g. https://en.wikipedia.org/wiki/Theil_index). The latter can then be aggregated with calcOutput().

Usage

calcTheil()

Details

NB 1: the aggregation depends on the region mapping. It is implemented such that the regionmapping specified in getConfig()$regionmapping is used.

NB 2: the result of calcOutput('Theil', aggregate = FALSE), is NOT the country Theil-T, but the unweighted contribution from a given country to the regional value.

Value

magpie objects of unweighted contribution to Theil, weights (= country shares of regional GDP)

Author(s)

Bjoern Soergel

See Also

calcOutput convertGini,readGini

Examples

## Not run: 
  calcOutput("Theil")

## End(Not run)

Computes Trade variables based on latest IEA data available

Description

Computes Trade variables based on latest IEA data available

Usage

calcTrade()

Value

a magclass object


calc transport share in GDP

Description

provides transport share in GDP to resize edge-t transportation purchase costs

Usage

calcTransportGDPshare()

Value

magpie object of transport shares in GDP

Author(s)

Renato Rodrigues

Examples

## Not run: 
calcOutput("TransportGDPshare")

## End(Not run)

Calculate REMIND final energy variables from historical UBA values

Description

Calculate REMIND final energy variables from historical UBA values

Usage

calcUBA()

Value

A magpie object.

Author(s)

Falk Benke


Calculate REMIND emission variables from historical UNFCCC values

Description

Calculate REMIND emission variables from historical UNFCCC values

Usage

calcUNFCCC()

Value

A magpie object.

Author(s)

Falk Benke, Pascal Weigmann


Calculate waste energy use shares based on IEA World Energy Balances

Description

The output of this function is used in remind2 for reporting purposes.

Usage

calcWasteEnergyUseShares()

Author(s)

Robert Pietzcker, Falk Benke


Calculate Water Consumption Coefficients

Description

This function calculates REMIND input data on water consumption coefficients per electricity technology, using as initial information the Macknick (2011) data per electricity technology. The source data provide most required information but some assumptions on missing data are also made.

Usage

calcWaterConsCoef()

Value

MAgPIE object on water consumption coefficients per electricity technology

Author(s)

Ioanna Mouratiadou

See Also

calcOutput, readMacknickIntensities, calcWaterWithCoef

Examples

## Not run: 
calcOutput("WaterConsCoef")

## End(Not run)

Calculate Water Withdrawal Coefficients

Description

This function calculates REMIND input data on water withdrawal coefficients per electricity technology, using as initial information the Macknick (2011) data per electricity technology. The source data provide most required information but some assumptions on missing data are also made.

Usage

calcWaterWithCoef()

Value

MAgPIE object on water withdrawal coefficients per elecricity technology

Author(s)

Ioanna Mouratiadou

See Also

calcOutput, readMacknickIntensities, calcWaterConsCoef

Examples

## Not run: 
calcOutput("WaterWithCoeff")

## End(Not run)

Convert AGEB data

Description

Convert AGEB data

Usage

convertAGEB(x)

Arguments

x

A magpie object returned from readAGEB().

Value

A magpie object.

Author(s)

Falk Benke


Convert Ariadne DB data

Description

convert Ariadne database data

Usage

convertAriadneDB(x)

Arguments

x

A ['magpie'][magclass::magclass] object returned from ['readAriadneDB()'].

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Felix Schreyer


Converts BGR oil, gas, coal and uranium reserves data

Description

Converts BGR oil, gas, coal and uranium reserves data

Usage

convertBGR(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

data subtype. Either "oil", "gas", "coal" or "uranium".

Value

A MAgPIE object containing BGR (Federal Institute for Geosciences and Natural Resources) country reserves disaggregated data of oil, gas, coal and uranium.

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- convertBGR(x, subtype = "oil")

## End(Not run)

Disaggregates and cleans BP data.

Description

Disaggregates and cleans BP data.

Usage

convertBP(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

Either "Emission", "Capacity", "Generation", "Production", "Consumption", "Trade Oil", "Trade Gas", "Trade Coal" or "Price"

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Aman Malik, Falk Benke


Convert Davies Cooling

Description

Convert Davies (2013) data on on shares of cooling types using mapping from GCAM regions to ISO country level.

Usage

convertDaviesCooling(x)

Arguments

x

MAgPIE object containing DaviesCooling data region resolution

Value

MAgPIE object of the Davies (2013) data disaggregated to country level

Author(s)

Lavinia Baumstark, Ioanna Mouratiadou

See Also

readDaviesCooling

Examples

## Not run:  a <- convertDaviesCooling(x)

Converts Dylan's Australian gas cost to magpie

Description

Converts Dylan's Australian gas cost to magpie

Usage

convertDylanAusGasCost(x)

Arguments

x

MAgPIE object to be converted

Value

magpie object of the CEMO data

Author(s)

Felix Schreyer

See Also

readSource


convertEDGAR7Fgases

Description

convertEDGAR7Fgases

Usage

convertEDGAR7Fgases(x)

Arguments

x

magpie object to be converted

Author(s)

Gabriel Abrahao


Convert EDGE Buildings data to data on ISO country level.

Description

Convert EDGE Buildings data to data on ISO country level.

Usage

convertEdgeBuildings(x, subtype = "FE")

Arguments

x

MAgPIE object containing EDGE values at ISO country resolution

subtype

either FE or Floorspace

Value

EDGE data as MAgPIE object aggregated to country level

Author(s)

Antoine Levesque, Robin Hasse


Convert EDGEtransport

Description

Convert EDGEtransport

Usage

convertEDGETransport(x, subtype)

Arguments

x

MAgPIE object containing EDGE-T values in 21 region resolution

subtype

REMIND/iterative EDGE-T input data subtypes

Value

REMIND/iterative EDGE-T input data as MAgPIE object disaggregated to ISO level

Author(s)

Johanna Hoppe


Convert Ember data

Description

Convert Ember data

Usage

convertEmber(x)

Arguments

x

A magpie object returned from readHRE().

Value

A magpie object.

Author(s)

Pascal Weigmann


Convert European Energy Datasheets

Description

Convert European Energy Datasheets

Usage

convertEuropeanEnergyDatasheets(x, subtype)

Arguments

x

European Energy Datasheets magpie object derived from readEuropeanEnergyDatasheets function

subtype

data subtype. Either "EU28" (data from June 20 including GBR) or "EU27" (latest data from August 23 without GBR)

Value

converted European Energy Datasheets magpie object

Author(s)

Renato Rodrigues and Atreya Shankar

Source

European Energy Datasheets public database https://energy.ec.europa.eu/data-and-analysis/eu-energy-statistical-pocketbook-and-country-datasheets_en

Examples

## Not run: 
test <- readSource("EuropeanEnergyDatasheets", subtype = "EU27", convert = TRUE)

## End(Not run)

Converts EU Effort Sharing targets and historical emissions

Description

Converts EU Effort Sharing targets and historical emissions

Usage

convertEurostat_EffortSharing(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

data subtype. Either "target" or "emissions"

Value

A MAgPIE object containing the EU Effort Sharing targets (

Author(s)

Renato Rodrigues

Examples

## Not run:  a <- convertEurostat_EffortSharing(x,subtype="target")

convertExpertGuess

Description

Converts data from expert guess

Usage

convertExpertGuess(x, subtype)

Arguments

x

unconverted magpie object from read-script

subtype

Type of data that are converted.

Value

magpie object with a completed dataset.

See Also

convertExpertGuess


convertGEA2012

Description

Converts oil, gas and coal data from the Global Energy Assessment 2012 to country-level aggregation

Usage

convertGEA2012(x, subtype)

Arguments

x

MAgPIE object to be disaggregated

subtype

Type of fossil fuel (oil, coal or gas)

Value

MAgPIE object containing country-level disaggregation of GEA 2012 data

Author(s)

Stephen Bi

See Also

readSource

Examples

## Not run: 
a <- readSource("GEA2012")

## End(Not run)

Convert GGDC 10-Sector Database - https://www.rug.nl/ggdc/structuralchange/previous-sector-database/10-sector-2014

Description

Convert GGDC 10-Sector Database - https://www.rug.nl/ggdc/structuralchange/previous-sector-database/10-sector-2014

Usage

convertGGDC10(x)

Arguments

x

MAgPIE object to be converted

Value

A MAgPIE object containing GGDC disaggregated data

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- convertGGDC10(x)

## End(Not run)

Convert Gini

Description

Converts Gini data from readGini() to ISO country level. Countries missing in the original data set will have their Gini set to zero ( a very small number for numerical reasons to be precise). The original data range is 2011-2100 in one-year steps, here we extend it to 2000-2150 in 5-year steps. Values before (after) the original range are held fixed at 2011 (2100) levels. Gini values for the SDP scenario are taken from the SSP1 scenario

Usage

convertGini(x)

Arguments

x

MAgPIE object containing Gini data with World Bank codes, 2011-2100, in percent (range 0-100)

Value

MAgPIE object of the Gini data in ISO countries, range 0-1

Author(s)

Bjoern Soergel

See Also

readSource readGini

Examples

## Not run: 
a <- convertGini(x)

## End(Not run)

Convert Global CCS Institute Project Database

Description

Convert Global CCS Institute Project Database

Usage

convertGlobalCCSinstitute(x, subtype = "08-09-2017")

Arguments

x

A magpie object returned by readGlobalCCSinstitute().

subtype

Project Database version to read, one of - '08-09-2017': Data apparently from June 2017. - '2023-11': Data from the Global Status of CCS 2023 report.

Value

A magpie object.


Convert Global Energy Monitor data

Description

Convert Global Energy Monitor data

Usage

convertGlobalEnergyMonitor(x)

Arguments

x

A magclass object returned from readGlobalEnergyMonitor().

Author(s)

Rahel Mandaroux, Falk Benke


Convert HRE data

Description

Convert HRE data

Usage

convertHRE(x)

Arguments

x

A magpie object returned from readHRE().

Value

A magpie object.

Author(s)

Pascal Weigmann


Nuclear data from world-nuclear.org

Description

Data on currently operating and under-construction nuclear power plants, reactors planned and proposed, electricity generation from nuclear

Usage

convertIAEA(x)

Arguments

x

MAgPIE object to be converted

Author(s)

Christoph Bertram


convert IAEA Power Reactor Information System

Description

convert IAEA Power Reactor Information System

Usage

convertIAEA_PRIS(x)

Arguments

x

a magclass object returned from 'readIAEA_PRIS()'

Author(s)

Pascal Weigmann


Convert IEA CCUS data

Description

Convert IEA CCUS data

Usage

convertIEA_CCUS(x)

Arguments

x

A magclass object returned from readIEA_CCUS().

Value

A magclass object.

Author(s)

Anne Merfort, Falk Benke


Convert IEA ETP projections

Description

Convert IEA ETP projections

Usage

convertIEA_ETP(x, subtype)

Arguments

x

IEA ETP projection magpie object derived from readIEA_ETP function

subtype

data subtype. Either "industry", "buildings", "summary", or "transport"

Author(s)

Falk Benke, Robin Hasse


Convert IEA EV Outlook

Description

Convert IEA EV Outlook

Usage

convertIEA_EVOutlook(x)

Arguments

x

a magclass object returned from 'readIEA_EVOutlook()'

Author(s)

Falk Benke


convert IEA Hydro Special Market Report

Description

convert IEA Hydro Special Market Report

Usage

convertIEA_HSMR(x)

Arguments

x

a magclass object returned from 'readIEA_HSMR()'

Author(s)

Pascal Weigmann


Convert IEA PVPS data from REMIND regions to iso countries

Description

maps to iso countries

Usage

convertIEA_PVPS(x)

Arguments

x

MAgPIE object to be converted

Value

Magpie object with IEA PVPS investment cost per country

Author(s)

Felix Schreyer


Reads the distributed solar pv capacity from IEA Renewables report (2019).

Description

Reads the distributed solar pv capacity from IEA Renewables report (2019).

Usage

convertIEA_REN(x)

Arguments

x

input magpie object

Details

Capacity in GW. Distributed solar, defined in the IEA Renewables (2019), includes rooftop residential (0-10 kW, grid-connected), rooftop and ground-mounted commercial and industrial (10-1000kW, grid-connected), and off-grid (8W - 100 kW)

Value

magpie object with country-wise distributed solar pv capacity

Author(s)

Aman Malik


Converts IEA World Energy Outlook data

Description

Converts IEA World Energy Outlook data

Usage

convertIEA_WEO(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

data subtype. Either "Capacity", "Generation", "Emissions", "Investment Costs", "O&M Costs" or "Efficiency"

Value

magpie object of the WEO data on generation (TWh), capacities (GW), emissions (Mt CO2) or disaggregated investment cost as magpie object

Author(s)

Renato Rodrigues and Aman Malik

See Also

readSource

Examples

## Not run: 
a <- convertWEO(x, subtype = "Capacity")

## End(Not run)

Convert IEA World Energy Outlook Data from 2023

Description

Convert IEA World Energy Outlook Data from 2023

Usage

convertIEA_WorldEnergyOutlook(x)

Arguments

x

magclass object to be converted

Author(s)

Falk Benke


Convert IIASA_subs_taxes data

Description

Convert IIASA subsidy and taxes data on ISO country level (removes countries not part of 249 oficial ISO countries and fills missing with zeros).

Usage

convertIIASA_subs_taxes(x, subtype)

Arguments

x

MAgPIE object containing IIASA subsidies and taxes data in country resolution

subtype

Type of country level data as compiled by IIASA that should be read in. Available types are:

  • tax_rate: tax rate pre final energy category

  • subsidies_bulk: subsidy rate per final energy category

  • energy: final energy quantities per category

Value

IIASA_subs_taxes data as MAgPIE object aggregated to country level

Author(s)

Christoph Bertram

Examples

## Not run: 
a <- convertIIASA_subs_taxes(x)

## End(Not run)

Converts IRENA Regional data

Description

Converts IRENA Regional data

Usage

convertIRENA(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

data subtype. Either "Capacity" or "Generation"

Value

A MAgPIE object containing IRENA country disaggregated data with historical electricity renewable capacities (MW) or generation levels (GWh)

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- convertIRENA(x, subtype = "Capacity")

## End(Not run)

convert KLW damage fills in countries for which no damage parameters are provided, setting parameters to zero

Description

convert KLW damage fills in countries for which no damage parameters are provided, setting parameters to zero

Usage

convertKLWdamage(x)

Arguments

x

is MAgPIE object containing the damage parameters from KLW

Value

MAgPIE object containing values for all 249 ISO countries

Author(s)

Franziska Piontek


Converts Final energy demand for feedstocks (non-energy use)

Description

Converts Final energy demand for feedstocks (non-energy use)

Usage

convertnonEnergyDemand(x)

Arguments

x

MAgPIE object to be converted

Value

A MAgPIE object containing country disaggregated data

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- convertnonEnergyDemand(x)

## End(Not run)

Convert NREL data

Description

Convert NREL data on ISO country level.

Usage

convertNREL(x)

Arguments

x

MAgPIE object containing NREL data country-region resolution

Value

NRELWirsenius data as MAgPIE object aggregated to country level

Author(s)

Lavinia Baumstark

Examples

## Not run: 
a <- convertNREL(x, subtype = "onshore")

## End(Not run)

Converts Openmod capacities data

Description

Converts Openmod capacities data

Usage

convertOpenmod(x)

Arguments

x

MAgPIE object to be converted

Value

A MAgPIE object containing openmod EU country disaggregated data with 2010 and 2015 electricity capacities (GW)

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- convertOpenmod(x)

## End(Not run)

Reads shares of world manufacture for spv modules and wind turbines.

Description

Reads shares of world manufacture for spv modules and wind turbines.

Usage

convertProdShares(x)

Arguments

x

input magpie object

Value

magpie object with shares

Author(s)

Aman Malik


convertRCP convert RCP data

Description

convertRCP convert RCP data

Usage

convertRCP(x, subtype)

Arguments

x

Input object obtained by readSource

subtype

Either 'Waste' or 'AviationShipping'

Value

magpie object of the RCP data

Author(s)

Julian Oeser


Converts REMIND regional data

Description

Converts REMIND regional data

Usage

convertREMIND_11Regi(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

Name of the regional data, e.g. "p4", "biomass", "ch4waste", "tradecost", "pe2se", "xpres_tax", "deltacapoffset", capacityFactorRules", "taxConvergence", "maxFeSubsidy", "maxPeSubsidy", "propFeSubsidy", "fossilExtractionCoeff", "uraniumExtractionCoeff", "RLDCCoefficientsLoB", "RLDCCoefficientsPeak", "earlyRetirementAdjFactor"

Value

A MAgPIE object containing country disaggregated data

Author(s)

original: not defined - capacity factor, tax, fossil and RLDC changes: Renato Rodrigues

Examples

## Not run:  a <- convertREMIND_11Regi(x,subtype="capacityFactorGlobal")

Convert RemindCesPrices

Description

Converts CES derivatives/prices from former REMIND runs to ISO level

Usage

convertRemindCesPrices(x, subtype = "ccd632d33a")

Arguments

x

MAgPIE object containing REMIND prices at the REMIND region resolution

subtype

Regional resolution of REMIND data which should be loaded. ccd632d33a corresponds to the REMIND-11, and 690d3718e1 to REMIND-H12

Value

magpie object of REMIND prices

Author(s)

Antoine Levesque

See Also

readSource


Policy targets for REN21

Description

This code aggregates and homogenises different types of renewable energy targets into total installed capacity targets (in GW).

Usage

convertREN21(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

Only "Capacity" asof now

Details

Policy database accessible in "inputdata/sources/REN21/README"

Value

Magpie object with Total Installed Capacity targets. The target years differ depending upon the database.

Author(s)

Aman Malik


Convert Stationary data to data on ISO country level.

Description

Convert Stationary data to data on ISO country level.

Usage

convertStationary(x)

Arguments

x

MAgPIE object to be converted

Author(s)

Antoine Levesque, Robin Hasse


convertStrefler

Description

Converts data on enhanced weathering

Usage

convertStrefler(x, subtype)

Arguments

x

unconverted magpie object from read-script

subtype

data subtype. Either "weathering_graderegi", or "weathering_costs"

Value

magpie object with a completed dataset


Convert TCdamage fills in countries not affected by tropical cyclones (TC), setting parameters to zero

Description

Convert TCdamage fills in countries not affected by tropical cyclones (TC), setting parameters to zero

Usage

convertTCdamageKrichene(x)

Arguments

x

is MAgPIE object containing the damage parameters for the TC-prone countries

Value

MAgPIE object containing values for all 249 ISO countries

Author(s)

Franziska Piontek


Convert UBA data

Description

Convert UBA data

Usage

convertUBA(x)

Arguments

x

A magpie object returned from readUBA().

Value

A magpie object.

Author(s)

Falk Benke


Convert UNFCCC data

Description

Convert UNFCCC data

Usage

convertUNFCCC(x)

Arguments

x

A magpie object returned from readUNFCCC().

Value

A magpie object.

Author(s)

Falk Benke


Policy targets for NDCs from UNFCCC_NDC

Description

Converts conditional and unconditional capacity targets into total capacity (GW) in target year the Generation targets are similar to the capacity targets but include the capacity factors, the Emissions targets are the total (except land CO2) emissions in the target year

Usage

convertUNFCCC_NDC(x, subtype)

Arguments

x

MAgPIE object to be converted

subtype

Capacity_YYYY_cond or Capacity_YYYY_uncond for Capacity Targets, Emissions_YYYY_cond or Emissions_YYYY_uncond for Emissions targets, with YYYY NDC version year

Value

Magpie object with Total Installed Capacity (GW) targets, target years differ depending upon the database.

Author(s)

Aman Malik, Christoph Bertram, Oliver Richters


Convert WGBU data

Description

Convert WGBU data on ISO country level.

Usage

convertWGBU(x)

Arguments

x

MAgPIE object containing WGBU data country-region resolution

Value

WGBU data as MAgPIE object aggregated to country level

Author(s)

Lavinia Baumstark

Examples

## Not run: 
a <- convertWGBU(x)

## End(Not run)

fullDECENT

Description

Function that produces the complete regional data set required for the DECENT model.

Usage

fullDECENT(rev = 0)

Arguments

rev

data revision which should be used as input (positive numeric).

Author(s)

Lavinia Baumstark, Lukas Feldhaus

See Also

readSource,getCalculations,calcOutput

Examples

## Not run: 
fullDECENT()

## End(Not run)

fullREMIND

Description

Function that produces the complete regional data set required for the REMIND model.

Usage

fullREMIND()

Author(s)

Lavinia Baumstark

See Also

readSource,getCalculations,calcOutput

Examples

## Not run: 
fullREMIND()

## End(Not run)

export validation thresholds

Description

assemble near-term thresholds from project pipelines and potentially other data sources and export them to a file

Usage

fullTHRESHOLDS(type = "config")

Arguments

type

choose either "config" to export thresholds as used in the validationConfig or "full" to export all pipeline data

Author(s)

Pascal Weigmann


Generate Validation Data for REMIND

Description

Function that generates the historical regional dataset against which the REMIND model results can be compared.

Usage

fullVALIDATIONREMIND(rev = 0)

Arguments

rev

Unused parameter here for the pleasure of madrat.

Author(s)

David Klein, Falk Benke

See Also

fullREMIND(), readSource(), getCalculations(), calcOutput()

Examples

## Not run: 
fullVALIDATIONREMIND()

## End(Not run)

Read AGEB

Description

Read AGEB

Usage

readAGEB(subtype = "balances")

Arguments

subtype

data subtype. Either "balances" ("Auswertungstabellen zur Energiebilanz Deutschland") or "electricity" ("Bruttostromerzeugung in Deutschland nach Energietraegern")

Value

A magpie object.

Author(s)

Falk Benke


Read GWP (or other metrics) from the AR6 WGIII Table SM7 per GHG species

Description

Read GWP (or other metrics) from the AR6 WGIII Table SM7 per GHG species

Usage

readAR6GWP(subtype = "GWP100")

Arguments

subtype

data subtype. Currently just "GWP100", but other metrics are also available in the input data

Value

A data.frame with two columns, "Gas", with the common name of the GHG species, and "GWP", with the selected GWP

Author(s)

Gabriel Abrahao


Ariadne database scenario data

Description

Scenario data from the Ariadne modeling intercomparison project for Germany. See README in input file for more details.

Usage

readAriadneDB()

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Felix Schreyer


Read BGR oil, gas, coal and uranium reserves data

Description

Read-in BGR csv files as magclass object

Usage

readBGR(subtype)

Arguments

subtype

data subtype. Either "oil", "gas", "coal" or "uranium".

Value

magpie object of the BGR (Federal Institute for Geosciences and Natural Resources) data of reserves of oil, gas, coal and uranium per country.

Author(s)

Renato Rodrigues

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "BGR", subtype = "oil")

## End(Not run)

BP Capacity and Generation Data

Description

BP Capacity and Generation Data

Usage

readBP(subtype)

Arguments

subtype

Either "Emission", Capacity", "Generation", "Production", "Consumption", "Trade Oil", "Trade Gas", "Trade Coal" or "Price"

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Aman Malik, Falk Benke


Read Employment factors and cumulative jobs for RE techs (for India)

Description

Read Employment factors and cumulative jobs for RE techs (for India)

Usage

readCEEW(subtype)

Arguments

subtype

data subtype. Either "Employment factors" or "Employment"

Details

Reports published by CEEW et al. See README.txt in the source folder for more information.

Author(s)

Aman Malik

Examples

## Not run: 
a <- readSource("CEEW",convert=F,subtype="Employment")

## End(Not run)

Read Davies Cooling

Description

Read in Davies (2013) data on shares of cooling types per electricity technology and GCAM region

Usage

readDaviesCooling(subtype)

Arguments

subtype

Type of Davies data that should be read. Available types are:

  • dataBase: The Davies source data for the base year

  • dataFuture: The Daves source data for the future

Value

MAgPIE object of the Davies (2013) data

Author(s)

Lavinia Baumstark, Ioanna Mouratiadou

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "DaviesCooling")

## End(Not run)

read-in power Australian gas extraction cost curve based on Dylan's data Australian contact: Dylan McConnell, dylan.mcconnell(at)unimelb.edu.au

Description

read-in power Australian gas extraction cost curve based on Dylan's data Australian contact: Dylan McConnell, dylan.mcconnell(at)unimelb.edu.au

Usage

readDylanAusGasCost()

Value

magpie object of the cemo database data

Author(s)

Felix Schreyer

See Also

readSource


Read EDGAR7 emissions data for F-gases per species, in kt of each gas

Description

Read EDGAR7 emissions data for F-gases per species, in kt of each gas

Usage

readEDGAR7Fgases()

Value

A magpie object with F-gases emissions per gas species and per country

Author(s)

Gabriel Abrahao


Load an EDGE Buildings file as magclass object.

Description

Load an EDGE Buildings file as magclass object.

Usage

readEdgeBuildings(subtype = c("FE", "Floorspace"))

Arguments

subtype

One of the possible subtypes, see default argument.

Value

magclass object

Author(s)

Antoine Levesque, Robin Hasse


Read REMIND/EDGE-T iterative input data

Description

Run EDGE-Transport Standalone in all used scenario combinations to supply input data to REMIND and the iterative EDGE-T script

Usage

readEDGETransport(subtype)

Arguments

subtype

REMIND/iterative EDGE-T input data subtypes

Value

magpie object of EDGEtransport iterative inputs

Author(s)

Johanna Hoppe

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "EDGETransport")

## End(Not run)

Read Ember Yearly Electricity Data

Description

Read Ember Yearly Electricity Data

Usage

readEmber()

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Pascal Weigmann

Source

https://ember-climate.org/data-catalogue/yearly-electricity-data/

See Also

['readSource()']


Read European Energy Datasheets

Description

Read European Energy Datasheets .xlsx file as magpie object.

Usage

readEuropeanEnergyDatasheets(subtype)

Arguments

subtype

data subtype. Either "EU28" (data from June 20 including GBR) or "EU27" (latest data from August 23 without GBR)

Value

magpie object of European Energy Datasheets

Author(s)

Renato Rodrigues, Atreya Shankar, Falk Benke

Source

European Energy Datasheets public database https://energy.ec.europa.eu/data-and-analysis/eu-energy-statistical-pocketbook-and-country-datasheets_en

Examples

## Not run: 
test <- readSource("EuropeanEnergyDatasheet", subtype = "EU27", convert = FALSE)

## End(Not run)

Read EU Effort Sharing targets and historical emissions

Description

Read-in EU Effort Sharing targets and historical emissions csv files as magclass object

Usage

readEurostat_EffortSharing(subtype)

Arguments

subtype

data subtype. Either "target" or "emissions"

Value

magpie object of the EU Effort Sharing targets (

Author(s)

Renato Rodrigues

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "Eurostat_EffortSharing", subtype = "target")

## End(Not run)

Read ExpertGuess

Description

Read-in data that are based on expert guess

Usage

readExpertGuess(subtype)

Arguments

subtype

Type of data that should be read. One of

  • Chinese_Steel_Production: "Smooth" production estimates by Robert Pietzcker (2022).

  • industry_max_secondary_steel_share: Maximum share of secondary steel production in total steel production and years between which a linear convergence from historic to target shares is to be applied.

  • cement_production_convergence_parameters: convergence year and level (relative to global average) to which per-capita cement demand converges

  • ies

  • prtp

  • CCSbounds

  • costsTradePeFinancial

  • tradeContsraints: parameter by Nicolas Bauer (2024) for the region specific trade constraints, values different to 1 activate constraints and the value is used as effectiveness to varying degrees such as percentage numbers

Value

magpie object of the data

Author(s)

Lavinia Baumstark

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "ExpertGuess", subtype = "ies")

## End(Not run)

Data from the Global Coal Plant Tracker January 2021 release by Global Energy Monitor (formerly EndCoal/CoalSwarm)

Description

Historical data of operating, under-construction, planned and announced Coal Plants by country (in MW) from the Global Energy Monitor's Global Coal Plant Tracker, and extrapolations for 2025 capacity scenarios

Usage

readGCPT(subtype)

Arguments

subtype

Options are status, historical, future, lifespans, comp_rates and emissions

Author(s)

Stephen Bi


read GEA 2012

Description

Read in datafiles comprising fossil fuel data from the Global Energy Assessment 2012

Usage

readGEA2012(subtype)

Arguments

subtype

Type of fossil fuel and type of data (oil, coal, or gas + costs, qtys, or dec)

Value

MAgPIE object of the GEA data

Author(s)

Stephen Bi

See Also

readSource

Examples

## Not run: 
a <- readSource("GEA2012", "coal")

## End(Not run)

Read GGDC 10-Sector Database - https://www.rug.nl/ggdc/structuralchange/previous-sector-database/10-sector-2014

Description

Read GGDC 10-Sector Database - https://www.rug.nl/ggdc/structuralchange/previous-sector-database/10-sector-2014

Usage

readGGDC10()

Author(s)

Renato Rodrigues

Examples

## Not run: 
a <- readSource("GGDC10",convert=F)

## End(Not run)

Read Gini

Description

Read Gini coefficients for SSP scenarios from Rao et al., Futures, 2018. Data has been provided by the authors, but will be made publicly available as well. This contains data for 184 countries and from 2011 onwards.

Usage

readGini()

Details

Copied from the documentation provided by the authors: This sheet contains the original Gini projections for 43 countries from the underlying empirical model (See reference to RSP 2016 in the main paper) and the extrapolations to all countries using the methodology described in the article. The country codes are the World Bank codes.

Value

magpie object of the Gini data

Author(s)

Bjoern Soergel

See Also

readSource convertGini

Examples

## Not run:  a <- readSource(type="Gini")

Read Global CCS Institute Project Database

Description

Read Global CCS Institute Project Database

Usage

readGlobalCCSinstitute(subtype = "08-09-2017")

Arguments

subtype

Project Database version to read, one of - '08-09-2017': Data apparently from June 2017. - '2023-11': Data from the Global Status of CCS 2023 report.

Value

A magpie object.


Read Global Energy Monitor data

Description

read GEM data for all available technologies and relevant statuses

Usage

readGlobalEnergyMonitor()

Author(s)

Rahel Mandaroux, Falk Benke, Pascal Weigmann


Read Heat Roadmap Europe data

Description

Read Heat Roadmap Europe data

Usage

readHRE()

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Pascal Weigmann

Source

https://heatroadmap.eu/roadmaps/

See Also

['readSource()']


Nuclear data from world-nuclear.org

Description

Data on currently operating and under-construction nuclear power plants, reactors planned and proposed, electricity generation from nuclear

Usage

readIAEA()

Author(s)

Christoph Bertram


read IAEA Power Reactor Information System

Description

read Nuclear capacities and near-term outlook from data scraped from https://pris.iaea.org/PRIS/CountryStatistics/CountryStatisticsLandingPage.aspx

Usage

readIAEA_PRIS()

Author(s)

Pascal Weigmann


Read IEA CCUS data

Description

Reads in capacities from projects in IEA CCUS database

Usage

readIEA_CCUS(subtype)

Arguments

subtype

either 'historical' for data until 2023, 'projections' for "high" and "low" projections up to 2030 used as input-data or 'pipeline' separated by status for use in formulating near-term bounds

Author(s)

Anne Merfort, Falk Benke


Read IEA ETP projections

Description

Read IEA ETP projections

Usage

readIEA_ETP(subtype)

Arguments

subtype

data subtype. Either "industry", "buildings", "summary", or "transport"

Author(s)

Falk Benke


Read IEA EV Outlook

Description

Read IEA EV Outlook

Usage

readIEA_EVOutlook()

Author(s)

Falk Benke


read IEA Hydro Special Market Report

Description

read Hydro capacities and near-term outlook from data scraped from https://www.iea.org/data-and-statistics/data-tools/hydropower-data-explorer

Usage

readIEA_HSMR()

Author(s)

Pascal Weigmann


Reads PV investment cost data for 2020 which are based on 2018 data from IEA PVPS report

Description

reads excel sheet with PV investment cost data

Usage

readIEA_PVPS()

Value

magpie object with PV investment cost data

Author(s)

Felix Schreyer


Reads the distributed solar pv capacity from IEA Renewables report (2019).

Description

Reads the distributed solar pv capacity from IEA Renewables report (2019).

Usage

readIEA_REN()

Details

Capacity in GW. Distributed solar, defined in the IEA Renewables (2019), includes rooftop residential (0-10 kW, grid-connected), tooftop and ground-mounted commercial and industrial (10-1000kW, grid-connected), and off-grid (8W - 100 kW)

Author(s)

Aman Malik


IEA World Energy Investment Outlook (2014)

Description

Read projected 2014-20 investments into industry energy efficiency from the [IEA World Energy Investment Outlook (2014)](http://www.iea.org/publications/freepublications/publication/weo-2014-special-report—investment.html)

Usage

readIEA_WEIO_2014()

Value

A [madrat_mule()] with a list containing the [tibble] 'data' with 2014–20 average annual investments into 'Energy intensive' and 'Non-energy intensive' industry, in $bn 2012, and the [tibble] 'country_groups' with 'IEA region's and corresponding 'iso3c' country codes.


Read IEA World Energy Outlook data

Description

Read-in IEA WEO 2016 data for investment costs, O&M costs and Efficiency of different technologies, and WEO 2017 data for historical electricity capacities (GW), generation (TWh) or emissions (Mt CO2). WEO 2019 data for PE and FE (Mtoe).

Usage

readIEA_WEO(subtype)

Arguments

subtype

data subtype. Either "Capacity", "Generation", "Emissions", "Investment Costs", "O&M Costs" or "Efficiency"

Value

magpie object of the WEO data on generation (TWh), capacities (GW), emissions (Mt CO2) or disaggregated investment cost as magpie object

Author(s)

Renato Rodrigues, Aman Malik, and Jerome Hilaire

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "WEO", subtype = "Capacity")

## End(Not run)

Read in IEA World Energy Outlook Data from 2023

Description

Read in IEA World Energy Outlook Data from 2023

Usage

readIEA_WorldEnergyOutlook()

Author(s)

Falk Benke


Read IIASA subsidies and taxes

Description

Read-in country level data on final energy taxes and subsidies as provided from IIASA from .csv file as magclass object

Usage

readIIASA_subs_taxes(subtype)

Arguments

subtype

Type of country level data as compiled by IIASA that should be read in. Available types are:

  • tax_rate: tax rate pre final energy category

  • subsidies_bulk: subsidy rate per final energy category

  • energy: final energy quantities per category

Value

magpie object of the IIASA_subs_taxes data

Author(s)

Christoph Bertram

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "IIASA_subs_taxes", "tax_rate")

## End(Not run)

Read IRENA

Description

Read-in an IRENA csv file as magclass object

Usage

readIRENA(subtype)

Arguments

subtype

data subtype. Either "Capacity" or "Generation"

Value

magpie object of the IRENA data with historical electricity renewable capacities (MW) or generation levels (GWh)

Author(s)

Renato Rodrigues

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "IRENA", subtype = "Capacity")

## End(Not run)

Reads country-specific damage coefficients for the damage function presented in Kotz et al. (2024). Data has been provided by the authors. This contains data for all countries and for 1000 boostrapping realizations per country, capturing uncertainty from climate and empirical modeling. Subtypes are the temperature and temperature^2 coefficients and the maximum temperature per country for which the function is defined.

Description

Reads country-specific damage coefficients for the damage function presented in Kotz et al. (2024). Data has been provided by the authors. This contains data for all countries and for 1000 boostrapping realizations per country, capturing uncertainty from climate and empirical modeling. Subtypes are the temperature and temperature^2 coefficients and the maximum temperature per country for which the function is defined.

Usage

readKLWdamage(subtype)

Arguments

subtype

data subtype. Either "beta1", "beta2" or "maxGMT"

Value

KLW damage coefficients

Author(s)

Franziska Piontek


readLee Read in Aviation emission data from Lee

Description

readLee Read in Aviation emission data from Lee

Usage

readLee(subtype)

Arguments

subtype

Either 'emi' or 'ef'

Value

magpie object of Aviation emission / emission factors data

Author(s)

Julian Oeser

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "", subtype = "Waste")

## End(Not run)

Read Macknic Intensities

Description

Read in Macknick (2011) data on water consumption and withdrawal coefficients per electricity technology

Usage

readMacknickIntensities(subtype)

Arguments

subtype

Type of Macknick data that should be read. Available types are:

  • data: The original Macknick source data

  • missingAssumed: Additional data to fill gaps

Value

MAgPIE object of the Macknick (2011) data

Author(s)

Ioanna Mouratiadou

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "MacknickIntensities", convert = FALSE)

## End(Not run)

Read NREL

Description

Read-in NREL xlsx file as magclass object

Usage

readNREL(subtype)

Arguments

subtype

type either "onshore" or "offshore"

Value

magpie object of NREL

Author(s)

Lavinia Baumstark

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "NREL", subtype = "onshore")

## End(Not run)

Read OECD

Description

Read-in risk premium

Usage

readOECD()

convertOECD(x)

Arguments

x

MAgPIE object returned from readOECD

Value

The read-in data, usually a magpie object. If supplementary is TRUE a list including the data and metadata is returned instead. The temporal and data dimensionality should match the source data. The spatial dimension should either match the source data or, if the convert argument is set to TRUE, should be on ISO code country level.

See Also

[madrat::readSource()]

Examples

## Not run: 
readSource("OECD")

## End(Not run)

Read Openmod capacities data

Description

Read-in an modified openmod capacities data file as magclass object

Usage

readOpenmod()

Value

magpie object of the LIMES team updated Openmod data on capacities (GW)

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "Openmod")

## End(Not run)

Reads shares of world manufacture for spv modules and wind turbines.

Description

Reads shares of world manufacture for spv modules and wind turbines.

Usage

readProdShares()

Author(s)

Aman Malik


Read PWT

Description

Read-in PWT data as magclass object

Usage

readPWT()

convertPWT(x)

Arguments

x

MAgPIE object returned by readPWT

Value

The read-in data, usually a magpie object. If supplementary is TRUE a list including the data and metadata is returned instead. The temporal and data dimensionality should match the source data. The spatial dimension should either match the source data or, if the convert argument is set to TRUE, should be on ISO code country level.

See Also

[madrat::readSource()]

Examples

## Not run: 
readSource("PWT")

## End(Not run)

Read RCP Read in RCP data

Description

Read RCP Read in RCP data

Usage

readRCP(subtype)

Arguments

subtype

Either 'Waste' or 'AviationShipping'

Value

magpie object of the RCP data

Author(s)

Julian Oeser

See Also

readSource

Examples

## Not run:  a <- readSource(type="RCP", subtype="Waste")

Read REMIND region dependent data

Description

Read-in an csv files that contains regional data

Usage

readREMIND_11Regi(subtype)

Arguments

subtype

Name of the regional data, e.g. "p4", "biomass", "ch4waste", "tradecost", "pe2se", "xpres_tax", "deltacapoffset", "capacityFactorGlobal", "capacityFactorRules", "residuesShare", "taxConvergence", "maxFeSubsidy", "maxPeSubsidy", "propFeSubsidy", "fossilExtractionCoeff", "uraniumExtractionCoeff", "RLDCCoefficientsLoB", "RLDCCoefficientsPeak", "earlyRetirementAdjFactor"

Value

magpie object of region dependent data

Author(s)

original: not defined, capacity factor, tax, fossil and RLDC changes: Renato Rodrigues

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "REMIND_11Regi", subtype = "capacityFactorGlobal")

## End(Not run)

Reads policy database from REN21 2017 with capacity targets or regional technology costs

Description

Reads excel sheet with data on proposed policies, on Renewable energy capacity targets (which are broken down into Total Installed Capacity (TIC-Absolute), Additional Installed Capacity (AC-Absolute), and Production Absolute targets) or regional technology costs

Usage

readREN21(subtype)

Arguments

subtype

Capacity Generation Emissions Share

Details

Country name is ISO coded. Capacity/Additional Capacity targets are in GW. Generation/Production targets are in GWh.

Value

magpie object with Total Installed Capacity targets in GW for different target years

Author(s)

Aman Malik, Lavinia Baumstark


Load Stationary File as magclass object

Description

Load Stationary File as magclass object

Usage

readStationary()

Value

magclass object

Author(s)

Antoine Levesque, Robin Hasse


Get data on enhanced weathering

Description

Get data on enhanced weathering

Usage

readStrefler(subtype)

Arguments

subtype

type of data, one of "weathering_graderegi", "weathering_costs"

Value

magpie object of region dependent data

See Also

readSource

Examples

## Not run: 
a <- readSource(type="Strefler", subtype="weathering_graderegi")

## End(Not run)

Reads country-specific damage coefficients for tropical cyclones from Krichene et al. (in prep.). Data has been provided by the authors, but will be made publicly available as well. This contains data for 41 countries (those exposed to tropical cyclones), and two coefficients (constant and linear temperature)

Description

Reads country-specific damage coefficients for tropical cyclones from Krichene et al. (in prep.). Data has been provided by the authors, but will be made publicly available as well. This contains data for 41 countries (those exposed to tropical cyclones), and two coefficients (constant and linear temperature)

Usage

readTCdamageKrichene(subtype)

Arguments

subtype

data subtype. Either "const" or "tasK"

Value

TC damage coefficients

Author(s)

Franziska Piontek


Read UBA

Description

Read UBA

Usage

readUBA()

Value

A magpie object.

Author(s)

Falk Benke


Read UNFCCC data

Description

Read UNFCCC data

Usage

readUNFCCC()

Value

A ['magpie'][magclass::magclass] object.

Author(s)

Falk Benke

See Also

['readSource()']


Reads NDC policy database with capacity, emission, and share targets, originally based on Rogelj et al. 2017

Description

Reads excel sheet with NDC (Nationally Determined Contributions) data on different policy targets (capacity, emission, and share targets) with different variations

Usage

readUNFCCC_NDC(subtype)

Arguments

subtype

Capacity_2023_cond (or 2018/2021/2022 or uncond) for capacity target, Emissions_2023_cond (or 2018/2021/2022 or uncond) for Emissions targets

Details

Country name is ISO coded. Capacity/Additional Capacity targets are in GW. Generation/Production targets are in GWh.

Value

magpie object

Author(s)

Aman Malik, Christoph Bertram, Oliver Richters, Sophie Fuchs, Rahel Mandaroux


Read WGBU

Description

Read-in an WGBU xlsx file as magclass object

Usage

readWGBU()

Value

magpie object of WGBU

Author(s)

Lavinia Baumstark

See Also

readSource

Examples

## Not run: 
a <- readSource(type = "WGBU")

## End(Not run)

Wrapper around magclass::add_dimension supporting more than one value for the new dimension. For each value, the input magclass object is copied, extended by the new dimension and appended to the output.

Description

Wrapper around magclass::add_dimension supporting more than one value for the new dimension. For each value, the input magclass object is copied, extended by the new dimension and appended to the output.

Usage

toolAddDimensions(x, dimVals, dimName, dimCode)

Arguments

x

a magclass object

dimVals

list of values for the new dimension to be added

dimName

name of the new dimension

dimCode

dimension number of the new dimension (e.g. 3.1)

Value

the extended magclass object


Aggregate values to n-year averages to suppress volatility

Description

Aggregate values to n-year averages to suppress volatility

Usage

toolAggregateTimeSteps(x, nYears = 5)

Arguments

x

a magclass object

nYears

time steps to be used for averaging, defaults to 5

Value

magclass object with averages

Author(s)

Robin Hasse


toolBiomassSupplyAggregate The function aggregates biomass supply curves to regionmapping different from H12. It only works if all regions are subregions of H12 regions. The offset parameter (a) is taken from the H12 region. The slope parameter (b) is multiplied by a weight. The weight is the inverse of the share of agricultural area of the subregion in the H12 region.

Description

toolBiomassSupplyAggregate The function aggregates biomass supply curves to regionmapping different from H12. It only works if all regions are subregions of H12 regions. The offset parameter (a) is taken from the H12 region. The slope parameter (b) is multiplied by a weight. The weight is the inverse of the share of agricultural area of the subregion in the H12 region.

Usage

toolBiomassSupplyAggregate(
  x,
  rel = NULL,
  weight = calcOutput("FAOLand", aggregate = F)[, , "6610", pmatch = TRUE][, "y2010", ]
)

Arguments

x

magclass object that should be aggregated

rel

relation matrix containing a region mapping.

weight

aggregation weight

Value

return: returns region aggregated biomass supply curve data

Author(s)

Felix Schreyer


toolCubicFunctionAggregate

Description

Estimates the function that represents the sum of cubic function inverses (sum in the x-axis)

Usage

toolCubicFunctionAggregate(
  x,
  rel = NULL,
  xLowerBound = 0,
  xUpperBound = 100,
  returnMagpie = TRUE,
  returnCoeff = TRUE,
  returnChart = FALSE,
  returnSample = FALSE,
  numberOfSamples = 1000,
  unirootLowerBound = -10,
  unirootUpperBound = 1e+100,
  colourPallete = FALSE,
  label = list(x = "x", y = "y", legend = "legend"),
  steepCurve = list()
)

Arguments

x

magclass object that should be aggregated or data frame with coefficients as columns.

rel

relation matrix containing a region mapping. A mapping object should contain 2 columns in which each element of x is mapped to the category it should belong to after (dis-)aggregation

xLowerBound

numeric. Lower bound for x sampling (default=0).

xUpperBound

numeric. Upper bound for x sampling (default=100).

returnMagpie

boolean. if true, the function will return a single data table with all the countries in MagPie format. returnChart and returnSample are set to FALSE automatically if this option is active (default=TRUE).

returnCoeff

boolean. Return estimated coefficients (default=TRUE).

returnChart

boolean. Return chart (default=FALSE).

returnSample

boolean. Return samples used on estimation (default=FALSE).

numberOfSamples

numeric. NUmber of y-axis samples used on estimation (default=1e3).

unirootLowerBound

numeric. Lower bound to search for inverse solution in the initial bounds (default = -10).

unirootUpperBound

numeric. Upper bound to search for inverse solution in the initial bounds (default = 1e100).

colourPallete

vector. colour pallete to use on chart (default=FALSE).

label

list. List of chart labels (default=list(x = "x", y = "y", legend = "legend")).

steepCurve

list. List with coefficients for a very "vertical" function for the case with all countries with upper bound zero in an specific region aggregation (default= empty list, list()).

Details

Use case: aggregate country cubic cost functions to a single function that represents the entire region.

input: coefficients of the n-th country level cubic cost function.

Description of the problem: the aggregation of functions that represent unit costs, or prices in the y-axis, and quantities in the x-axis require operations with the inverse of the original functions. As complex functions present analytically challenging inverse function derivations, we adopt a sampling method to derive the function that corresponds to the sum of cubic function inverses.

Further extensions: the R function can be extended to support more complex curve estimations (beyonf third degree), whenever the mathematical function have a well defined inverse function in the selected boundaries.

Value

return: returns a list of magpie objects containing the coefficients for the aggregate function. If returnMagpie is FALSE, returns a list containing the coefficients for the aggregate function (returnCoeff=TRUE), charts (returnChart=FALSE) and/or samples used in the estimation (returnSample=FALSE).

Author(s)

Renato Rodrigues

See Also

toolCubicFunctionDisaggregate

Examples

# Example
# data
EUR <- setNames(data.frame(30, 50, 0.123432, 2), c("c1", "c2", "c3", "c4"))
NEU <- setNames(data.frame(30, 50, 1.650330, 2), c("c1", "c2", "c3", "c4"))
df <- rbind(EUR, NEU)
row.names(df) <- c("EUR", "NEU")
# maxExtraction (upper limit for function estimation)
maxExtraction <- 23
# output
output <- toolCubicFunctionAggregate(df,
  xUpperBound = maxExtraction,
  returnMagpie = FALSE, returnChart = TRUE, returnSample = TRUE,
  label = list(x = "Cumulated Extraction", y = "Cost", legend = "Region Fuel Functions")
)
output$coeff
output$chart

toolCubicFunctionDisaggregate

Description

Estimates cubic function inverses based on a weight factor that sum up to the original cubic function (sum in the x-axis)

Usage

toolCubicFunctionDisaggregate(
  x,
  weight,
  rel = NULL,
  xLowerBound = 0,
  xUpperBound = 100,
  returnMagpie = TRUE,
  returnCoeff = TRUE,
  returnChart = FALSE,
  returnSample = FALSE,
  numberOfSamples = 1000,
  unirootLowerBound = -10,
  unirootUpperBound = 1e+100,
  colourPallete = FALSE,
  label = list(x = "x", y = "y", legend = "legend")
)

Arguments

x

magclass object that should be aggregated or data frame with coefficients as columns.

weight

magclass object containing weights which should be considered for a weighted aggregation. The provided weight should only contain positive values, but does not need to be normalized (any positive number>=0 is allowed).

rel

relation matrix containing a region mapping. A mapping object should contain 2 columns in which each element of x is mapped to the category it should belong to after (dis-)aggregation

xLowerBound

numeric. Lower bound for x sampling (default=0).

xUpperBound

numeric. Upper bound for x sampling (default=100).

returnMagpie

boolean. if true, the function will return a single data table with all the countries in MagPie format. returnChart and returnSample are set to FALSE automatically if this option is active (default=TRUE).

returnCoeff

boolean. Return estimated coefficients (default=TRUE).

returnChart

boolean. Return chart (default=FALSE).

returnSample

boolean. Return samples used on estimation (default=FALSE).

numberOfSamples

numeric. NUmber of y-axis samples used on estimation (default=1e3).

unirootLowerBound

numeric. Lower bound to search for inverse solution in the initial bounds (default = -10).

unirootUpperBound

numeric. Upper bound to search for inverse solution in the initial bounds (default = 1e100).

colourPallete

vector. colour pallete to use on chart (default=FALSE).

label

list. List of chart labels (default=list(x = "x", y = "y", legend = "legend")).

Details

Use case: disaggregate a single region cubic cost function to multiple country cubic functions weighted by a contribution factor. The sum of the countries function output is equal to the original regional function.

input: coefficients of the n-th country level cubic cost function.

Description of the problem: the disaggregation of functions that represent unit costs (or prices) in the y-axis and quantities in the x-axis require operations with the inverse of the original functions. As complex functions present analytically challenging inverse function derivations, we adopt a sampling method to derive the function that corresponds to the sum of cubic function inverses.

Further extensions: the R function can be extended to support more complex curve estimations (beyond third degree), whenever the mathematical function have a well defined inverse function in the selected boundaries.

Value

return: returns a list of magpie objects containing the coefficients for the aggregate function. If returnMagpie is FALSE, returns a list containing the coefficients for the aggregate function (returnCoeff=TRUE), charts (returnChart=FALSE) and/or samples used in the estimation (returnSample=FALSE).

Author(s)

Renato Rodrigues

See Also

toolCubicFunctionAggregate

Examples

# Example
# LAM coefficients
df <- setNames(data.frame(30, 50, 0.34369, 2), c("c1", "c2", "c3", "c4"))
row.names(df) <- "LAM"
# weight
weight <- setNames(c(21, 0, 579, 3, 228), c("ARG", "BOL", "BRA", "CHL", "COL"))
# maxExtraction (upper limit for function estimation)
maxExtraction <- 100
# output
output <- toolCubicFunctionDisaggregate(df, weight,
  xUpperBound = maxExtraction,
  returnMagpie = FALSE, returnChart = TRUE, returnSample = TRUE,
  label = list(x = "Cumulated Extraction", y = "Cost", legend = "Region Fuel Functions")
) #' output$chart
output$coeff
output$chart

Sets values for 6 EU countries not belonging to EU 28 but EU 34 to zero if they are NA. Used to avoid EUR region yielding NA because of these countries.

Description

Sets values for 6 EU countries not belonging to EU 28 but EU 34 to zero if they are NA. Used to avoid EUR region yielding NA because of these countries.

Usage

toolFillEU34Countries(x)

Arguments

x

magpie object with 249 ISO country codes in the spatial dimension

Author(s)

Falk Benke


toolSolarFunctionAggregate

Description

Aggregate Solar data into regions

Usage

toolSolarFunctionAggregate(
  x,
  rel = NULL,
  weight = calcOutput("FE", aggregate = FALSE)[, "y2015", "FE|Electricity (EJ/yr)"]
)

Arguments

x

magclass object that should be aggregated

rel

relation matrix containing a region mapping. A mapping object should contain 2 columns in which each element of x is mapped to the category it should belong to after (dis-)aggregation

weight

aggregation weight (should be FE|Electricity (EJ/yr) in 2015)

Value

return: returns region aggregated solar data

Author(s)

Felix Schreyer, Renato Rodrigues, Julian Oeser