Title: | MadRat commons Input Data Library |
---|---|
Description: | Provides useful functions and a common structure to all the input data required to run models like MAgPIE and REMIND of model input data. |
Authors: | Benjamin Leon Bodirsky [aut], Kristine Karstens [aut], Lavinia Baumstark [aut], Isabelle Weindl [aut], Xiaoxi Wang [aut], Abhijeet Mishra [aut], Stephen Wirth [aut], Mishko Stevanovic [aut], Nele Steinmetz [aut], Ulrich Kreidenweis [aut], Renato Rodrigues [aut], Roman Popov [aut], Florian Humpenoeder [aut], Anastasis Giannousakis [aut], Antoine Levesque [aut], David Klein [aut], Ewerton Araujo [aut], Felicitas Beier [aut], Julian Oeser [aut], Michaja Pehl [aut], Debbora Leip [aut], Michael Crawford [aut], Edna Molina Bacca [aut], Patrick von Jeetze [aut], Eleonora Martinelli [aut], Felix Schreyer [aut], Bjoern Soergel [aut], Pascal Sauer [aut], David Hötten [aut], Robin Hasse [aut], Gabriel Abrahão [aut], Pascal Weigmann [aut], Jan Philipp Dietrich [aut, cre] |
Maintainer: | Jan Philipp Dietrich <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 1.46.7 |
Built: | 2024-11-20 17:21:43 UTC |
Source: | https://github.com/pik-piam/mrcommons |
Calculates projections of first generation biofuels demand,including biogas, bioethamol and biodiesel, from IEA database. The unit is Petajoule.
calc1stBioDem(subtype = "all")
calc1stBioDem(subtype = "all")
subtype |
all per default. ethanol_oils for selecting 1st gen crop types relevant for REMIND input. |
List of magpie objects with results on country level, weight on country level, unit and description.
Xiaoxi Wang, David Klein
## Not run: calcOutput("1stBioDem") ## End(Not run)
## Not run: calcOutput("1stBioDem") ## End(Not run)
Calculates first generation biofuels production, imports, exports for biogas, bioethanol and biodiesel from IEA database. The unit is Petajoule.
calc1stBioenergyPast()
calc1stBioenergyPast()
List of magpie objects with results on country level, weight on country level, unit and description.
Xiaoxi Wang, Isabelle Weindl
## Not run: calcOutput("1stBioenergyPast") ## End(Not run)
## Not run: calcOutput("1stBioenergyPast") ## End(Not run)
reads in the ACCMIP atmospheric deposition database. Speeds up caching
calcACCMIP(glo_incl_oceans = FALSE)
calcACCMIP(glo_incl_oceans = FALSE)
glo_incl_oceans |
if true, a global value will be returned that also includes deposition on oceans and should be equivalent to total emissions. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ACCMIP") ## End(Not run)
## Not run: calcOutput("ACCMIP") ## End(Not run)
Calculates the carbon emission adjustement factors as derived by Grassi et al. 2021 Adjustement factors are provided in GtCO2 yr-1. Positive and negative values possible.
calcAdjustGrassi2021()
calcAdjustGrassi2021()
magpie object with emission adjustement factors weighted by country C removals 2000 to 2015.
Michael Windisch, Florian Humpenoeder
## Not run: calcOutput("AdjustGrassi2021") ## End(Not run)
## Not run: calcOutput("AdjustGrassi2021") ## End(Not run)
Calculate FAO Value Of Production
calcAgProductionValue(datasource = "FAO")
calcAgProductionValue(datasource = "FAO")
datasource |
Currently available: |
FAO Value Of Production as a list of MAgPIE objects
Roman Popov, Mishko Stevanovic, Patrick v. Jeetze
calcOutput()
, readFAO()
,
convertFAO()
, readSource()
## Not run: a <- calcOutput("AgProductionValue", datasource = "FAO") ## End(Not run)
## Not run: a <- calcOutput("AgProductionValue", datasource = "FAO") ## End(Not run)
calculates stocks of animals of different categories.
calcAnimalStocks(grouping = "IPCC")
calcAnimalStocks(grouping = "IPCC")
grouping |
IPCC: Animal grouping of IPCC Guidelines |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcExcretionIPCC()
,
readIPCC()
## Not run: calcOutput("AnimalStocks") ## End(Not run)
## Not run: calcOutput("AnimalStocks") ## End(Not run)
Computes Atmospheric (nitrogen) deposition on different land-use types. It distinguishes ammonia (Nh3) and Nitrogen oxides (NOx) as well
calcAtmosphericDeposition( datasource = "ACCMIP", glo_incl_oceans = FALSE, cellular = FALSE, cells = "lpjcell", emission = FALSE, scenario = NULL )
calcAtmosphericDeposition( datasource = "ACCMIP", glo_incl_oceans = FALSE, cellular = FALSE, cells = "lpjcell", emission = FALSE, scenario = NULL )
datasource |
deposition inventory |
glo_incl_oceans |
provides global values that include oceans, as oceans are not part of the country mapping |
cellular |
cellular or country level emissions |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
emission |
if TRUE, not the deposition but the cellular emissions are reported |
scenario |
if dataset contains several scenarios (e.g. ACCMIP), one scenario can be selected. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("AtmosphericDeposition") ## End(Not run)
## Not run: calcOutput("AtmosphericDeposition") ## End(Not run)
calculates the share of manure managed in different animal waste management systems in confinements. Starting with IPCC 2005 values, turning into scenarios for the future.
calcAWMSconfShr(rev = 0.1)
calcAWMSconfShr(rev = 0.1)
rev |
revision number of madrat run |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky. Modifications by Edna J. Molina Bacca
## Not run: calcOutput("AWMSconfShr") ## End(Not run)
## Not run: calcOutput("AWMSconfShr") ## End(Not run)
calculates the share of manure excreted in different types of animal waste management systems in confinements in the year 2005 using the IPCC Guidelines excretion rates.
calcAWMSconfShrPast(products = "magpie")
calcAWMSconfShrPast(products = "magpie")
products |
IPCC: IPCC products. MAgPIE: Magpie products |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcAWMSconfShr()
,
calcExcretionIPCC()
## Not run: calcOutput("AWMSconfShrPast") ## End(Not run)
## Not run: calcOutput("AWMSconfShrPast") ## End(Not run)
Returns fraction of spatial unit (cell) belonging to a biome type of each biogeographic realm. The classification is based on data from 'the nature conservancy' (https://geospatial.tnc.org/datasets/b1636d640ede4d6ca8f5e369f2dc368b/about) originally developed by Olson et al. (2001), BioScience.
calcBiomeType(cells = "lpjcell")
calcBiomeType(cells = "lpjcell")
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("BiomeType", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("BiomeType", aggregate = FALSE) ## End(Not run)
calculates conversion factors from bioplastic demand to demand of biomass needed for the production, taking into account the average share of different biomass sources (glycerol, starch, sugars, cellulose, oils) for bioplastic production and corresponding content in the different crop types
calcBioplasticToBiomass()
calcBioplasticToBiomass()
List of magpie objects with global conversion factors, unit and description.
Debbora Leip
## Not run: calcOutput("BioplasticToBiomass") ## End(Not run)
## Not run: calcOutput("BioplasticToBiomass") ## End(Not run)
reads in the Lutz et al dataset. Aggregates the age structure. Population is divided by sex male (M) , female (F) and both (B) and divided by 8 age classes: 0-4, 5-9, 10-14, 15-19, AG1 (20-29), AG2 (30-59), AG3(60-79), AG4(80+)
calcBodyHeight(convert = TRUE)
calcBodyHeight(convert = TRUE)
convert |
if TRUE, the convertscript of Lutz et al is activated. Also,the year 1965 is extrapolatedusing the worldbank population data and sex, age, and education structure of 1970. |
fraction of a cell belonging to a given climate classification based on different climate cliassification schemes
calcClimateClass(datasource = "koeppen", cells = "magpiecell")
calcClimateClass(datasource = "koeppen", cells = "magpiecell")
datasource |
select source from: - koeppen for Koeppen Geiger Classification http://koeppen-geiger.vu-wien.ac.at/ - ipcc, ipccReduced, ipccReduced2019 for IPCC Guideline climate classification |
cells |
"magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
Clustered MAgPIE object on requested resolution
Abhijeet Mishra, Kristine Karstens
## Not run: calcOutput("ClimateClass", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ClimateClass", aggregate = FALSE) ## End(Not run)
Carbon losses for livestock confinements
calcClossConfinement()
calcClossConfinement()
List of magpie object with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ClossConfinement") ## End(Not run)
## Not run: calcOutput("ClossConfinement") ## End(Not run)
Calculates the demand of construction wood from Galina et al. 2020 data. See
calcConstructionWoodDemand()
calcConstructionWoodDemand()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("ConstructionWoodDemand") ## End(Not run)
## Not run: calcOutput("ConstructionWoodDemand") ## End(Not run)
reads in the Lutz et al dataset. Aggregates the age structure. Population is divided by sex male (M) , female (F) and both (B) and divided by 8 age classes: 0-4, 5-9, 10-14, 15-19, AG1 (20-29), AG2 (30-59), AG3(60-79), AG4(80+)
calcDemography(convert = TRUE, education = TRUE)
calcDemography(convert = TRUE, education = TRUE)
convert |
if TRUE, the convertscript of Lutz et al is activated. Also,the year 1965 is extrapolatedusing the worldbank population data and sex, age, and education structure of 1970. |
education |
if FALSE, no education dimension will be provided |
Provides development state of a country or region. We use worldbank definitions by default: above 12746 USD per capita, its a high-income country, below 1045 its a low-income country, in between its a medium-income country.
calcDevelopmentState(upper = 12746, lower = 1045)
calcDevelopmentState(upper = 12746, lower = 1045)
upper |
Change upper limit (default: 12746, i.e. the upper threshold for 2013 in current US$) |
lower |
Change lower limit (default: 1045, i.e. the lower threshold for 2013 in current US$) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Kristine Karstens
## Not run: calcOutput("DevelopmentState") ## End(Not run)
## Not run: calcOutput("DevelopmentState") ## End(Not run)
Creates an emission inventory based on the EDGAR5 and EDGAR6 database.
calcEDGAR6(non_country = FALSE, nutrient = TRUE)
calcEDGAR6(non_country = FALSE, nutrient = TRUE)
non_country |
can alternatively provide SEA and AIR emissions, which are global emissions that cannot be attributed to a country |
nutrient |
if TRUE, nitrogen is reported as N and CO2 as C |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
Emission factors for nitrogenous emissions in livestock confinements
calcEF3confinement(products = "magpie", selection = "n_pollutants_direct")
calcEF3confinement(products = "magpie", selection = "n_pollutants_direct")
products |
Either livestock products in MAgPIE or IPCC products |
selection |
defaults to n_pollutants_direct |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EF3confinement") ## End(Not run)
## Not run: calcOutput("EF3confinement") ## End(Not run)
Returns emission factor for manure excreted during pasture range and paddock. Differs depending on the share of small ruminants.
calcEF3prp(select_years = "y2005")
calcEF3prp(select_years = "y2005")
select_years |
if only one year is selected, years is set to NULL |
list of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EF3prp") ## End(Not run)
## Not run: calcOutput("EF3prp") ## End(Not run)
Provides REMIND data for baseline emissions for maccs.
calcEmiMac()
calcEmiMac()
REMIND data for baseline emissions for maccs and corresonding weights (NULL) as a list of two MAgPIE objects
Lavinia Baumstark
## Not run: calcOutput("calcEmiMac") ## End(Not run)
## Not run: calcOutput("calcEmiMac") ## End(Not run)
calculates nitrogenous emissions from animal waste management systems in the historical period
calcEmisNitrogenAWMSPast()
calcEmisNitrogenAWMSPast()
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EmisNitrogenAWMSPast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenAWMSPast") ## End(Not run)
calculates nitrogenous emissions from croplands in the historical period.
calcEmisNitrogenCroplandPast(method = "IPCC")
calcEmisNitrogenCroplandPast(method = "IPCC")
method |
IPCC: emissions are calculated according the the IPCC 2006 National Guidelines for Greenhouse Gas Inventories. Nsurplus: Emissions in 2005 are calculated according to IPCC, and the scaled with nitrogen losses from croplands. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EmisNitrogenCroplandPast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenCroplandPast") ## End(Not run)
Calculates nitrogenous emissions from non-agricultural land for the historical period
calcEmisNitrogenNonaglandPast(method = "Nsurplus")
calcEmisNitrogenNonaglandPast(method = "Nsurplus")
method |
Method for calculating Atmospheric deposition: Nsurplus2 and Nsurplus are based on deposition rates based on own emission calculations after 2 or after 1 iteration, respectively. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcEmisNitrogenPast()
,
calcExcretion()
## Not run: calcOutput("EmisNitrogenPasturePast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenPasturePast") ## End(Not run)
Conputes (nitrogen) emissions of Oceans.
calcEmisNitrogenOceans(method = "ACCMIP")
calcEmisNitrogenOceans(method = "ACCMIP")
method |
deposition inventory |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcAtmosphericDeposition()
,
calcNitrogenBudgetCropland()
## Not run: calcOutput("EmisNitrogenOceans") ## End(Not run)
## Not run: calcOutput("EmisNitrogenOceans") ## End(Not run)
Calculates nitrogenous emissions from all emission sources for the historical period. Complements own estimates with Edgar esimtates for the historical period.
calcEmisNitrogenPast(method = "IPCC")
calcEmisNitrogenPast(method = "IPCC")
method |
IPCC: emissions are calculated according the the IPCC 2006 National Guidelines for Greenhouse Gas Inventories. Nsurplus: Emissions in 2005 are calculated according to IPCC, and the scaled with nitrogen losses from croplands. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EmisNitrogenPast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenPast") ## End(Not run)
Calculates nitrogenous emissions from pastures for the historical period
calcEmisNitrogenPasturePast(method = "IPCC")
calcEmisNitrogenPasturePast(method = "IPCC")
method |
IPCC: emissions are calculated according the the IPCC 2006 National Guidelines for Greenhouse Gas Inventories. Nsurplus: Emissions in 2005 are calculated according to IPCC, and the scaled with nitrogen losses from croplands. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcEmisNitrogenPast()
,
calcExcretion()
## Not run: calcOutput("EmisNitrogenPasturePast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenPasturePast") ## End(Not run)
Calculates nitrogenous emissions Nitrogen emissions from soils under 100% natural cover (even for crop and urban) assuming a pre-agricultural time.
calcEmisNitrogenPreagriculture(cellular = FALSE, deposition = TRUE)
calcEmisNitrogenPreagriculture(cellular = FALSE, deposition = TRUE)
cellular |
cellular or country outputs |
deposition |
if TRUE, losses include atmospheric deposition inputs that are lost afterwards. If false, only biological fixation is considered. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcEmisNitrogenPast()
,
calcExcretion()
## Not run: calcOutput("EmisNitrogenPreagriculture") ## End(Not run)
## Not run: calcOutput("EmisNitrogenPreagriculture") ## End(Not run)
Calculates Nitrogen Budgets for surface Water on country levels.
calcEmisNitrogenWater(method = "Nsurplus")
calcEmisNitrogenWater(method = "Nsurplus")
method |
method for calculating no3_n in groundwater |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EmisNitrogenWater") ## End(Not run)
## Not run: calcOutput("EmisNitrogenWater") ## End(Not run)
providees an emission inventory for the past, either from external data or own estimates.
calcEmissionInventory( datasource = "CEDS", targetResolution = "sectoral", from = "CEDS59", to = "Sectors" )
calcEmissionInventory( datasource = "CEDS", targetResolution = "sectoral", from = "CEDS59", to = "Sectors" )
datasource |
The Inventory that shall be used. Options are CEDS, combined_CEDS_IPCC (including own estimates where available), IPCC(own estimates), Nsurplus (own estimates) |
targetResolution |
Specific mapping file to be used. |
from |
column in mapping |
to |
column in mapping |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Michael S. Crawford
## Not run: calcOutput("EmisNitrogenCroplandPast") ## End(Not run)
## Not run: calcOutput("EmisNitrogenCroplandPast") ## End(Not run)
calculates excretion during grazing, cropland-grazing, confinement and collected for fuel. Based on MAgPIE Feed baskets, slaughter biomass and simple allocation rules.
calcExcretion(cellular = FALSE, cells = "lpjcell", attributes = "npk")
calcExcretion(cellular = FALSE, cells = "lpjcell", attributes = "npk")
cellular |
if TRUE value is calculate and returned (set aggregate to FALSE!) on cellular level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
attributes |
npk (default) or npkc (inclusing carbon) can be selected |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("Excretion") ## End(Not run)
## Not run: calcOutput("Excretion") ## End(Not run)
calculates excretion in the year 2005 using the IPCC Guidelines excretion rates.
calcExcretionIPCC(products = "IPCC")
calcExcretionIPCC(products = "IPCC")
products |
IPCC: IPCC products. MAgPIE: Magpie products |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcExcretion()
,
calcAnimalStocks()
## Not run: calcOutput("ExcretionIPCC") ## End(Not run)
## Not run: calcOutput("ExcretionIPCC") ## End(Not run)
Distribute massbalanced or FAOSTAT staple production to monthly or quarterly interval based on GGCMI crop calendar. Only national level implemented for now as cellular production only available on 5 year time steps due to memory. Assume rainfed crop calendar date for now.
calcFAOIntraYearProd( day = "harvest_day", products = "kcr", frequency = "monthly", attribute = "dm" )
calcFAOIntraYearProd( day = "harvest_day", products = "kcr", frequency = "monthly", attribute = "dm" )
day |
harvest_day (to market) or maturity_day (first mature) |
products |
"kcr" or "staples" staples uses FAO production dataset instead of calcProduction to only give maize wheat soy and rice. Allows for more years. A bit of a David-specific subtype |
frequency |
monthly or quarterly. Daily leads to memory limits. |
attribute |
dm default. can only select one at a time due to memory #' @seealso
|
David Chen
Calculates a massbalance dataset of agricultural production, processing and use out of the combined data of calcFAOharmonized(). Covers dry matter (DM), reactive nitrogen (Nr), Phosphorus (P), Generalizable Energy (GE) and wet matter (WM). New products are added to the Food Balance Sheets, and many processing conversions are made more explicit using simple assumptions. The first part of this function is the calcFAOmassbalance_pre.
calcFAOmassbalance()
calcFAOmassbalance()
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Xiaoxi Wang
## Not run: calcOutput("FAOmassbalance") ## End(Not run)
## Not run: calcOutput("FAOmassbalance") ## End(Not run)
calculates the yield based on FAO data
calcFAOYield( physical = TRUE, attributes = "dm", irrigation = FALSE, cellular = FALSE, cut = FALSE, average = 5, areaSource = "FAO" )
calcFAOYield( physical = TRUE, attributes = "dm", irrigation = FALSE, cellular = FALSE, cut = FALSE, average = 5, areaSource = "FAO" )
physical |
physical area or havested area |
attributes |
in dm, wm, ge, nr, p, k |
irrigation |
distinguish irrigation or not |
cellular |
if TRUE value is calculate on cellular level |
cut |
FALSE (default) - do not cut off yields, number between 0 and 1 to define percentile value for cut off |
average |
averaging period in years (if NULL no averaging is used) |
areaSource |
data source for croparea used in calculation: FAO or Toolbox |
MAgPIE object of yields
Debbora Leip, Jan Philipp Dietrich, Kristine Karstens, Felicitas Beier
Calculates feed balanceflows from MAgPIE-Feed model to meet FAO data
calcFeedBalanceflow( per_livestock_unit = FALSE, cellular = FALSE, cells = "lpjcell", products = "kall", future = "constant" )
calcFeedBalanceflow( per_livestock_unit = FALSE, cellular = FALSE, cells = "lpjcell", products = "kall", future = "constant" )
per_livestock_unit |
default false |
cellular |
if TRUE value is calculate on cellular level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
products |
products in feed baskets that shall be reported |
future |
if FALSE, only past years will be reported (reduces memory) |
List of magpie objects with results on country or cellular level, unit and description.
Isabelle Weindl, Kristine Karstens
## Not run: calcOutput("FeedBalanceflow") ## End(Not run)
## Not run: calcOutput("FeedBalanceflow") ## End(Not run)
Combines feed baskets of the past with scenario-dependent future feed baskets.
calcFeedBaskets(non_eaten_food = FALSE, fadeout = FALSE, method = "new")
calcFeedBaskets(non_eaten_food = FALSE, fadeout = FALSE, method = "new")
non_eaten_food |
if TRUE, non-eaten food is included in feed baskets, if not it is excluded. |
fadeout |
if TRUE, feed basket calibration fades out till 2050. |
method |
"new" for additive calibration at end, "old" for multiplikative calibration of calShr and end values. |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl, Benjamin Leon Bodirsky, Stephen Wirth, Jan Philipp Dietrich
## Not run: calcOutput("FeedBaskets") ## End(Not run)
## Not run: calcOutput("FeedBaskets") ## End(Not run)
Calculate historical feed baskets based on output of MAgPIE_FEED model as DM feed biomass (different types of feed) needed per DM livestock products
calcFeedBasketsPast(non_eaten_food = TRUE)
calcFeedBasketsPast(non_eaten_food = TRUE)
non_eaten_food |
if TRUE, non-eaten food is included in feed baskets, if not it is excluded. |
Historical feed baskets and corresponding weights as a list of two MAgPIE objects
Isabelle Weindl, Benjamin Bodirsky
## Not run: calcOutput("FeedBasketsPast") ## End(Not run)
## Not run: calcOutput("FeedBasketsPast") ## End(Not run)
Calculate historical system-specific feed baskets based on output of MAgPIE_FEED model as DM feed biomass (different types of feed) needed per DM livestock products of respective systems
calcFeedBasketsSysPast()
calcFeedBasketsSysPast()
Historical system-specific feed baskets and corresonding weights as a list of two MAgPIE objects
Isabelle Weindl, Benjamin Bodirsky, Jan Philipp Dietrich
calcOutput()
, readFeedModel()
, calcFeedBasketsPast()
## Not run: calcOutput("FeedBasketsSysPast") ## End(Not run)
## Not run: calcOutput("FeedBasketsSysPast") ## End(Not run)
Combines uncalibrated feed baskets of the past with scenario-dependent future feed baskets.
calcFeedBasketsUncalibrated()
calcFeedBasketsUncalibrated()
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl, Benjamin Leon Bodirsky, Stephen Wirth, Jan Philipp Dietrich
## Not run: calcOutput("FeedBasketsUncalibrated") ## End(Not run)
## Not run: calcOutput("FeedBasketsUncalibrated") ## End(Not run)
Calculates future central feed shares for all livestock categories based on the results of a non-linear regression between historical central feed shares and livestock productivity and using Koeppen- Geiger climate zones
calcFeedEfficiencyFuture()
calcFeedEfficiencyFuture()
Central feed shares and weights as list of two MAgPIE-objects
Isabelle Weindl, Benjamin Bodirsky, Stephen Wirth
## Not run: calcOutput("FeedEfficiencyFuture") ## End(Not run)
## Not run: calcOutput("FeedEfficiencyFuture") ## End(Not run)
Combines feed baskets of the past with livestock production to get total feed demand
calcFeedPast( balanceflow = TRUE, cellular = FALSE, cells = "lpjcell", products = "kall", nutrients = "all" )
calcFeedPast( balanceflow = TRUE, cellular = FALSE, cells = "lpjcell", products = "kall", nutrients = "all" )
balanceflow |
if TRUE, non-eaten food is included in feed baskets, if not it is excluded. |
cellular |
if TRUE value is calculate on cellular level with returned datajust in dry matter |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
products |
products in feed baskets that shall be reported |
nutrients |
nutrients like dry matter (DM), reactive nitrogen (Nr), Phosphorus (P), Generalizable Energy (GE) and wet matter (WM). |
List of magpie objects with results on country or cellular level, unit and description.
Isabelle Weindl, Benjamin Leon Bodirsky, Kristine Karstems
## Not run: calcOutput("FeedPast") ## End(Not run)
## Not run: calcOutput("FeedPast") ## End(Not run)
calculates the crop-specific use of different N inputs
calcFertilizerByCrop( indicator = "total", deposition = "Nsurplus2", cellular = FALSE )
calcFertilizerByCrop( indicator = "total", deposition = "Nsurplus2", cellular = FALSE )
indicator |
total: estimates the inputs per total crop production; by_harvest estimates the inputs per ton harvest; by_area estimates the inputs per area harvested |
deposition |
if FALSE, deposition is not accounted for in the distribution. Use FALSE to avoid circularities in calcNitrogenBudget |
cellular |
cellular disaggreagation or national values |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("FertilizerByCrop") ## End(Not run)
## Not run: calcOutput("FertilizerByCrop") ## End(Not run)
Provides FertN data for N.No changes to the content have been done.
calcFertN( appliedto = "total", cellular = FALSE, deposition = "CEDS", max_snupe = 0.85 )
calcFertN( appliedto = "total", cellular = FALSE, deposition = "CEDS", max_snupe = 0.85 )
appliedto |
'total' (default), 'crop' or 'past' |
cellular |
cellular disaggreagation or national values |
deposition |
for disaggregation will be passed on to calcNitrogenBudgetCropland |
max_snupe |
for disaggregation will be passed on to calcNitrogenBudgetCropland |
Fertilizer data for N and corresonding weights as a list of two MAgPIE objects
Lavinia Baumstark
calcOutput()
, readIFA()
,
convertIFA()
, readSource()
## Not run: calcOutput("FertN") ## End(Not run)
## Not run: calcOutput("FertN") ## End(Not run)
Calculates the food supply (as defined by FAO, including intake and household waste) for the past.
calcFoodSupplyPast( per_capita = TRUE, products = NULL, product_aggr = FALSE, populationweight = "PopulationPast", attributes = c("kcal", "protein", "wm") )
calcFoodSupplyPast( per_capita = TRUE, products = NULL, product_aggr = FALSE, populationweight = "PopulationPast", attributes = c("kcal", "protein", "wm") )
per_capita |
if true, calculates per capita demand per day, otherwhise total demand per year |
products |
a set with the products that shall be provided, e.g. kall. If NULL, the products are provided that are in the primary data |
product_aggr |
if TRUE, all products are summed up, if "maingroups" products are summed over livestock products, staples and vegfruits. |
populationweight |
datasource of populationweight: FAO can be selected in order to better meet exact values. Normal datasource is PopulationPast |
attributes |
attributes of different products,i.e., kcal,protein,wm |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Xiaoxi Wang
## Not run: calcOutput("FoodSupplyPast") ## End(Not run)
## Not run: calcOutput("FoodSupplyPast") ## End(Not run)
returns governance indicator from Andrijevic et al. 2019
calcGovernanceIndicator()
calcGovernanceIndicator()
magpie object at iso-country level
Felicitas Beier
## Not run: calcOutput("GovernanceIndicator", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("GovernanceIndicator", aggregate = FALSE) ## End(Not run)
Calculates the growing stocks on FAO data.
calcGrowingStock()
calcGrowingStock()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStock", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStock", aggregate = TRUE) ## End(Not run)
Calculates the growing stocks on FAO data.
calcGrowingStockNatVegAbsolute()
calcGrowingStockNatVegAbsolute()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStockNatVegAbsolute", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStockNatVegAbsolute", aggregate = TRUE) ## End(Not run)
Calculates the growing stocks from FAO data for naturally regenerating forests i.e. primary forests and secondary forests.
calcGrowingStockNRF()
calcGrowingStockNRF()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStockNRF", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStockNRF", aggregate = TRUE) ## End(Not run)
Calculates the growing stocks on FAO data.
calcGrowingStockpha()
calcGrowingStockpha()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStockpha", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStockpha", aggregate = TRUE) ## End(Not run)
Calculates the growing stocks on FAO data.
calcGrowingStockPlantAbsolute()
calcGrowingStockPlantAbsolute()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStockPlantAbsolute", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStockPlantAbsolute", aggregate = TRUE) ## End(Not run)
Calculates the growing stocks on FAO data.
calcGrowingStockPlantations()
calcGrowingStockPlantations()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("GrowingStockPlantations", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("GrowingStockPlantations", aggregate = TRUE) ## End(Not run)
Calculates iso-level total global transport costs from GTAP for GTAP food commodities
calcGTAPTotalTransportCosts(costType = "transport", version = "9")
calcGTAPTotalTransportCosts(costType = "transport", version = "9")
costType |
transport or wholesale |
version |
"81" or "9" |
List of magpie object with results on country level, unit and description.
David M Chen
## Not run: calcOutput("GTAPTotalTransportCosts") ## End(Not run)
## Not run: calcOutput("GTAPTotalTransportCosts") ## End(Not run)
calculates historic bioplastic production based on data and linear extrapolation
calcHistBioplasticProd()
calcHistBioplasticProd()
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("HistBioplasticProd") ## End(Not run)
## Not run: calcOutput("HistBioplasticProd") ## End(Not run)
Provides historical emissions values per economic sector or per mac sector. For now it only includes European data.
calcHistEmissions(subtype = "sector")
calcHistEmissions(subtype = "sector")
subtype |
Either "sector" or "MAC" |
magpie object of historical emissions data
Renato Rodrigues
## Not run: calcOutput("HistEmissions") ## End(Not run)
## Not run: calcOutput("HistEmissions") ## End(Not run)
provides global prices from the IMPACT model projections for MAgPIE commodities for the initialization of the flexible demand model.
calcIniFoodPrice(datasource = "FAO", year = "y2005", products = "kfo")
calcIniFoodPrice(datasource = "FAO", year = "y2005", products = "kfo")
datasource |
The datasource specification. Currently available |
year |
Specifies the year for the initialization of prices in MAgPIE. Default is |
products |
subselection of products to be returned |
List with a magpie object with commodity prices on global level in $17/tDM.
The IMPACT projections start in 2005 and the prices are taken from that year.
Mishko Stevanovic, Benjamin Leon Bodirsky
## Not run: calcOutput("IniFoodPrice", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("IniFoodPrice", aggregate = FALSE) ## End(Not run)
it computes the total intake kcal/day procapita through the population dataset by Lutz 2014, height and BMI data of NCDrisc, and phyiscal inactivity levels based on Halal et al.
calcIntake( convert = TRUE, modelinput = FALSE, standardize = FALSE, method = "FAO_WHO_UNU1985" )
calcIntake( convert = TRUE, modelinput = FALSE, standardize = FALSE, method = "FAO_WHO_UNU1985" )
convert |
if TRUE, Lutz data is converted (interpolated completed etc) |
modelinput |
if TRUE, data is aggregated to country totals for model input |
standardize |
if FALSE, no standardization. if "recommendations", the US recommendations are used. if BMI, a normal BMI is used. |
method |
method for calculating intake: either FAO_WHO_UNU1985 for estimates based on height and bodyweight, schofield for just bodyweight, or HHS_USDA for recommended values for US-americans |
total "healthy" intake kcal/day procap for each countries divided by sex and 8 age groups.
Benjamin Leon Bodirsky
it computes the food intake pro capita through the bodyweight and the activity level. First it computes the basal metabolic rate (bmr) through the Schofield equation and then the estimated energy required (eer) depending on the activitiy level by FAO/WHO/UNU tables (Human Energy Requirments, Rome 2004)
calcIntakeBodyweight( bodyweight, bodyheight = NULL, inactivity, tmean = NULL, method = NULL )
calcIntakeBodyweight( bodyweight, bodyheight = NULL, inactivity, tmean = NULL, method = NULL )
bodyweight |
bodyweight in kg per capita or "standardized" for assuming standard values |
bodyheight |
for mehthod FAO_WHO_UNU1985 |
inactivity |
Share of population inactive, provided as magpie object with different age groups |
tmean |
mean annual temperature |
method |
method for calculating intake: either FAO_WHO_UNU1985 for estimates based on height and bodyweight, schofield for just bodyweight, or HHS_USDA for recommended values for US-americans |
Eleonora Martinelli
Calculates buildings-related energy flows from the IEA energy balances. 'output_EDGE_buildings' is a key input to EDGE-Buildings providing the historic final energy demand from buildings. 'output_EDGE' does the same for buildings and industry together.
calcIOEdgeBuildings( subtype = c("output_EDGE", "output_EDGE_buildings"), ieaVersion = "default" )
calcIOEdgeBuildings( subtype = c("output_EDGE", "output_EDGE_buildings"), ieaVersion = "default" )
subtype |
Data subtype. See default argument for possible values. |
ieaVersion |
Release version of IEA data, either 'default' (vetted and used in REMIND) or 'latest'. |
IEA data as MAgPIE object aggregated to country level
Pascal Sauer, Anastasis Giannousakis
## Not run: a <- calcOutput("IOEdgeBuildings", subtype = "output_EDGE_buildings") ## End(Not run)
## Not run: a <- calcOutput("IOEdgeBuildings", subtype = "output_EDGE_buildings") ## End(Not run)
Emission factors for croplands based on IPCC using a country-level leaching fraction
calcIPCCefNSoil()
calcIPCCefNSoil()
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("IPCCefNSoil") ## End(Not run)
## Not run: calcOutput("IPCCefNSoil") ## End(Not run)
calculates the leaching rate FRAC_LEACH as defined by the IPCC Guidelines for National Greenhouse Gas Inventories 2006. We use the approach used by Canada, see Velthof, Gerardus Lambertus, and J. Mosquera Losada. 2011. Calculation of Nitrous Oxide Emission from Agriculture in the Netherlands: Update of Emission Factors and Leaching Fraction. Alterra. http://library.wur.nl/WebQuery/wurpubs/406284.
calcIPCCfracLeach(cellular = TRUE)
calcIPCCfracLeach(cellular = TRUE)
cellular |
if true, returned on cell level |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: a <- calcOutput("IPCCfracLeach", cellular = FALSE) ## End(Not run)
## Not run: a <- calcOutput("IPCCfracLeach", cellular = FALSE) ## End(Not run)
total land area in a cell
calcLandArea(cells = "lpjcell")
calcLandArea(cells = "lpjcell")
cells |
"magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
magpie object in cellular resolution
Jan Philipp Dietrich, Felicitas Beier
## Not run: calcOutput("LandArea", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("LandArea", aggregate = FALSE) ## End(Not run)
Land emission data. This function was originally called calcValidEmissions and located in mrvalidation.
calcLandEmissions(datasource = "CEDS")
calcLandEmissions(datasource = "CEDS")
datasource |
The Emission Inventory that shall be used. For futher information, best see function calcEmissionInventory. Options are e.g. CEDS, combined_CEDS_IPCC (including own estimates where available), IPCC(own estimates), Nsurplus (own estimates) |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Michael S. Crawford
## Not run: calcOutput("LandEmissions") ## End(Not run)
## Not run: calcOutput("LandEmissions") ## End(Not run)
This function prepares total tau values for use. As the source data already provides all required information this function purely removes unrequired data and moves the xref values to the weighting object which is required for aggregation.
calcLanduseIntensity(sectoral = "kcr", rescale = TRUE)
calcLanduseIntensity(sectoral = "kcr", rescale = TRUE)
sectoral |
"kcr" (default) for MAgPIE crop items and "lpj" for LPJmL crop items, "pasture" for pasture |
rescale |
TRUE (default), if Tau should be rescaled in a way, that 2010 is always 1 |
Total tau data and corresponding weights as a list of two MAgPIE objects
Benjamin Leon Bodirsky, Kristine Karstens, Felicitas Beier
calcTauTotal()
, readTau()
,
convertTau()
## Not run: calcOutput("LanduseIntensity") ## End(Not run)
## Not run: calcOutput("LanduseIntensity") ## End(Not run)
Distributes crop, pasture and livestock production in space to 0.5 degree
calcLivestockGridded(details = FALSE)
calcLivestockGridded(details = FALSE)
details |
switch, if set to TRUE will lead to reporting of extensive and intensive livestock shares |
List of magpie objects with results on cellular level, weights on cellular level, unit and description.
Kristine Karstens
## Not run: calcOutput("calcLivestockGridded") ## End(Not run)
## Not run: calcOutput("calcLivestockGridded") ## End(Not run)
Provides MAgPIE-FEED data for livestock-yields calculated in the regression for feed (calcRegressionFEED).. No changes to the content have been done, besides renaming and providing weights.
calcLivestockProductivity(future = TRUE)
calcLivestockProductivity(future = TRUE)
future |
if TRUE calculates Constant future and linear trends based on SSP Expert guesses |
MAgPIE-FEED data for livestock-yields and corresonding weights as a list of two MAgPIE objects
Isabelle Weindl, Lavinia Baumstark, Stephen Wirth
## Not run: calcOutput("LivestockProductivity") ## End(Not run)
## Not run: calcOutput("LivestockProductivity") ## End(Not run)
calcMacBase calculate MacBase
calcMacBaseLandUse(subtype)
calcMacBaseLandUse(subtype)
subtype |
Source of subset of emissions |
magpie object
David Klein, Julian Oeser
## Not run: a <- calcOutput(type = "MacBaseLandUse") ## End(Not run)
## Not run: a <- calcOutput(type = "MacBaseLandUse") ## End(Not run)
Calculation of the CH4 relative costcurves (subtypes: Energy Industry and Landuse) weighted by the baseline emissions. Sources: CH4 coal losses/leakages, CH4 oil losses/leakages, CH4 natural gas losses/leakages, CH4 Landfills, CH4 Domestic Sewage, CH4 Wetland rice, CH4 Animals, CH4 Animal waste divided in classes 1-201.
calcMACCsCH4(sector = "all", source = "ImageMacc")
calcMACCsCH4(sector = "all", source = "ImageMacc")
sector |
"all" or "landuse"; "all" includes energy_industry and landuse |
source |
"ImageMacc" or "PBL_MACC_2019" |
MAgPIE object
Nele Steinmetz, Florian Humpenoeder, Michael Windisch
calcOutput()
, readImageMacc()
,
convertImageMacc()
## Not run: calcOutput("MACCsCH4") ## End(Not run)
## Not run: calcOutput("MACCsCH4") ## End(Not run)
Calculation of the N2O relative costcurves (subtypes: Energy Industry and Landuse) weighted by the baseline emissions. Sources: N2O Transport, N2O Adipic acid production, N2O Nitric acid production, N2O Fertilizer, N2O Animal waste, N2O Domestic sewage divided in classes 1-201.
calcMACCsN2O(sector = "all", source = "ImageMacc")
calcMACCsN2O(sector = "all", source = "ImageMacc")
sector |
"all" or "landuse"; "all"" includes energy_industry and landuse |
source |
"ImageMacc" or "PBL_MACC_2019" |
MAgPIE object
Nele Steinmetz, Florian Humpenoeder, Michael Windisch
calcOutput()
, readImageMacc()
,
convertImageMacc()
## Not run: calcOutput("MACCsN2O") ## End(Not run)
## Not run: calcOutput("MACCsN2O") ## End(Not run)
calculates the share of Manure excreted during grazing which is collected for fuel. For the future, we assume that with the development, the fuel share reaches 0.
calcManureFuelShr(products = "magpie")
calcManureFuelShr(products = "magpie")
products |
IPCC: IPCC products. MAgPIE: Magpie products |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ManureFuelShr") ## End(Not run)
## Not run: calcOutput("ManureFuelShr") ## End(Not run)
calculates manure recycling to cropland based on excretions, animal waste management types (and their shares per country) and emission factors for nitrogenous emissions in livestock confinements
calcManureRecyclingCroplandPast( products = "sum", cellular = FALSE, cells = "lpjcell" )
calcManureRecyclingCroplandPast( products = "sum", cellular = FALSE, cells = "lpjcell" )
products |
"sum" (default) or "kli" |
cellular |
if TRUE value is calculate and returned (set aggregate to FALSE!) on cellular level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Kristine Karstens
## Not run: calcOutput("calcManureRecyclingCroplandPast") ## End(Not run)
## Not run: calcOutput("calcManureRecyclingCroplandPast") ## End(Not run)
calculates fixation from freeliving bacteria and from nitrogen-fixing crops and natural vegetation
calcNitrogenBNF(cellular = FALSE)
calcNitrogenBNF(cellular = FALSE)
cellular |
cellular disaggreagation or national values |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBNF") ## End(Not run)
## Not run: calcOutput("NitrogenBNF") ## End(Not run)
Calculates Nitrogen Budgets for Cropland soils on country levels.
calcNitrogenBudgetCropland( cellular = FALSE, deposition = "CEDS", include_fertilizer = TRUE, max_snupe = 0.85 )
calcNitrogenBudgetCropland( cellular = FALSE, deposition = "CEDS", include_fertilizer = TRUE, max_snupe = 0.85 )
cellular |
disaggregated to 0.5 degree grid |
deposition |
if FALSE, deposition is not accounted for in the distribution. Use FALSE to avoid circularities in calcNitrogenBudget |
include_fertilizer |
including fertilizer in budget. Use FALSE to avoid circularities in specific cases |
max_snupe |
NULL or a numeric value. if numeric, an additional N balanceflow is included that takes care that the soil nitrogen uptake efficiency does not exceed the numeric value in balanceflow. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBudgetCropland") ## End(Not run)
## Not run: calcOutput("NitrogenBudgetCropland") ## End(Not run)
Calculates Nitrogen Budgets for Non-agricultural land on country levels.
calcNitrogenBudgetNonagland( deposition = "CEDS", max_nue = 0.95, cellular = FALSE )
calcNitrogenBudgetNonagland( deposition = "CEDS", max_nue = 0.95, cellular = FALSE )
deposition |
if FALSE, deposition is not accounted for in the distribution. Use FALSE to avoid circularities in calcNitrogenBudget |
max_nue |
NULL or a numeric value. if numeric, an additional N balanceflow is included that takes care that the nitrogen use efficiency does not exceed the numeric value in balanceflow. |
cellular |
TRUE returns output on 0.5° grid |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBudgetNonagland") ## End(Not run)
## Not run: calcOutput("NitrogenBudgetNonagland") ## End(Not run)
Calculates Nitrogen Budgets for Oceans on global level. Values are placed in Antarcica (ATA)
calcNitrogenBudgetOcean(deposition = "ACCMIP", leaching = "Nsurplus")
calcNitrogenBudgetOcean(deposition = "ACCMIP", leaching = "Nsurplus")
deposition |
Method for calculating Atmospheric deposition: Nsurplus2 and Nsurplus are based on deposition rates based on own emission calculations after 2 or after 1 iteration, respectively. |
leaching |
Method for calculating leaching: Nsurplus2 and Nsurplus are based on deposition rates based on own emission calculations after 2 or after 1 iteration, respectively. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBudgetOcean") ## End(Not run)
## Not run: calcOutput("NitrogenBudgetOcean") ## End(Not run)
Calculates Nitrogen Budgets for Pasture soils on country levels.
calcNitrogenBudgetPasture( cellular = FALSE, include_fertilizer = TRUE, deposition = "CEDS", max_nue = 0.9 )
calcNitrogenBudgetPasture( cellular = FALSE, include_fertilizer = TRUE, deposition = "CEDS", max_nue = 0.9 )
cellular |
cellular disaggreagation or national values |
include_fertilizer |
including fertilizer in budget. Use FALSE to avoid circularities in specific cases |
deposition |
if FALSE, deposition is not accounted for in the distribution. Use FALSE to avoid circularities in calcNitrogenBudget |
max_nue |
NULL or a numeric value. if numeric, an additional N balanceflow is included that takes care that the nitrogen use efficiency does not exceed the numeric value in balanceflow. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBudgetPasture") ## End(Not run)
## Not run: calcOutput("NitrogenBudgetPasture") ## End(Not run)
calculates fixation from freeliving bacteria and from nitrogen-fixing crops
calcNitrogenFixationPast( fixation_types = "both", sum_plantparts = TRUE, cellular = FALSE, irrigation = FALSE )
calcNitrogenFixationPast( fixation_types = "both", sum_plantparts = TRUE, cellular = FALSE, irrigation = FALSE )
fixation_types |
either "fixation_crops", "fixation_freeliving", or "both" |
sum_plantparts |
if false, crop residues, belowground residues and harvested organ are reported separately |
cellular |
cellular estimates optional |
irrigation |
if TRUE, distinguishes irrigated and non-irrigated crops |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("calcNitrogenFixationPast") ## End(Not run)
## Not run: calcOutput("calcNitrogenFixationPast") ## End(Not run)
calculates fixation rates from natural ecosystems based on evapostranspiration
calcNitrogenFixationRateNatural(cells = "lpjcell")
calcNitrogenFixationRateNatural(cells = "lpjcell")
cells |
"magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
List of magpie objects with results on global level, empty weight, unit and description.
Benjamin Leon Bodirsky
calcNitrogenFixationPast()
readHerridge()
## Not run: calcOutput("NitrogenFixationRateNatural") ## End(Not run)
## Not run: calcOutput("NitrogenFixationRateNatural") ## End(Not run)
calculates the crop-specific withdrawals of nutrients from soils
calcNitrogenWithdrawalByCrop( indicator = "total", cellular = FALSE, irrigation = FALSE )
calcNitrogenWithdrawalByCrop( indicator = "total", cellular = FALSE, irrigation = FALSE )
indicator |
total: estimates the inputs per total crop production; by_area estimates the inputs per area harvested |
cellular |
cellular disaggreagation or national values |
irrigation |
FALSE for the sum of irrigated and rainfed, FALSE for separated categories, 'rainfed' or 'irrigated for single categories |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenWithdrawalByCrop") ## End(Not run)
## Not run: calcOutput("NitrogenWithdrawalByCrop") ## End(Not run)
calculates the soil nitrogen uptake efficiency of pastures. # This is the nitrogen taken up from the soil (N in crop biomass minus biological fixation minus seed N) divided by the soil N inputs (fertilizer, manure etc). For the future, NUE scenarios are added.
calcNuePasture(cellular = FALSE, maccbase = TRUE)
calcNuePasture(cellular = FALSE, maccbase = TRUE)
cellular |
cellular disaggreagation or national values |
maccbase |
whether future scenarios should be expressed as base efficiency, excluding additional macc improvements (new default) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcSNUpE()
calcNitrogenBudgetPasture()
## Not run: calcOutput("NuePasture") ## End(Not run)
## Not run: calcOutput("NuePasture") ## End(Not run)
Nutrient Budget for Wastewater treatment and sewage
calcNutrientBudgetSewage(historic = TRUE)
calcNutrientBudgetSewage(historic = TRUE)
historic |
when TRUE only for the historic period, otherwise including future scenarios |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NutrientBudgetSewage") ## End(Not run)
## Not run: calcOutput("NutrientBudgetSewage") ## End(Not run)
physical inactivity level estimate based on Hallal, Pedro C, Lars Bo Andersen, Fiona C Bull, Regina Guthold, William Haskell, and Ulf Ekelund. 2012. "Global Physical Activity Levels: Surveillance Progress, Pitfalls, and Prospects." The Lancet 380 (9838):247-57. https://doi.org/10.1016/S0140-6736(12)60646-1.
calcPhysicalInactivity(update = TRUE)
calcPhysicalInactivity(update = TRUE)
update |
WHO estimates from http://apps.who.int/gho/data/view.main.2487?lang=en seem to have updated. TRUE provides the results as they were online on 27.2.2024 |
Calculates the cellular plantation area based on carbon densities
calcPlantationCellular()
calcPlantationCellular()
List of magpie object with results on cellular level, weight on cellular level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("PlantationCellular") ## End(Not run)
## Not run: calcOutput("PlantationCellular") ## End(Not run)
Calculates the calibration factors for plantation establishment globally
calcPlantEstablishCalib()
calcPlantEstablishCalib()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("PlantEstablishCalib", aggregate = TRUE) ## End(Not run)
## Not run: calcOutput("PlantEstablishCalib", aggregate = TRUE) ## End(Not run)
provides global prices from the IMPACT model projections, World Bank observations, and FAO observations for MAgPIE commodities in $/tDM
calcPriceAgriculture(datasource = "IMPACT3.2.2World_Price", unit = "US$17/tDM")
calcPriceAgriculture(datasource = "IMPACT3.2.2World_Price", unit = "US$17/tDM")
datasource |
Options of the source of data:
|
unit |
A string with the unit that should be returned. Options are:
|
List with a magpie object with commodity prices
Mishko Stevanovic, Xiaoxi Wang, Felicitas Beier
readIMPACT3.2.2World_Price()
,
calcWBGEM()
,
readWBGEM()
## Not run: calcOutput("PriceAgriculture", datasource = "IMPACT3.2.2World_Price", aggregate = FALSE) calcOutput("PriceAgriculture", datasource = "FAO") calcOutput("PriceAgriculture", datasource = "WBGEM", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("PriceAgriculture", datasource = "IMPACT3.2.2World_Price", aggregate = FALSE) calcOutput("PriceAgriculture", datasource = "FAO") calcOutput("PriceAgriculture", datasource = "WBGEM", aggregate = FALSE) ## End(Not run)
Calculate historical distribution of livestock production across different systems based on output of MAgPIE_FEED model
calcProdSysRatioPast()
calcProdSysRatioPast()
Historical distribution of livestock production across different systems and corresponding weights as a list of two MAgPIE objects
Isabelle Weindl
## Not run: calcOutput("ProdSysRatioPast") ## End(Not run)
## Not run: calcOutput("ProdSysRatioPast") ## End(Not run)
Distributes crop, pasture and livestock production in space to 0.5 degree
calcProduction( products = "kcr", cellular = FALSE, cells = "lpjcell", calibrated = TRUE, attributes = "all", irrigation = FALSE )
calcProduction( products = "kcr", cellular = FALSE, cells = "lpjcell", calibrated = TRUE, attributes = "all", irrigation = FALSE )
products |
setname of products ("kcr", "kli", "pasture") |
cellular |
if TRUE production is calculate on cellular level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
calibrated |
if FALSE, lpj yields will be used uncalibrated, if true, calibrated on FAP production on country level |
attributes |
"All" for all crop attributes, or specify e.g. DM (dry matter), Nr (nitrogen) for memory reduction |
irrigation |
if TRUE, additional information on irrigated and rainfed production is provided |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcLanduseInitialisation()
,
calcCroparea()
## Not run: calcOutput("Production") ## End(Not run)
## Not run: calcOutput("Production") ## End(Not run)
Writes down the equation parameters from various data sources
calcRegressionParameters(regression = "bmi_shr")
calcRegressionParameters(regression = "bmi_shr")
regression |
bmi_shr: Shares of BMI withina population. schofield or FAO_WHO_UNU1985: calculates intake based on anthropometrics |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("RegressionParameters") ## End(Not run)
## Not run: calcOutput("RegressionParameters") ## End(Not run)
Provides MAgPIE-FEED data for aboveground and belowground residues biomass
calcResBiomass( cellular = FALSE, cells = "lpjcell", plantparts = "both", irrigation = FALSE, attributes = "all", scenario = "default" )
calcResBiomass( cellular = FALSE, cells = "lpjcell", plantparts = "both", irrigation = FALSE, attributes = "all", scenario = "default" )
cellular |
If TRUE calculation and output on cellular level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
plantparts |
both, ag (aboveground) or belowground (bg). Both can have memory problems for cellular outputs |
irrigation |
if TRUE, distinguishes irrigated and non-irrigated crops |
attributes |
in dm, wm, ge, nr, p, k |
scenario |
define scenario switch for sensititvy analysis for historical SOC budget |
MAgPIE-FEED data for ProdResAg and corresonding weights as a list of two MAgPIE objects
Lavinia Baumstark, Isabelle Weindl, Benjamin Bodirsky
## Not run: calcOutput("ResBiomass") ## End(Not run)
## Not run: calcOutput("ResBiomass") ## End(Not run)
Calculates the demand for Crop Residues
calcResDemand(cellular = FALSE, scenario = "dafault")
calcResDemand(cellular = FALSE, scenario = "dafault")
cellular |
If TRUE calculation and output on cellular level |
scenario |
define scenario switch for sensititvy analysis for historical SOC budget |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ResDemand") ## End(Not run)
## Not run: calcOutput("ResDemand") ## End(Not run)
Calculates data for aboveground and belowground residues production with other usage
calcResFieldBalancePast( cellular = FALSE, products = "sum", scenario = "default" )
calcResFieldBalancePast( cellular = FALSE, products = "sum", scenario = "default" )
cellular |
If TRUE calculation and output on cellular level |
products |
"sum" (default) or "kres" |
scenario |
define scenario switch for sensititvy analysis for historical SOC budget |
data
Benjamin Bodirsky
## Not run: calcOutput("ResFieldBalancePast") ## End(Not run)
## Not run: calcOutput("ResFieldBalancePast") ## End(Not run)
Calculates the supply potential of Crop Residues for 2nd generation bioenergy for future and different ssp scenarios
calcResFor2ndBioengery(products = "all", product_aggr = TRUE, add_off = FALSE)
calcResFor2ndBioengery(products = "all", product_aggr = TRUE, add_off = FALSE)
products |
categorie (set) that should be reported, switch between "kres", "res_crop" (sum over all "kres"), "res_wood" and "all" |
product_aggr |
boolean, if product set should be summed up |
add_off |
add a column with empty supply for no residues available for 2nd gen BE |
List of magpie objects with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ResFor2ndBioengery") ## End(Not run)
## Not run: calcOutput("ResFor2ndBioengery") ## End(Not run)
calculates amount of yearly N from rock weathering by country or global total, disaggregated by land use type (LUH2v2 6 class, with FAO forest correction)
calcRockNWeathering()
calcRockNWeathering()
MAgPIE object of amount of N (Mt)
David M Chen
Calculates Seed demand
calcSeed( cellular = FALSE, cells = "lpjcell", products = "kall", irrigation = FALSE, attributes = "all" )
calcSeed( cellular = FALSE, cells = "lpjcell", products = "kall", irrigation = FALSE, attributes = "all" )
cellular |
cellular or regional level |
cells |
Switch between "magpiecell" (59199) and "lpjcell" (67420) |
products |
kcr or also kall, which includes seeds for eggs and fish |
irrigation |
if TRUE, distinguishes irrigated and non-irrigated crops |
attributes |
in dm, wm, ge, nr, p, k |
List of magpie object with results and weight on country or cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("Seed") ## End(Not run)
## Not run: calcOutput("Seed") ## End(Not run)
calculates the soil nitrogen uptake efficiency. This is the nitrogen taken up from the soil (N in crop biomass minus biological fixation minus seed N) divided by the soil N inputs (fertilizer, manure etc). For the future, SNuPE scenarios are added.
calcSNUpE(max_snupe = 0.85, cellular = FALSE, rev = 0.1, maccbase = TRUE)
calcSNUpE(max_snupe = 0.85, cellular = FALSE, rev = 0.1, maccbase = TRUE)
max_snupe |
Maximum realistic SNUPE. All values above will be limited to this value. Only holds for past values; future scneario values can exceed this number. |
cellular |
disaggregated to 0.5 degree grid |
rev |
revision number of madrat run |
maccbase |
whether future scenarios should be expressed as base efficiency, excluding additional macc improvemetns (new default) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Xiaoxi Wang
## Not run: calcOutput("SNUpE") ## End(Not run)
## Not run: calcOutput("SNUpE") ## End(Not run)
calculates Soil Organic Matter Pool, accounting for the management history. We assume carbon Stocks from LPJml natural vegetation as a starting point. Here we use the upper 30cm soil layer (0-20cm of + 1/3 of 30-50 cm). We then correct carbon pools by lost c-share depending on the climate region, using default factors of IPCC Guidelines 2006 table 5.5. We assume that this IPCC-corrected value is the target long-term equilibrium value for the soil stocks. Because soil decline and build-up slowly, we assume that in every year, the carbon pools move 15% towards this new equilibrium. This assumption is in line with IPCC saying that the process will take 20 years: with our assumption, after 5 years 44% of the carbon pool is gone, after 10 years 80% and after 20 years 96%. We determine a carbon stock for cropland soils and non-cropland soils in every cell. If the cropland area expands, the carbon stock of noncropland is proportionally assigned to the cropland pool and vice versa. The outputs of the function are the soilc stocks for cropland and non-cropland. Relevant for the release of N by SOM loss is also the change in carbon stocks per ha, as this relases or binds N. This is done in delta cropland soilc.
calcSOM(climatetype = "historical", subtype = "stock", cells = "lpjcell")
calcSOM(climatetype = "historical", subtype = "stock", cells = "lpjcell")
climatetype |
Switch between different climate scenarios (default on "historical") |
subtype |
"stock" (default) for absoulte values, "density" for per hectar values |
cells |
"magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
List of magpie object with results on country or cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky, Kristine Karstens
## Not run: calcOutput("SOM2") ## End(Not run)
## Not run: calcOutput("SOM2") ## End(Not run)
calculates effect on N from Soil Organic Matter loss
calcSOMlossN(cellular = FALSE, cells = "lpjcell")
calcSOMlossN(cellular = FALSE, cells = "lpjcell")
cellular |
if TRUE cellular level is returned |
cells |
"magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
List of magpie object with results on country or cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky,
## Not run: calcOutput("SOMlossN") ## End(Not run)
## Not run: calcOutput("SOMlossN") ## End(Not run)
calculates stock levels of magpie commodities based on FAO data. FAO data only has stock variation so we assume lowest level for each product/country as 0 level USDA data to be potentially included in future second data source
calcStorage(datasource = "FAO")
calcStorage(datasource = "FAO")
datasource |
Options of the source of data, currently only FAO: |
List with a magpie object with stock level in tonnes
David Chen
## Not run: calcOutput("Storage", datasource = "FAO") ## End(Not run)
## Not run: calcOutput("Storage", datasource = "FAO") ## End(Not run)
calculates average monthly temperature on different landuse types
calcTemperature(landusetypes = "all", months = FALSE, convert = TRUE)
calcTemperature(landusetypes = "all", months = FALSE, convert = TRUE)
landusetypes |
all or only one (to save computation memory) |
months |
FALSE for yearly average, TRUE for monthly values |
convert |
FALSE for raw values of temperature, TRUE add temperature of 15 degrees for countries without observations or land mass. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("Temperature") ## End(Not run)
## Not run: calcOutput("Temperature") ## End(Not run)
Calculates the demand of timber from FAO data (including intermediate products).
calcTimberDemand()
calcTimberDemand()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("TimberDemand") ## End(Not run)
## Not run: calcOutput("TimberDemand") ## End(Not run)
recover world price of commodity in terms of real 2005 USD per metric ton
calcWBGEM()
calcWBGEM()
magpie object of time series of world price of commodities
Xiaoxi Wang
## Not run: calcOutput("WBGEM") ## End(Not run)
## Not run: calcOutput("WBGEM") ## End(Not run)
function to convert ACCMIP data to isocountry resolution
convertACCMIP(x)
convertACCMIP(x)
x |
MAgPIE object |
MAgPIE object
Roman Popov, Felicitas Beier
## Not run: readSource("ACCMIP", subtype = "nhx_1850") ## End(Not run)
## Not run: readSource("ACCMIP", subtype = "nhx_1850") ## End(Not run)
Reads in regression parameters estimated using mrregression, and reads in some scenario based on Bodirsky et al not yet published
convertBodirsky2018(x, subtype)
convertBodirsky2018(x, subtype)
x |
magpie object from read function |
subtype |
bmi_share, demand_regression, intake_regression or bodyheight_regression for the estimated regression paramters of different regressions. scenarios for scenario projections. |
magpie object
converts emission data from the CEDS database
convertCEDS2021(x)
convertCEDS2021(x)
x |
magpie object from source function |
MAgPIE object
Benjamin Leon Bodirsky, David Klein
converts emission data from the CEDS database
convertCEDS2024(x)
convertCEDS2024(x)
x |
magpie object from source function |
MAgPIE object
Benjamin Leon Bodirsky, David Klein
Read-in European Environment Agency (EEA) data on ETS emissions as magclass object
convertEEA_EuropeanEnvironmentAgency(x, subtype)
convertEEA_EuropeanEnvironmentAgency(x, subtype)
x |
MAgPIE object to be converted |
subtype |
data subtype. Either "ETS", "historical", "projections", or "projections-detailed" |
magpie object of European Environment Agency (EEA) ETS emissions (GtCO2)
Renato Rodrigues, Robin Hasse
## Not run: a <- readSource(type = "EEA_EuropeanEnvironmentAgency", subtype = "ETS") ## End(Not run)
## Not run: a <- readSource(type = "EEA_EuropeanEnvironmentAgency", subtype = "ETS") ## End(Not run)
Converts EU Reference Scenario magpie object into appropriate form for the REMIND model
convertEU_ReferenceScenario(x, subtype)
convertEU_ReferenceScenario(x, subtype)
x |
EU Reference Scenario magpie object derived from readEU_ReferenceScenario function |
subtype |
data subtype. Either "techAssump.*", "2016" or "2020" |
converted EU Reference Scenario magpie object
Renato Rodrigues, Falk Benke, Robin Hasse
## Not run: test <- readSource("EU_ReferenceScenario", subtype = "2020", convert = TRUE) ## End(Not run)
## Not run: test <- readSource("EU_ReferenceScenario", subtype = "2020", convert = TRUE) ## End(Not run)
Converts Eurostat historical emissions
convertEurostat(x, subtype)
convertEurostat(x, subtype)
x |
MAgPIE object to be converted |
subtype |
emissions for original eurostat emissions split, MACCemi for MACC historical emissions, or sectorEmi for sector specific emissions |
A MAgPIE object containing the Eurostat historical emissions (MtCO2)
Renato Rodrigues
## Not run: a <- convertEurostat(x, subtype = "emissions") ## End(Not run)
## Not run: a <- convertEurostat(x, subtype = "emissions") ## End(Not run)
convert the Expert Guesses for future Livestock Production for the SSP Scenarios
convertExpertGuessSSPLivestockProduction(x)
convertExpertGuessSSPLivestockProduction(x)
x |
MAgPIE-Object contaiing data to convert |
magpie object containing converted expert guesses
Stephen Wirth
## Not run: a <- readSource("ExpertGuessSSPLivestockProduction","ssp1") ## End(Not run)
## Not run: a <- readSource("ExpertGuessSSPLivestockProduction","ssp1") ## End(Not run)
Convert production system distribution and feed basket data to ISO country level.
convertFeedModel(x, subtype = "FeedBaskets")
convertFeedModel(x, subtype = "FeedBaskets")
x |
MAgPIE object containing production system distribution and feed basket data. |
subtype |
Available subtypes: "ProdSysRatio", "FeedBaskets" and "FeedBasketsDetailed" |
Production system distribution and feed basket data as MAgPIE object on ISO country level
Isabelle Weindl, Jan Philipp Dietrich
disaggregates country groups from GTAP according to GDP share
convertGTAPv8v9(x, subtype)
convertGTAPv8v9(x, subtype)
x |
unconverted magpie object from read-script |
subtype |
GTAP header that should be read |
Data as MAgPIE object with common country list
Debbora Leip, David M. Chen
## Not run: a <- readSource("convertGTAPv8v9", "81:SF01", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("convertGTAPv8v9", "81:SF01", convert = TRUE) ## End(Not run)
Converts the Data from Herridge et al. to fit the common country list. Source: Herridge D. F., Peoples M. B., Boddey R. M.: Global inputs of biological nitrogen fixation in agricultural systems
convertHerridge(x)
convertHerridge(x)
x |
MAgPIE object to be converted |
A MAgPIE object containing the share of Nr derived from fixation for each country and each commodity.
Stephen Wirth
## Not run: x <- readSource("Herridge") ## End(Not run)
## Not run: x <- readSource("Herridge") ## End(Not run)
converts data of World Bank ICP round, downloaded from here: https://databank.worldbank.org/source/icp-2017 mainly a currency conversion to MER2017. Assume that in the original dataset, 2011 values are in 2011MER and 2017 in 2017MER, given the ICP rounds
convertICP2017(x, subtype = "per_cap_expMER")
convertICP2017(x, subtype = "per_cap_expMER")
x |
MAgPIE object containing original values |
subtype |
data subtype needed. Either "priceLevel", or "per_cap_exp" |
magpie object of relative price levels (world = 100) or per capita expenditure (USD17 MER)
David M Chen
## Not run: a <- convertSource("ICP2017", "per_cap_exp") ## End(Not run)
## Not run: a <- convertSource("ICP2017", "per_cap_exp") ## End(Not run)
Convert IEA energy data to data on ISO country level.
convertIEA(x, subtype)
convertIEA(x, subtype)
x |
MAgPIE object containing IEA values at IEA mixed country-region resolution |
subtype |
data subtype. Either "EnergyBalances", "EnergyBalances-latest", or "Emissions" |
IEA data as MAgPIE object aggregated to country level
Anastasis Giannousakis, Renato Rodrigues, Falk Benke
Convert IEA End Uses and Efficiency Indicators data to data on ISO country level.
convertIEA_EEI(x)
convertIEA_EEI(x)
x |
MAgPIE object to be converted |
Falk Benke
Convert IFADavies (2013) data to ISO country level.
convertIFA(x)
convertIFA(x)
x |
MAgPIE object containing IFA data region resolution |
MAgPIE object of the IFA data disaggregated to country level
Lavinia Baumstark
## Not run: a <- convertIFA(x) ## End(Not run)
## Not run: a <- convertIFA(x) ## End(Not run)
Convert subtypes from ImageMacc to data on ISO country level. Correct values for N2O of the subtype "baseline_sources" from N to N2O (factor: 44/28).
convertImageMacc(x, subtype)
convertImageMacc(x, subtype)
x |
MAgPIE object containing ImageMacc data mixed on region level |
subtype |
data subtype. Either CH4_Energy_Industry", "CH4_Landuse", "N2O_Energy_Industry", "N2O_Landuse", "HFC_tot", "SF6_tot", "PFC_tot" or "baseline_sources" |
ImageMacc data as MAgPIE object for all subtypes aggregated to country level
Nele Steinmetz
## Not run: a <- readSource("ImageMacc", "CH4_Energy_Industry") a <- readSource("ImageMacc", "CH4_Landuse") a <- readSource("ImageMacc", "N2O_Energy_Industry") a <- readSource("ImageMacc", "N2O_Landuse") a <- readSource("ImageMacc", "HFC_tot") a <- readSource("ImageMacc", "SF6_tot") a <- readSource("ImageMacc", "PFC_tot") a <- readSource("ImageMacc", "baseline_sources") ## End(Not run)
## Not run: a <- readSource("ImageMacc", "CH4_Energy_Industry") a <- readSource("ImageMacc", "CH4_Landuse") a <- readSource("ImageMacc", "N2O_Energy_Industry") a <- readSource("ImageMacc", "N2O_Landuse") a <- readSource("ImageMacc", "HFC_tot") a <- readSource("ImageMacc", "SF6_tot") a <- readSource("ImageMacc", "PFC_tot") a <- readSource("ImageMacc", "baseline_sources") ## End(Not run)
Convert subtypes on ISO country level.
convertIPCC(x, subtype)
convertIPCC(x, subtype)
x |
MAgPIE object containing IPCC data on region level |
subtype |
data subtype. Either "awmsShr", "awmsEfCh4", "awmsParCh4", "nExcrRate" |
IPCC data as MAgPIE object for all subtypes on country level
Nele Steinmetz
## Not run: a <- readSource("IPCC", "awmsShr") a <- readSource("IPCC", "awmsEfCh4") a <- readSource("IPCC", "awmsParCh4") a <- readSource("IPCC", "nExcrRate") ## End(Not run)
## Not run: a <- readSource("IPCC", "awmsShr") a <- readSource("IPCC", "awmsEfCh4") a <- readSource("IPCC", "awmsParCh4") a <- readSource("IPCC", "nExcrRate") ## End(Not run)
convert data to ISO country level
convertISIMIP(x, subtype)
convertISIMIP(x, subtype)
x |
MAgPIE object on cellular level |
subtype |
data subtype |
MAgPIE object on country level
Jan Philipp Dietrich, Felicitas Beier
## Not run: a <- readSource("ISIMIP", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("ISIMIP", convert = TRUE) ## End(Not run)
Missing data for EU-28 countries is added, by distributing the difference of
EU28
and the sum of country-values based on countries share in EU-28 GDP.
convertJRC_IDEES(x)
convertJRC_IDEES(x)
x |
A |
A magpie
object.
Michaja Pehl
Convert Koeppen climate zones on iso-country level
convertKoeppen(x, subtype = "iso")
convertKoeppen(x, subtype = "iso")
x |
magpie object provided by the read function |
subtype |
Switch between different levels |
List of magpie objects with results on country level
Kristine Karstens
## Not run: readSource("Koeppen", subtype = "iso", convert = TRUE) ## End(Not run)
## Not run: readSource("Koeppen", subtype = "iso", convert = TRUE) ## End(Not run)
converts the dataset of Lassaletta, L., G. Billen, B. Grizzetti, J. Angalde, and J. Garnier. 2014. 50 Year Trends in Nitrogen Use Efficiency of World Cropping Systems: The Relationship between Yield and Nitrogen Input to Cropland. Environmental Research Letters. into a dataset including all countries. Replacing Soviet Union by Russia and Yugoslavia by Serbia without detailed disaggregation.
convertLassaletta2014(x, subtype)
convertLassaletta2014(x, subtype)
x |
data object that gets provided by wrapper function readSource |
subtype |
budget provides the nr cropland budgets, fert_to_cropland the share of inorganic fertilizers being applied to croplands |
Magpie object with results on country level.
Benjamin Leon Bodirsky
readLassaletta2014()
,
readSource()
## Not run: readSource("Lassaletta2014", convert = TRUE) ## End(Not run)
## Not run: readSource("Lassaletta2014", convert = TRUE) ## End(Not run)
Converts the Data from Lotze Campen et al. 2014. to fit the common country list. Source: Lotze Campen et al. 2014. "Impacts of increased bioenergy demand on global food markets: an AgMIP economic model intercomparison" Agricultural Economics 45 (103-116). doi:10.1111/agec.12092.
convertLotzeCampenBiofuel(x)
convertLotzeCampenBiofuel(x)
x |
MAgPIE object to be converted |
A MAgPIE object containing future trends in first generation bioenergy demand in Petajoules as magpie object for each country for biodiesel and ethanol.
Ewerton Araujo
## Not run: x <- readSource("LotzeCampenBiofuel") ## End(Not run)
## Not run: x <- readSource("LotzeCampenBiofuel") ## End(Not run)
It fills the missing values of the output of readLutz2014 through the weighted average of the values of two countries with similar characteristics to the one that has na values.
convertLutz2014(x)
convertLutz2014(x)
x |
magpie object provided by the read function |
Convert MAgPIE data to country-level.
convertMAgPIE(x, subtype)
convertMAgPIE(x, subtype)
x |
input MAgPIE data on region-level |
subtype |
Either "EmiAirPoll", "macBase", "co2tax", "supplyCurve_magpie_40", "abatparam_co2" |
magpie object
David Klein, Felix Schreyer
Converts data from the NCD risc consortium body height: Collaboration (NCD-RisC), NCD Risk Factor. 2016. "A Century of Trends in Adult Human Height." ELife 5 (July):e13410. https://doi.org/10.7554/eLife.13410.
convertNCDrisc(x, subtype)
convertNCDrisc(x, subtype)
x |
unconverted magpie object from read-script |
subtype |
"height" for body height data. Missing data is replaced by non-population weighted global average |
magpie object with a completed dataset.
Convert subtypes from PBL_MACC_2019 to data on ISO country level.#'
convertPBL_MACC_2019(x, subtype)
convertPBL_MACC_2019(x, subtype)
x |
MAgPIE object containing PBL_MACC_2019 data on region level |
subtype |
data subtype. "ch4coal","ch4oil","ch4gas","ch4wstl","ch4wsts","ch4rice","ch4animals","ch4anmlwst", "n2otrans","n2oadac","n2onitac","n2ofert","n2oanwst","n2owaste", "HFC_tot", "SF6_tot", "PFC_tot" or "baseline_sources" |
PBL_MACC_2019 data as MAgPIE object for all subtypes aggregated to country level
Florian Humpenoeder
Convert subtypes from PBL_MACC_2022 to data on ISO country level.#'
convertPBL_MACC_2022(x)
convertPBL_MACC_2022(x)
x |
MAgPIE object containing PBL_MACC_2022 data on region level |
PBL_MACC_2022 data as MAgPIE object for all subtypes aggregated to country level
Michael Windisch, Florian Humpenoeder
Convert subtypes from PBL_MACC_SSP2_2022 to data on ISO country level.#'
convertPBL_MACC_SSP2_2022(x)
convertPBL_MACC_SSP2_2022(x)
x |
MAgPIE object containing PBL_MACC_SSP2_2022 data on region level |
PBL_MACC_SSP2_2022 data as MAgPIE object for all subtypes aggregated to country level
Michael Windisch, Florian Humpenoeder
function to convert PRIMAP-hist data to isocountry resolution
convertPRIMAPhist(x)
convertPRIMAPhist(x)
x |
MAgPIE object |
MAgPIE object
Roman Popov
## Not run: readSource("PRIMAPhist", subtype = "hist") ## End(Not run)
## Not run: readSource("PRIMAPhist", subtype = "hist") ## End(Not run)
Convert old ReMIND use of residues for 2nd generation bioenergy to country level data
convertResFor2ndBE(x, subtype = subtype)
convertResFor2ndBE(x, subtype = subtype)
x |
MAgPIE object containing original values |
subtype |
oldReMIND, newAgriSupply |
List of magpie objects with results on country level
Kristine Karstens
## Not run: a <- readSource("ResFor2ndBE", subtype = "oldReMIND", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("ResFor2ndBE", subtype = "oldReMIND", convert = TRUE) ## End(Not run)
Convert SoilGrids content
convertSoilGrids(x)
convertSoilGrids(x)
x |
magpie object provided by the read function |
List of magpie objects with results on cellular level, weight, unit and description.
Kristine Karstens
## Not run: readSource("SoilGrids", subtype = "cstock_0_30", convert = TRUE) ## End(Not run)
## Not run: readSource("SoilGrids", subtype = "cstock_0_30", convert = TRUE) ## End(Not run)
Disagregates from SSP regions to ISO countries
convertSSPResults(x)
convertSSPResults(x)
x |
object coming from read function |
MAgPIE object with ISO countries with all indicators for which disaggregation weight was found
Abhijeet Mishra, Benjamin Leon Bodirsky, Florian Humpenoeder
## Not run: readSource("SSPResults", aggregate = TRUE) ## End(Not run)
## Not run: readSource("SSPResults", aggregate = TRUE) ## End(Not run)
Reads a dataset containing values for sewage
convertVanDrecht2009(x)
convertVanDrecht2009(x)
x |
MAgPIE object containing incomplete country-region resolution |
A MAgPIE object containing sewage quantities and losses
Benjamin Leon Bodirksy
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)
Converts data from the WHO
convertWHO(x)
convertWHO(x)
x |
unconverted magpie object from read-script |
magpie object with a completed dataset.
correct Andrijevic governance data
correctAndrijevic2019(x, subtype)
correctAndrijevic2019(x, subtype)
x |
magpie object provided by the read function |
subtype |
data to be returned: "historical" for observed data until 2015 "projected" for projected SSP scenario data from 2015 to 2099 |
corrected magpie object iso-level
Felicitas Beier
correct Edgar-food data
correctEDGARfood(x, subtype)
correctEDGARfood(x, subtype)
x |
magpie object provided by the read function |
subtype |
Type of data that should be read
|
corrected magpie object
David Hoetten
Correct FoodSystemsDashboard values that are questionable
correctFoodSystemsDashboard(x, subtype)
correctFoodSystemsDashboard(x, subtype)
x |
magpie object provided by the read function |
subtype |
Switch between different levels |
List of magpie objects
David Chen
Correct IPCC climate classification
correctIPCCClimate(x)
correctIPCCClimate(x)
x |
magpie object provided by the read function |
Magpie object with results on cellular level for 12 IPCC climate zone types
Kristine Karstens
## Not run: readSource("IPCCClimate", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("IPCCClimate", convert = "onlycorrect") ## End(Not run)
Correct Koeppen climate zones on cellular level
correctKoeppen(x, subtype = "iso")
correctKoeppen(x, subtype = "iso")
x |
magpie object provided by the read function |
subtype |
Switch between different levels |
List of magpie objects with results on cellular level
Kristine Karstens
## Not run: readSource("Koeppen", subtype = "cellular", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Koeppen", subtype = "cellular", convert = "onlycorrect") ## End(Not run)
Correct SoilGrids content
correctSoilGrids(x)
correctSoilGrids(x)
x |
magpie object provided by the read function |
List of magpie objects with results on cellular level, weight, unit and description.
Kristine Karstens
## Not run: readSource("SoilGrids", subtype = "cstock_0_30", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("SoilGrids", subtype = "cstock_0_30", convert = "onlycorrect") ## End(Not run)
correct biome data
correctTNC2019(x)
correctTNC2019(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("TNC2019", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("TNC2019", convert = "onlycorrect") ## End(Not run)
This function downloads the governance indicator data available at https://github.com/marina-andrijevic/governance2019
downloadAndrijevic2019(subtype = "governance_obs_project")
downloadAndrijevic2019(subtype = "governance_obs_project")
subtype |
file that should be downloaded from governance2019 repository |
Felicitas Beier
## Not run: downloadSource("Andrijevic2019", subtype = "governance_obs_project") ## End(Not run)
## Not run: downloadSource("Andrijevic2019", subtype = "governance_obs_project") ## End(Not run)
download EDGAR emission data
downloadEDGAR6(subtype = "n2o")
downloadEDGAR6(subtype = "n2o")
subtype |
type in gas for receiving the newest data. type in specific filename for old version 4.31 data |
List of magpie objects with results on cellular level, weight, unit and description.
Benjamin Leon Bodirsky
download Edgar-food v6 food system emission data
downloadEDGARfood()
downloadEDGARfood()
David Hötten
Downloads the latest data and meta data form the Eurostat website.
downloadEurostatLivestock(subtype)
downloadEurostatLivestock(subtype)
subtype |
Type of Eurostat Livestock data that should be read. |
Download the GFED (Global Fire Emissions Database) dataset for all years not labeled as beta, in addition to the emission factors.
downloadGFED()
downloadGFED()
Michael S. Crawford
## Not run: a <- downloadSource() ## End(Not run)
## Not run: a <- downloadSource() ## End(Not run)
Download ISIMIP GGCMI crop calendar information and harvest area masks
downloadGGCMICropCalendar()
downloadGGCMICropCalendar()
David M Chen, Edna Molina Bacca
Download IPCC climate classification
downloadIPCCClimate()
downloadIPCCClimate()
Meta information on downloaded data
Kristine Karstens
## Not run: readSource("IPCCClimate", convert="onlycorrect") ## End(Not run)
## Not run: readSource("IPCCClimate", convert="onlycorrect") ## End(Not run)
Downloads the latest data from ISIMIP.
downloadISIMIP(subtype)
downloadISIMIP(subtype)
subtype |
Type of ISIMIP data that should be read. It consists of variable ("airrww"), model ("cwatm","h08","lpjml","matsiro","mpi-hm","pcr-globwb"), GCM ("ipsl-cm5a-lr","gfdl-esm2m","miroc5","hadgem2-es") and database version ("2a","2b","3a","3b"), separated by ":" (e.g. "airww:LPJmL:gfdl-esm2m:2b"). Similarly for ISIMIP GGCMI phase3b data, with scenarios and CO2 fert setting, downloads for all crops and irrigation settings models ("LPJmL", "EPIC-IIASA", "pDSSAT", "CYGMA1p74"), gcms ("gfdl-esm4", "ipsl-cm6a-lr", "mpi-esm1-2-hr", "mri-esm2-0", "ukesm1-0-ll"), scenarios ("historical", "ssp126", "ssp370", "ssp585"), co2 ("default", "2015co2"), version c("2a","2b","3a","3b"))) Example of yield subtype : "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b" |
Jan Philipp Dietrich
Download he grid-level regional nitrogen boundary datasets from Schulte-Uebbing et al. (2022)
downloadNitrogenBoundariesGridded()
downloadNitrogenBoundariesGridded()
Michael S. Crawford
## Not run: a <- downloadSource("NitrogenBoundariesGridded") ## End(Not run)
## Not run: a <- downloadSource("NitrogenBoundariesGridded") ## End(Not run)
This function downloads the raw SoilGrids data (available at https://files.isric.org/soilgrids/data/recent) or, if available, the preprocessed raster layers.
downloadSoilGrids(subtype = "cstock_0_30")
downloadSoilGrids(subtype = "cstock_0_30")
subtype |
Switch between different input. Use predefined ones or any FileName specified in 'SoilGrids/META_GEOTIFF_1B.csv' |
magpie object in cellular resolution
Kristine Karstens
## Not run: downloadSource("SoilGrids", subtype = "carbon0_30") ## End(Not run)
## Not run: downloadSource("SoilGrids", subtype = "carbon0_30") ## End(Not run)
Download UN_PopDiv dataset (World Population Prospects)
downloadUN_PopDiv()
downloadUN_PopDiv()
Michael Crawford, Debbora Leip
downloadSource()
readUN_PopDiv()
## Not run: a <- downloadSource() ## End(Not run)
## Not run: a <- downloadSource() ## End(Not run)
Read in data from the Atmospheric Chemistry and Climate Model Intercomparison Project
readACCMIP(subtype = NULL)
readACCMIP(subtype = NULL)
subtype |
data subtype. available subtypes are:
|
magpie object of the ACCMIP data. Unit is t NO2-N per ha per year, or t NH3-N per ha per year,...
Roman Popov
## Not run: a <- readACCMIP("ACCMIP", "nhx_2000") a <- readACCMIP("ACCMIP", "sox_26_2030") ## End(Not run)
## Not run: a <- readACCMIP("ACCMIP", "nhx_2000") a <- readACCMIP("ACCMIP", "sox_26_2030") ## End(Not run)
Read in data from Grassi et al. 2021. Adjustement factors for emission in GtCO2 yr-1.
readAdjustGrassi2021(subtype)
readAdjustGrassi2021(subtype)
subtype |
Either "data" or "weight" |
Adjustement factors or weight as MAgPIE object
Michael Windisch, Florian Humpenoeder
## Not run: readSource("AdjustGrassi2021", subtype = "data") ## End(Not run)
## Not run: readSource("AdjustGrassi2021", subtype = "data") ## End(Not run)
read in governance index data from Andrijevic et al. 2019
readAndrijevic2019(subtype)
readAndrijevic2019(subtype)
subtype |
data used from governance2019 repository |
governance index data at iso-country level
Felicitas Beier
## Not run: a <- readSource("Andrijevic2019") ## End(Not run)
## Not run: a <- readSource("Andrijevic2019") ## End(Not run)
Reads in regression parameters estimated using mrregression, and reads in some scenario based on Bodirsky et al not yet published
readBodirsky2018(subtype = "bmi_shr")
readBodirsky2018(subtype = "bmi_shr")
subtype |
bmi_share, demand_regression, intake_regression or bodyheight_regression for the estimated regression paramters of different regressions. scenarios for scenario projections. |
magpie object
Read-in an Long term carbon storage data for historical period.
readCarbonLTS(subtype)
readCarbonLTS(subtype)
subtype |
data subtype. |
magpie object of the FRA 2015 data
Abhijeet Mishra
## Not run: a <- readSource("CarbonLTS", "Lauk_et_al") ## End(Not run)
## Not run: a <- readSource("CarbonLTS", "Lauk_et_al") ## End(Not run)
reads in emission data from the CEDS database
readCEDS2021()
readCEDS2021()
MAgPIE object
Benjamin Leon Bodirsky, David Klein
reads in emission data from the CEDS database
readCEDS2024()
readCEDS2024()
MAgPIE object
Pascal Weigmann
Read-in EDGAR_LU csv file as magclass object
readEDGAR_LU(subtype = "CO2")
readEDGAR_LU(subtype = "CO2")
subtype |
emission type |
magpie object EDGAR_LU data
Florian Humpenoeder
## Not run: a <- readSource(type = "EDGAR_LU") ## End(Not run)
## Not run: a <- readSource(type = "EDGAR_LU") ## End(Not run)
download EDGAR 5 and 6 emission data
readEDGAR6(subtype)
readEDGAR6(subtype)
subtype |
type in gas |
List of magpie objects with results on country level, weight, unit and description.
Benjamin Leon Bodirsky, Michael S. Crawford
read Edgar-food v6 food system emission data
readEDGARfood(subtype)
readEDGARfood(subtype)
subtype |
Type of data that should be read
|
A magpie object with foodsystem total emissions, emission shares or sector and substance specific emission, depending on subtype
David Hötten
read EDGAR GHG emission data
readEDGARghg()
readEDGARghg()
magpie objects of EDGAR historical emissions (MtCO2eq)
Pascal Weigmann
Read-in European Environment Agency (EEA) data on ETS emissions as magclass object
readEEA_EuropeanEnvironmentAgency(subtype)
readEEA_EuropeanEnvironmentAgency(subtype)
subtype |
data subtype. Either "ETS", "ESR", "total", "sectoral", "projections", or "projections-detailed" |
magpie object of European Environment Agency (EEA) ETS emissions (GtCO2)
Renato Rodrigues, Falk Benke, Robin Hasse
## Not run: a <- readSource(type = "EEA_EuropeanEnvironmentAgency", subtype = "ETS") ## End(Not run)
## Not run: a <- readSource(type = "EEA_EuropeanEnvironmentAgency", subtype = "ETS") ## End(Not run)
Read EU Reference Scenario .xlsx file as magpie object
readEU_ReferenceScenario(subtype)
readEU_ReferenceScenario(subtype)
subtype |
data subtype. Either "techAssump.*", "2016" or "2020" |
magpie object of EU reference scenario data by country. Units follow REMIND report conventions and conversion factor is defined in EU_ReferenceScenario2REMIND.xlsx file.
Renato Rodrigues, Falk Benke, Robin Hasse
## Not run: test <- readSource("EU_ReferenceScenario", subtype = "2020", convert = FALSE) ## End(Not run)
## Not run: test <- readSource("EU_ReferenceScenario", subtype = "2020", convert = FALSE) ## End(Not run)
Read-in Eurostat historical emissions csv files as magclass object
readEurostat(subtype = "emissions")
readEurostat(subtype = "emissions")
subtype |
emissions for original eurostat emissions split, MACCemi for MACC historical emissions, or sectorEmi for sector specific emissions |
magpie object of Eurostat historical emissions (MtCO2)
Renato Rodrigues
## Not run: a <- readSource(type = "Eurostat", subtype = "emissions") ## End(Not run)
## Not run: a <- readSource(type = "Eurostat", subtype = "emissions") ## End(Not run)
Read in EUROSTAT livestock data
readEurostatLivestock(subtype)
readEurostatLivestock(subtype)
subtype |
Type of FAO data that should be read. Available types are:
|
EUROSTAT livestock data as MAgPIE object
David Hötten
## Not run: a <- readSource("EurostatLivestock", "MeatProd") ## End(Not run)
## Not run: a <- readSource("EurostatLivestock", "MeatProd") ## End(Not run)
Read the Expert Guesses for future Livestock Production for the SSP Scenarios
readExpertGuessSSPLivestockProduction(subtype)
readExpertGuessSSPLivestockProduction(subtype)
subtype |
: Available subtypes are: ssp1 to 5 Data for the SSP Scenario |
magpie object containing the expert guesses
Stephen Wirth
## Not run: a <- readSource("ExpertGuessSSPLivestockProduction","ssp1") ## End(Not run)
## Not run: a <- readSource("ExpertGuessSSPLivestockProduction","ssp1") ## End(Not run)
Read in csv file containing coefficients of non-linear regression analysis for the calculation of future feed efficiencies of feed baskets dependent on livestock productivity trends
readFeedEfficiencyReg()
readFeedEfficiencyReg()
MAgPIE object containing regression coefficients
Isabelle Weindl
## Not run: a <- readSource("FeedEfficiencyReg") ## End(Not run)
## Not run: a <- readSource("FeedEfficiencyReg") ## End(Not run)
Read in csv files containing data on production system distribution and system-specific feed baskets from the FeedModel "MAgPIE_FEED"
readFeedModel(subtype = "FeedBaskets")
readFeedModel(subtype = "FeedBaskets")
subtype |
Available subtypes: "ProdSysRatio", "FeedBaskets" and "FeedBasketsDetailed" |
magpie object of feed basket data
Isabelle Weindl
## Not run: a <- readSource(type = "FeedModel", subtype = "FeedBaskets") ## End(Not run)
## Not run: a <- readSource(type = "FeedModel", subtype = "FeedBaskets") ## End(Not run)
read in Food Systems Dashboard indicators
readFoodSystemsDashboard(subtype)
readFoodSystemsDashboard(subtype)
subtype |
Currently either "Processed" for Processed food expenditures per capita or "Industrial Processing Share" |
governance index data at iso-country level
David Chen
## Not run: a <- readSource("FoodSystemsDashboard") ## End(Not run)
## Not run: a <- readSource("FoodSystemsDashboard") ## End(Not run)
Publication Froehle, Andrew W. 2008 "Climate Variables as Predictors of Basal Metabolic Rate: New Equations" American Journal of Human Biology: The Official Journal of the Human Biology Council 20 (5): 510-29. doi: 10.1002/ajhb.20769.
readFroehle()
readFroehle()
MAgPIE object
Benjamin Bodirsky
## Not run: a <- readSource("Froehle") ## End(Not run)
## Not run: a <- readSource("Froehle") ## End(Not run)
Read the Global Fire Emissions Database over the available years and store them in a MAgPIE object with two sub-dimensions: Species (e.g. DM, CO2, CH4, or N2O), and Partition (e.g. SAVA, BORF, TEMF, DEFO, PEAT, AGRI). Emissions are reported in Mt X. For more information, see: https://globalfiredata.org/pages/data/. Due to runtime considerations, this function only calculates a small sample of the total emissions (CH4, N2O, NOx, NH3) and burning partitions (AGRI), which are currently being used for validation.
readGFED()
readGFED()
A MAgPIE object with the GFED emissions data and sub-dimensions Partition and Species.
Michael S. Crawford
## Not run: a <- readSource("GFED") ## End(Not run)
## Not run: a <- readSource("GFED") ## End(Not run)
Reads in GGCMI fraction of Harvested Area masks for rice 1 and rice 2 (other crops available too, see path in download function), or other variables available in the GGCMI crop calendar.
readGGCMICropCalendar(subtype = "fraction_of_harvested_area")
readGGCMICropCalendar(subtype = "fraction_of_harvested_area")
subtype |
variable or vector of variables to read from the crop calendar set. Options: ("planting_day","maturity_day","fraction_of_harvested_area","cal" (which is a combination of planting_day, maturity_day and harvest_day)), wheat areas and rice_areas |
MAgPIE object with the requested data
David M Chen, Edna Molina Bacca
Read in data from GTAP 8.1 baseyears 2007 and 2004. All values in mio. current US$MER.
readGTAPv8v9(subtype)
readGTAPv8v9(subtype)
subtype |
GTAP version and header that should be read. Available versions are "81" and "9" Available headers are listed in the contents_xxx.csv in the GTAPv8v9 source folder for each GTAP file (BaseData.har, BaseRate.har, BaseView.har, CO2.har, gsdvole.har, GTAPSam.har, Sets.har, TStrade.har, and Default.prm - file is determined based on the header via a mapping and does not need to be specified). |
GTAP data as MAgPIE object
Debbora Leip, David M. Chen
## Not run: readSource("GTAPv8v9", subtype = "81:SF01") ## End(Not run)
## Not run: readSource("GTAPv8v9", subtype = "81:SF01") ## End(Not run)
Reads a dataset containing values for biological nitrogen fixation in agricultural systems. Source: Herridge D. F., Peoples M. B., Boddey R. M.: Global inputs of biological nitrogen fixation in agricultural systems
readHerridge(subtype = NULL)
readHerridge(subtype = NULL)
subtype |
a subtype for the calculation |
Availables Subtypes:
ndfa: National values for Plant associated fixation
freeliving: Global values for free living agents
A MAgPIE object containting the share of Nr derived from
ndfa: fixation for each country and each commodity.
freeliving: fixation by free living agents
Stephen Wirth, Jan Philipp Dietrich
## Not run: x <- readSource("Herridge", "ndfa") x <- readSource("Herridge", "freeliving", convert = F) ## End(Not run)
## Not run: x <- readSource("Herridge", "ndfa") x <- readSource("Herridge", "freeliving", convert = F) ## End(Not run)
reads calory requirement for a standardized population from HHS & USDA. 2015. "2015-2020 Dietary Guidelines for Americans." 8. Dietary Guidelines for Americans. https://health.gov/dietaryguidelines/2015/resources/2015-2020_Dietary_Guidelines.pdf. Appendix 2
readHHS_USDA()
readHHS_USDA()
Magpie object with results on global level.
Benjamin Leon Bodirsky
convertLassaletta2014()
,
readSource()
Read-in a file containing the allometric coeffizients of MAgPIE crop types. Values are assembled from various literature sources, and the weighting and allocation is done in the spreadsheet crop_specifications_*.ods for different versions of the file
readHI()
readHI()
magpie object with the dimension crops and coeffizients
Benjamin Leon Bodrisky, Kristine Karstens
## Not run: a <- readSource("HI") ## End(Not run)
## Not run: a <- readSource("HI") ## End(Not run)
Read Houlton 2018 model on weathering of N from rocks
readHoulton2018()
readHoulton2018()
magpie object global resolution by landuse types in Mt of N weathered from rocks each year
David M Chen
## Not run: readSource("Houlton2018", convert = FALSE) ## End(Not run)
## Not run: readSource("Houlton2018", convert = FALSE) ## End(Not run)
Reads data of World Bank ICP round, downloaded from here: https://databank.worldbank.org/source/icp-2017
readICP2017(subtype = "per_cap_expMER")
readICP2017(subtype = "per_cap_expMER")
subtype |
data subtype to be read in. Available subtypes are:
|
magpie object of relative price levels (world = 100) or per capita expenditure (USD17 MER)
David M Chen
## Not run: a <- readSource("ICP2017", "per_cap_exp") ## End(Not run)
## Not run: a <- readSource("ICP2017", "per_cap_exp") ## End(Not run)
Read-in an IEA csv file as magpie object
readIEA(subtype)
readIEA(subtype)
subtype |
data subtype. Either "EnergyBalances", "EnergyBalances-2023", or "Emissions".
|
magpie object of the IEA
Anastasis Giannousakis, Lavinia Baumstark, Renato Rodrigues, Falk Benke
## Not run: a <- readSource(type = "IEA", subtype = "EnergyBalances") ## End(Not run)
## Not run: a <- readSource(type = "IEA", subtype = "EnergyBalances") ## End(Not run)
Read-in data from IEA End Uses and Efficiency Indicators Database
readIEA_EEI()
readIEA_EEI()
Falk Benke
Read-in IFA (International Fertilizer Association) data .xlsx file as magclass object
readIFA(subtype)
readIFA(subtype)
subtype |
Type of IFA data that should be read. Available types are:
|
magpie object of the IFA data
Lavinia Baumstark
## Not run: a <- readSource(type = "IFA", subtype = "consumption") ## End(Not run)
## Not run: a <- readSource(type = "IFA", subtype = "consumption") ## End(Not run)
reads data on historic bioplastic production from csv source: "Biopolymers facts and statistics 2021" page 58, Institute for Bioplastics and Biocomposites (IfBB)
readIfBB()
readIfBB()
data as MAgPIE object
Debbora Leip
## Not run: readSource("HistBioplasticProd") ## End(Not run)
## Not run: readSource("HistBioplasticProd") ## End(Not run)
Read in ImageMacc Costcurves for different subtypes, which are based on a Paper fro Lucas et al 2007 (http://linkinghub.elsevier.com/retrieve/pii/S1462901106001316) Rows are removed, the dataframe is reshaped and numbers are replaced by descriptions.
readImageMacc(subtype)
readImageMacc(subtype)
subtype |
data subtype. Options are: "CH4_Energy_Industry", "CH4_Landuse", "N2O_Energy_Industry", "N2O_Landuse", "HFC_tot", "SF6_tot", "PFC_tot" or "baseline_sources" |
magpie object of the ImageMacc data
Nele Steinmetz
## Not run: a <- readSource("ImageMacc", "CH4_Energy_Industry") a <- readSource("ImageMacc", "CH4_Landuse") a <- readSource("ImageMacc", "N2O_Energy_Industry") a <- readSource("ImageMacc", "N2O_Landuse") a <- readSource("ImageMacc", "HFC_tot") a <- readSource("ImageMacc", "SF6_tot") a <- readSource("ImageMacc", "PFC_tot") a <- readSource("ImageMacc", "baseline_sources") ## End(Not run)
## Not run: a <- readSource("ImageMacc", "CH4_Energy_Industry") a <- readSource("ImageMacc", "CH4_Landuse") a <- readSource("ImageMacc", "N2O_Energy_Industry") a <- readSource("ImageMacc", "N2O_Landuse") a <- readSource("ImageMacc", "HFC_tot") a <- readSource("ImageMacc", "SF6_tot") a <- readSource("ImageMacc", "PFC_tot") a <- readSource("ImageMacc", "baseline_sources") ## End(Not run)
Read-in world prices data csv file as magclass object
readIMPACT3.2.2World_Price()
readIMPACT3.2.2World_Price()
magpie object of the world prices from the IMPACT model for different SSP scenarios
Mishko Stevanovic
## Not run: a <- readSource(type = "IMPACT3.2.2World_Price") ## End(Not run)
## Not run: a <- readSource(type = "IMPACT3.2.2World_Price") ## End(Not run)
Read in IPCC data:
Read in IPCC emissions from livestock and manure management. Source: IPCC Guidelines for National Greenhouse Gas Inventories (2006); Chapter 10: Emissions from Livestock and Manure Management.
Read in IPCC emissions from Lime and urea application. Source: IPCC Guidelines for National Greenhouse Gas Inventories (2006); Chapter 11: N2O Emissions from managed Soils and Co2 Emissions from Lime and Urea Application.
Read in IPCC efficiency factors for burning of residue. Source: IPCC Guidelines for Natinal Greenhouse Gas Inventories (2006); Chapter 02: Generic Methodologies applicable to multiple Land-use Categories.
Read in soil related stock change factors for carbon and manure parameterization. Source: IPCC Guidelines for National Greenhouse Gas Inventories (2006); Chapter 5: Cropland.
readIPCC(subtype)
readIPCC(subtype)
subtype |
data subtype |
magpie object of the IPCC data
Nele Steinmetz, Stephen Wirth, Jan Philipp Dietrich, Kristine Karstens
## Not run: a <- readSource("IPCC", "awmsShr") a <- readSource("IPCC", "awmsEfCh4") a <- readSource("IPCC", "awmsParCh4") a <- readSource("IPCC", "nExcrRate") a <- readSource("IPCC", "awmsconfef3", convert = FALSE) a <- readSource("IPCC", "fracgasms", convert = FALSE) a <- readSource("IPCC", "fraclossms", convert = FALSE) a <- readSource("IPCC", "emissionfactors", convert = FALSE) a <- readSource("IPCC", "rescombusteff", convert = FALSE) a <- readSource("IPCC", "efnsoil", convert = FALSE) ## End(Not run)
## Not run: a <- readSource("IPCC", "awmsShr") a <- readSource("IPCC", "awmsEfCh4") a <- readSource("IPCC", "awmsParCh4") a <- readSource("IPCC", "nExcrRate") a <- readSource("IPCC", "awmsconfef3", convert = FALSE) a <- readSource("IPCC", "fracgasms", convert = FALSE) a <- readSource("IPCC", "fraclossms", convert = FALSE) a <- readSource("IPCC", "emissionfactors", convert = FALSE) a <- readSource("IPCC", "rescombusteff", convert = FALSE) a <- readSource("IPCC", "efnsoil", convert = FALSE) ## End(Not run)
Read IPCC climate classification
readIPCCClimate()
readIPCCClimate()
Magpie object with results on cellular level for 12 IPCC climate zone types
Kristine Karstens
## Not run: readSource("IPCCClimate", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("IPCCClimate", convert = "onlycorrect") ## End(Not run)
Reads in ISIMIP data
readISIMIP(subtype = "airww:LPJmL:gfdl-esm2m:2b")
readISIMIP(subtype = "airww:LPJmL:gfdl-esm2m:2b")
subtype |
Type of ISIMIP data that should be read. It consists of variable ("airrww"), model ("cwatm","h08","lpjml","matsiro","mpi-hm","pcr-globwb"), GCM ("ipsl-cm5a-lr","gfdl-esm2m","miroc5","hadgem2-es") and database version ("2a","2b","3a","3b"), separated by ":" (e.g. "airww:LPJmL:gfdl-esm2m:2b") Similaryly for ISIMIP GGCMI phase3b data, with scenarios and CO2 fert setting, downloads for all crops and irrigation settings models ("LPJmL", "EPIC-IIASA", "pDSSAT", "CYGMA1p74"), gcms ("gfdl-esm4", "ipsl-cm6a-lr", "mpi-esm1-2-hr", "mri-esm2-0", "ukesm1-0-ll"), scenarios ("historical", "ssp126", "ssp370", "ssp585"), co2 ("default", "2015co2"), version c("2a","2b","3a","3b"))) Example of yield subtype : "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b" |
MAgPIE object with the requested data
Values for years before 1961 will be ignored to reduce overall object size
Jan Philipp Dietrich, Felicitas Beier, David Chen
## Not run: readSource("ISIMIP", convert = TRUE) ## End(Not run)
## Not run: readSource("ISIMIP", convert = TRUE) ## End(Not run)
Read the IDEES data base from JRC #nolint
readJRC_IDEES(subtype)
readJRC_IDEES(subtype)
subtype |
one of
|
A magpie
object.
Michaja Pehl, Falk Benke
Read Koeppen climate zones on iso-country and cellular level
readKoeppen(subtype = "iso")
readKoeppen(subtype = "iso")
subtype |
Switch between different levels |
List of magpie objects with results on country or cellular level
Kristine Karstens
## Not run: readSource("Koeppen", subtype = "iso") ## End(Not run)
## Not run: readSource("Koeppen", subtype = "iso") ## End(Not run)
reads nitrogen budgets for a country dataset from Lassaletta, L., G. Billen, B. Grizzetti, J. Angalde, and J. Garnier. 2014. 50 Year Trends in Nitrogen Use Efficiency of World Cropping Systems: The Relationship between Yield and Nitrogen Input to Cropland. Environmental Research Letters.
readLassaletta2014(subtype = "budget")
readLassaletta2014(subtype = "budget")
subtype |
budget provides the nr cropland budgets, fert_to_cropland the sahre of inorganic fertilizers being applied to croplands |
Magpie object with results on country level.
Benjamin Leon Bodirsky, Felicitas Beier
convertLassaletta2014()
,
readSource()
## Not run: readSource("Lassaletta2014", subtype = "budget", convert = FALSE) ## End(Not run)
## Not run: readSource("Lassaletta2014", subtype = "budget", convert = FALSE) ## End(Not run)
Read-in Future trends in first generation bioenergy demand from the publication Lotze Campen et al. 2014. "Impacts of increased bioenergy demand on global food markets: an AgMIP economic model intercomparison" Agricultural Economics 45 (103-116). doi:10.1111/agec.12092. from a .csv file to a magclass object
readLotzeCampenBiofuel()
readLotzeCampenBiofuel()
Future trends in first generation bioenergy demand in ExaJoule as magpie object
Ewerton Araujo
## Not run: a <- readSource("LotzeCampenBiofuel") ## End(Not run)
## Not run: a <- readSource("LotzeCampenBiofuel") ## End(Not run)
It reads and clears the dataset of the global population projections by age, sex and education, available on the Wittgenstein Centre Data Explorer and published by Lutz, Butz and K. C. , 2014. "Population and human capital in the twenty-first century" Oxford University Press. From .csv file to a magclass object
readLutz2014()
readLutz2014()
magpie object with the dataset downloaded. It contains missing values and it is possible to replace them with the function convertLutz2014.
Read-in MAgPIE data
readMAgPIE(subtype)
readMAgPIE(subtype)
subtype |
Either "EmiAirPoll", "macBase" or "co2tax" |
magpie object
Julian Oeser
## Not run: a <- readSource(type = "MAgPIE", subtype = "EmiAPExo") ## End(Not run)
## Not run: a <- readSource(type = "MAgPIE", subtype = "EmiAPExo") ## End(Not run)
Reads in data from the NCD risc consortium body height: Collaboration (NCD-RisC), NCD Risk Factor. 2016. "A Century of Trends in Adult Human Height." ELife 5 (July):e13410. https://doi.org/10.7554/eLife.13410.
readNCDrisc(subtype)
readNCDrisc(subtype)
subtype |
"height" for body height data |
magpie object with the dataset downloaded. It contains missing values and it is possible to replace them with the function convertNCDrisc
Benjamin Leon Bodirsky
Read the grid-level regional nitrogen boundary datasets from Schulte-Uebbing et al. (2022). For the moment, this only uses the critical N surplus in all agricultural land (arable + intensively managed grassland) in view of all thresholds simultaneously, measured in kg N per ha per yr.
readNitrogenBoundariesGridded()
readNitrogenBoundariesGridded()
A MAgPIE object with the critical nitrogen surplus in kg N per ha per yr in 2010
Michael S. Crawford
## Not run: a <- readSource("NitrogenBoundariesGridded") ## End(Not run)
## Not run: a <- readSource("NitrogenBoundariesGridded") ## End(Not run)
Read in PBL MAC curves from Harmsen_et_al_2019 for different subtypes
readPBL_MACC_2019(subtype)
readPBL_MACC_2019(subtype)
subtype |
data subtype. "ch4coal","ch4oil","ch4gas","ch4wstl","ch4wsts","ch4rice","ch4animals","ch4anmlwst", "n2otrans","n2oadac","n2onitac","n2ofert","n2oanwst","n2owaste", "HFC_tot", "SF6_tot", "PFC_tot" or "baseline_sources" |
magpie object of the PBL_MACC_2019 data
Florian Humpenoeder
Read in PBL MAC curves from Harmsen_et_al_2022 for different subtypes and subsets
readPBL_MACC_2022(subtype, subset)
readPBL_MACC_2022(subtype, subset)
subtype |
data subtype. "ch4coal","ch4oil","ch4gas","ch4wstl","ch4wsts","ch4rice","ch4animals","ch4anmlwst", "n2otrans","n2oadac","n2onitac","n2ofert","n2oanwst","n2owaste" |
subset |
data subset. "Default", "Optimistic", "Pessimistic" |
magpie object of the PBL_MACC_2022 data
Michael Windisch, Florian Humpenoeder
Read in PBL MAC curves from Harmsen_et_al_2022 for different subtypes and subsets, using the baseline-dependent IMAGE SSP2 version
readPBL_MACC_SSP2_2022(subtype, subset)
readPBL_MACC_SSP2_2022(subtype, subset)
subtype |
data subtype. "ch4coal","ch4oil","ch4gas","ch4wstl","ch4wsts","ch4rice","ch4animals","ch4anmlwst", "n2otrans","n2oadac","n2onitac","n2ofert","n2oanwst","n2owaste" |
subset |
data subset. "Default", "Optimistic", "Pessimistic" |
magpie object of the PBL_MACC_SSP2_2022 data
Michael Windisch, Florian Humpenoeder, Gabriel Abrahao
Read in an PRIMAP-hist data csv file as magclass object.
readPRIMAPhist(subtype)
readPRIMAPhist(subtype)
subtype |
data subtype. available subtypes are:
|
magpie object of the PRIMAP-hist data.
Roman Popov
## Not run: a <- readPRIMAPhist("PRIMAPhist", "hist") ## End(Not run)
## Not run: a <- readPRIMAPhist("PRIMAPhist", "hist") ## End(Not run)
Read in old ReMIND use of residues for 2nd generation bioenergy and newly estimations
readResFor2ndBE(subtype)
readResFor2ndBE(subtype)
subtype |
oldReMIND, newAgriSupply |
List of magpie objects with results on old ReMIND regions level
Kristine Karstens
## Not run: a <- readSource("ResFor2ndBE", subtype = "oldReMIND") ## End(Not run)
## Not run: a <- readSource("ResFor2ndBE", subtype = "oldReMIND") ## End(Not run)
University, United Nations. 2004. Human Energy Requirements: Report of a Joint FAO/WHO/UNU Expert Consultation: Rome, 17-24 October 2001. Vol. 1. Food & Agriculture Org. http://books.google.com/books?hl=en&lr=&id=8WW7LP5h6usC&oi=fnd&pg=PR3&dq=%22working+groups.+The+work+of+these+groups+preceded+the+expert+consultation+and+served+as%22+%22for+discussions+and+exchange+during+the+meeting.+Thanks+are+also+due+to+Dr+E.%22+&ots=8Fizk–Hr6&sig=ocPdelHKyX2_npUTh41zZRRHf68. #nolint
readSchofield()
readSchofield()
MAgPIE object
Benjamin Bodirsky
## Not run: a <- readSource("Schofield") ## End(Not run)
## Not run: a <- readSource("Schofield") ## End(Not run)
This function reads the raw SoilGrids data (available at https://files.isric.org/soilgrids/data/recent/OCSTHA_M_30cm_250m_ll.tif) or if available the preprocessed raster layers.
readSoilGrids(subtype)
readSoilGrids(subtype)
subtype |
Switch between different input. Use predefined ones or any FileName specified in 'SoilGrids/META_GEOTIFF_1B.csv' |
magpie object in cellular resolution
Kristine Karstens
## Not run: readSource("SoilGrids", subtype = "cstock_0_30") ## End(Not run)
## Not run: readSource("SoilGrids", subtype = "cstock_0_30") ## End(Not run)
Reads in a reporting mif file from the SSP scenario results
readSSPResults()
readSSPResults()
MAgPIE object with regional aggregation of SSP regions, including all indicators
Abhijeet Mishra, Florian Humpenoeder
## Not run: readSource("SSPresults", aggregate = FALSE) ## End(Not run)
## Not run: readSource("SSPresults", aggregate = FALSE) ## End(Not run)
Reads geospatial data from 'the nature conservancy' on ecoregions, major habitat types (MHT, or biome types) and biogeographic realms.
readTNC2019()
readTNC2019()
Returns magpie object with a share of each spatial unit belonging to a biogeographic realm and major habitat type.
Patrick v. Jeetze
## Not run: readSource("TNC2019", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("TNC2019", convert = "onlycorrect") ## End(Not run)
Read in Transport Costs from GTAP
readTransportCostsGTAP()
readTransportCostsGTAP()
Transport Costs in USD
David Chen
## Not run: a <- readSource(type = "TransportCostsGTAP") ## End(Not run)
## Not run: a <- readSource(type = "TransportCostsGTAP") ## End(Not run)
Reads a dataset containing values for sewage
readVanDrecht2009()
readVanDrecht2009()
A MAgPIE object containing sewage quantities and losses
Benjamin Leon Bodirksy
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)
read raw data of world commodity prices from the dataset of World Bank global economic monitor
readWBGEM()
readWBGEM()
magpie object of global price of commodities
Xiaoxi Wang
## Not run: readSource(type = "WBGEM") ## End(Not run)
## Not run: readSource(type = "WBGEM") ## End(Not run)
Read-in WHO (World health organization) data files as magpie object. The files contain information on physical inactivity
readWHO(subtype)
readWHO(subtype)
subtype |
Type of WHO data that should be read. Includes physical_inactivity_adults and physical_inactivity_underaged |
magpie object of the WHO data
Benjamin Bodirsky
## Not run: a <- readSource(type = "WHO", subtype = "physical_activity_adults") ## End(Not run)
## Not run: a <- readSource(type = "WHO", subtype = "physical_activity_adults") ## End(Not run)
Publication: Zhang, Xin, Eric A. Davidson, Denise L. Mauzerall, Timothy D. Searchinger, Patrice Dumas, and Ye Shen. 2015. "Managing Nitrogen for Sustainable Development". Nature 528 (7580): 51–59. https://doi.org/10.1038/nature15743.
readZhang2015()
readZhang2015()
MAgPIE object
Benjamin Leon Bodirsky
## Not run: a <- readSource("Zhang2015", convert = FALSE) ## End(Not run)
## Not run: a <- readSource("Zhang2015", convert = FALSE) ## End(Not run)
tool function to calculate the share of manure managed in different animal waste management systems in confinements.
toolAWMSScenarioCreation(name, startYear, categories, values, out)
toolAWMSScenarioCreation(name, startYear, categories, values, out)
name |
Name of the scenario |
startYear |
Year were prediction starts |
categories |
share of manure managed in different animal waste management systems |
values |
target values |
out |
contains historical data |
List of magpie objects with results on country level, weight on country level, unit and description.
Edna J. Molina Bacca
mapping IEA reported data to ReMIND-MAgPIE items
toolCalcIEAfromStructureMappingPEFE(data, structureMapping, subtype = "remind")
toolCalcIEAfromStructureMappingPEFE(data, structureMapping, subtype = "remind")
data |
data to map |
structureMapping |
mapping to use |
subtype |
remind (default), edge, pfu or magpie |
MAgPIE object with completed time dimensionality.
Anastasis Giannousakis, Lavinia Baumstark, Isabelle Weindl
extra intake kcal/day for pregnant women. The number of pregnant women is computed through the number of 0 year old children each year (Lutz dataset). According to Human energy requirments , Fao (Rome, 2004) , a woman requires an additional food of 845 kcal/day and 675 kcal/day of food on average furing her pregancy and lactation period respectively. According to Naegele?s rule, the mean gestation period is 280 days (40 weeks) and the lactation period 6 month (25 weeks).
toolPregnant(demo, reproductive)
toolPregnant(demo, reproductive)
demo |
demo is the population divided by sex male (M) , female (F) and both (B) and divided by 8 age classes: 0-4, 5-9, 10-14, 15-19, AG1 (20-29), AG2 (30-59), AG3(60-79), AG4(80+) |
reproductive |
reproductive age classes (on which the energy requiremetns for newborns are distributed) |