Title: | Input data generation for the EDGE-Transport model |
---|---|
Description: | The mrtransport package contains data preprocessing for the EDGE-Transport model. |
Authors: | Johanna Hoppe [aut, cre] , Jarusch Muessel [aut], Alois Dirnaichner [aut] |
Maintainer: | Johanna Hoppe <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 0.10.1 |
Built: | 2024-12-19 10:25:24 UTC |
Source: | https://github.com/pik-piam/mrtransport |
The mrtransport package contains data preprocessing for the EDGE-Transport model.
Maintainer: Johanna Hoppe [email protected] (ORCID)
Authors:
Jarusch Muessel [email protected]
Alois Dirnaichner
Useful links:
Provide EDGE-Transport input parameters
calcEdgeTransportSAinputs(subtype, SSPscen = "SSP2", IEAharm = TRUE)
calcEdgeTransportSAinputs(subtype, SSPscen = "SSP2", IEAharm = TRUE)
subtype |
one of the parameters required for EDGE-T SA |
SSPscen |
shared socioeconomic pathway |
IEAharm |
switch IEA harmonization of energy intensity on and off |
Johanna Hoppe
Computes IEA-based model data by use of raw IEA "Energy Balances" data and a mapping that corresponds to the structure of "products" and "flows" of IEA.
calcIEAOutputTransport()
calcIEAOutputTransport()
Mapping structure example: IEA product ANTCOAL used for IEA flow TPATFUEL, contributes via REMIND technology coaltr for generating sesofos from pecoal (REMIND names)
IEA data as MAgPIE object aggregated to country level
Falk Benke
Convert Eurostat road transportation data to iso country.
convertEurostatEnergyCountryDataSheets(x, subtype)
convertEurostatEnergyCountryDataSheets(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johanna Hoppe
## Not run: a <- readSource("Eurostat") ## End(Not run)
## Not run: a <- readSource("Eurostat") ## End(Not run)
Convert GCAM transportation data to iso country level.
convertGCAM(x, subtype)
convertGCAM(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johanna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("GCAM", subtype = "esDemand") ## End(Not run)
## Not run: a <- readSource("GCAM", subtype = "esDemand") ## End(Not run)
Convert PSI data to iso country.
convertPSI(x, subtype)
convertPSI(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johanna Hoppe
## Not run: a <- readSource("PSI", subtype = "costs") ## End(Not run)
## Not run: a <- readSource("PSI", subtype = "costs") ## End(Not run)
Convert TRACCS road transportation data to iso country.
convertTRACCS(x, subtype)
convertTRACCS(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johanna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("TRACCS") ## End(Not run)
## Not run: a <- readSource("TRACCS") ## End(Not run)
Converts transport subsidies data
convertTransportPurchasePriceSubsidies(x)
convertTransportPurchasePriceSubsidies(x)
x |
MAgPIE object to be converted |
A MAgPIE object containing transport subsidies per technology
Caroline Cronjaeger
## Not run: a <- convertTransportSubsidies(x)
## Not run: a <- convertTransportSubsidies(x)
Converts transport subsidies data
convertTransportSubsidies(x)
convertTransportSubsidies(x)
x |
MAgPIE object to be converted |
A MAgPIE object containing transport subsidies per technology
Renato Rodrigues
## Not run: a <- convertTransportSubsidies(x) ## End(Not run)
## Not run: a <- convertTransportSubsidies(x) ## End(Not run)
Convert UCD road transportation data to iso country.
convertUCD(x, subtype)
convertUCD(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johanna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("UCD") ## End(Not run)
## Not run: a <- readSource("UCD") ## End(Not run)
Correct GCAM road transportation data to iso country.
correctGCAM(x, subtype)
correctGCAM(x, subtype)
x |
a magpie data object |
subtype |
One of the possible subtypes, see default argument. |
magclass object
Johanna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("GCAM", subtype="histESdemand") ## End(Not run)
## Not run: a <- readSource("GCAM", subtype="histESdemand") ## End(Not run)
Read Eurostat data.
readEurostatEnergyCountryDataSheets(subtype = c("feDemand", "LDVfleet"))
readEurostatEnergyCountryDataSheets(subtype = c("feDemand", "LDVfleet"))
subtype |
One of the possible subtypes, see default argument. |
magclass object
Johanna Hoppe
## Not run: a <- readSource("EurostatEnergyCountryDataSheets") ## End(Not run)
## Not run: a <- readSource("EurostatEnergyCountryDataSheets") ## End(Not run)
Read GCAM transportation data.
readGCAM( subtype = c("energyIntensity", "loadFactor", "histESdemand", "speedMotorized", "speedNonMotorized", "valueOfTimeMultiplier") )
readGCAM( subtype = c("energyIntensity", "loadFactor", "histESdemand", "speedMotorized", "speedNonMotorized", "valueOfTimeMultiplier") )
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johnna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("GCAM", subtype = "histEDsemand") ## End(Not run)
## Not run: a <- readSource("GCAM", subtype = "histEDsemand") ## End(Not run)
Read PSI data.
readPSI(subtype = c("CAPEX", "energyIntensity"))
readPSI(subtype = c("CAPEX", "energyIntensity"))
subtype |
One of the possible subtypes, see default argument. |
magpie object
Johnna Hoppe
## Not run: a <- readSource("PSI", subtype = "energyIntensity") ## End(Not run)
## Not run: a <- readSource("PSI", subtype = "energyIntensity") ## End(Not run)
Load fuel prices from a REMIND fulldata.gdx in USD/MJ
readREMINDinputForTransportStandalone()
readREMINDinputForTransportStandalone()
Read TRACCS road transportation data.
readTRACCS( subtype = c("fuelEnDensity", "roadFuelConsumption", "energyIntensity", "loadFactor", "annualMileage", "roadESdemand", "histESdemand", "railFeDemand", "vehPopulation") )
readTRACCS( subtype = c("fuelEnDensity", "roadFuelConsumption", "energyIntensity", "loadFactor", "annualMileage", "roadESdemand", "histESdemand", "railFeDemand", "vehPopulation") )
subtype |
One of the possible subtypes, see default argument. |
magclass object
Alois Dirnaichner
## Not run: a <- readSource("TRACCS") ## End(Not run)
## Not run: a <- readSource("TRACCS") ## End(Not run)
Read-in transport subsidies csv files as magclass object
readTransportPurchasePriceSubsidies()
readTransportPurchasePriceSubsidies()
magpie object of the transport subsidies for BEV, FCEV and PHEV (euros/car) for private and legal entities
Caroline Cronjaeger
## Not run: a <- readSource(type="TransportSubsidies")
## Not run: a <- readSource(type="TransportSubsidies")
Read-in transport subsidies csv files as magclass object
readTransportSubsidies()
readTransportSubsidies()
magpie object of the transport subsidies for BEV, FCEV and PHEV (euros/car) for private and legal entities
Renato Rodrigues
## Not run: a <- readSource(type="TransportSubsidies")
## Not run: a <- readSource(type="TransportSubsidies")
Read UCD road transportation data.
readUCD( subtype = c("energyIntensity", "feDemand", "loadFactor", "annualMileage", "nonMotorizedDemand", "speed", "CAPEX", "nonFuelOPEX", "CAPEXandNonFuelOPEX", "OperatingSubsidies") )
readUCD( subtype = c("energyIntensity", "feDemand", "loadFactor", "annualMileage", "nonMotorizedDemand", "speed", "CAPEX", "nonFuelOPEX", "CAPEXandNonFuelOPEX", "OperatingSubsidies") )
subtype |
One of the possible subtypes, see default argument. |
magclass object
Johanna Hoppe, Alois Dirnaichner
## Not run: a <- readSource("UCD") ## End(Not run)
## Not run: a <- readSource("UCD") ## End(Not run)
Perform parameter specific adjustments on the input data
toolAdjustAnnualMileage(dt, completeData, filter, ariadneAdjustments = TRUE)
toolAdjustAnnualMileage(dt, completeData, filter, ariadneAdjustments = TRUE)
dt |
calculated raw data without adjustments |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
ariadneAdjustments |
switch on and off adjustments according to ARIADNE model intercomparison in 2022 |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustCAPEXother(dt, ISOcountries, yrs, completeData, GDPpcMER, filter)
toolAdjustCAPEXother(dt, ISOcountries, yrs, completeData, GDPpcMER, filter)
dt |
calculated raw data without adjustments |
ISOcountries |
list of iso countries |
yrs |
temporal resolution of EDGE-T model |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
GDPpcMER |
GDP per capita based on market exchange rate |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustCAPEXtrackedFleet( dt, ISOcountries, yrs, completeData, GDPpcMER, filter )
toolAdjustCAPEXtrackedFleet( dt, ISOcountries, yrs, completeData, GDPpcMER, filter )
dt |
calculated raw data without adjustments |
ISOcountries |
list of iso countries |
yrs |
temporal resolution of EDGE-T model |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
GDPpcMER |
GDP per capita based on market exchange rate |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustEnergyIntensity( dt, regionTRACCS, TrendsEnIntPSI, filter, ariadneAdjustments = TRUE )
toolAdjustEnergyIntensity( dt, regionTRACCS, TrendsEnIntPSI, filter, ariadneAdjustments = TRUE )
dt |
calculated raw data without adjustments |
regionTRACCS |
iso countries included in TRACCS database |
TrendsEnIntPSI |
Energy intensity trends from PSI |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
ariadneAdjustments |
optional parameter adjustements according to ARIADNE model intercomparison in 2022 |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustEsDemand(dt, mapIso2region, completeData, filter)
toolAdjustEsDemand(dt, mapIso2region, completeData, filter)
dt |
calculated raw data without adjustments |
mapIso2region |
map iso countries to regions |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustLoadFactor(dt, completeData, TRACCScountries, filter)
toolAdjustLoadFactor(dt, completeData, TRACCScountries, filter)
dt |
calculated raw data without adjustments |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
TRACCScountries |
countries included in TRACCS database |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustNonFuelOPEXother(dt, ISOcountries, yrs, completeData, filter)
toolAdjustNonFuelOPEXother(dt, ISOcountries, yrs, completeData, filter)
dt |
calculated raw data without adjustments |
ISOcountries |
list of iso countries |
yrs |
temporal resolution of EDGE-T model |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustNonFuelOPEXtrackedFleet(dt, yrs, completeData, filter)
toolAdjustNonFuelOPEXtrackedFleet(dt, yrs, completeData, filter)
dt |
calculated raw data without adjustments |
yrs |
temporal resolution of EDGE-T model |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustSpeedOfModes(dt, completeData, filter)
toolAdjustSpeedOfModes(dt, completeData, filter)
dt |
calculated raw data without adjustments |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Perform parameter specific adjustments on the input data
toolAdjustValueOfTimeMultiplier(dt, completeData, filter)
toolAdjustValueOfTimeMultiplier(dt, completeData, filter)
dt |
calculated raw data without adjustments |
completeData |
All combinations of region, period, univocalName and technology in EDGE-T decision tree |
filter |
list of filters for specific branches in the upper decision tree, containing all associated univocalNames |
a quitte object
Johanna Hoppe
Aggregate vehicle types so that vehicle types that are only available in certain iso countries of a region are not lost and still appear in the aggregated region
toolAggregateVehicleTypes(...)
toolAggregateVehicleTypes(...)
... |
magpie object to be aggregated |
a magpie object
Johanna Hoppe
We provide energy service trajectories. IEA energy balances have to be met and are not consistent with GCAM intensities and energy service trajectories. Therefore we have to adjust energy intensities and set the energy service demand to zero, where the IEA does not report the energy service demand
toolIEAharmonization(...)
toolIEAharmonization(...)
... |
data to harmonize: Either the energy intensity or the energy service demnand |
Merge source data for energy intensity
toolMergeEnergyIntensity(data, filterEntries, countriesTRACCS)
toolMergeEnergyIntensity(data, filterEntries, countriesTRACCS)
data |
source data |
filterEntries |
helper to filter for univocalNames |
countriesTRACCS |
countries included in the TRACCS database |
Johanna Hoppe
Merge source data for historical energy service demand
toolMergeHistESdemand(data, filterEntries, countriesTRACCS)
toolMergeHistESdemand(data, filterEntries, countriesTRACCS)
data |
source data |
filterEntries |
helper to filter for univocalNames |
countriesTRACCS |
countries included in the TRACCS database |
Johanna Hoppe
Map the source categories to the EDGE-T categories. Apply the full structure of the decision tree.
toolPrepareEurostatEnergyCountryDataSheets(x)
toolPrepareEurostatEnergyCountryDataSheets(x)
x |
the input data read via readSource, a magpie object |
a quitte object
Johanna Hoppe
Map the source categories to the EDGE-T categories. Apply the full structure of the decision tree.
toolPrepareGCAM(x, subtype)
toolPrepareGCAM(x, subtype)
x |
the input data read via readSource, a magpie object |
subtype |
one of the different EDGE-T inputdata subtypes |
a quitte object
Johanna Hoppe
Map the source categories to the EDGE-T categories. Apply the full logit structure.
toolPreparePSI(x)
toolPreparePSI(x)
x |
the input data read via readSource, a magpie object |
a quitte object
Johanna Hoppe
Map the source categories to the EDGE-T categories. Apply the full structure of the decision tree.
toolPreparePurchasePriceSubsidies(x)
toolPreparePurchasePriceSubsidies(x)
x |
the input data read via readSource, a magpie object |
a quitte object
Caroline Cronjaeger
Map the source categories to the EDGE-T categories. Apply the full structure of the decision tree.
toolPrepareTRACCS(x, subtype)
toolPrepareTRACCS(x, subtype)
x |
the input data read via readSource, a magpie object |
subtype |
one of the different EDGE-T inputdata subtypes |
a quitte object
Johanna Hoppe
Map the source categories to the EDGE-T categories. Apply the full structure of the decision tree.
toolPrepareUCD(x, subtype)
toolPrepareUCD(x, subtype)
x |
the input data read via readSource, a magpie object |
subtype |
one of the different EDGE-T inputdata subtypes |
a quitte object
Johanna Hoppe