Title: | MadRaT land data package |
---|---|
Description: | The package provides land related data via the madrat framework. |
Authors: | Jan Philipp Dietrich [aut, cre], Abhijeet Mishra [aut], Isabelle Weindl [aut], Benjamin Leon Bodirsky [aut], Xiaoxi Wang [aut], Lavinia Baumstark [aut], Ulrich Kreidenweis [aut], David Klein [aut], Nele Steinmetz [aut], David Chen [aut], Florian Humpenoeder [aut], Patrick von Jeetze [aut], Stephen Wirth [aut], Felicitas Beier [aut], David Hoetten [aut], Pascal Sauer [aut], Jake Tommey [aut] |
Maintainer: | Jan Philipp Dietrich <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 0.64.3 |
Built: | 2024-11-01 15:16:08 UTC |
Source: | https://github.com/pik-piam/mrland |
The package provides land related data via the madrat framework.
Maintainer: Jan Philipp Dietrich <[email protected]>
Useful links:
Report bugs at https://github.com/pik-piam/mrland/issues
calculates 2nd generation bioenergy demand
calc2ndBioDem(datasource, rev = numeric_version("0.1"))
calc2ndBioDem(datasource, rev = numeric_version("0.1"))
datasource |
source to be used |
rev |
data revision the output will be produced for (numeric_version) |
magpie object with results on country level, weight on country level, unit and description.
## Not run: calcOutput("2ndBioDem") ## End(Not run)
## Not run: calcOutput("2ndBioDem") ## End(Not run)
This function aggregates the data from source SathayeForest. A weight is implemented as the mean for each MAgPIE region is calculated.
calcAfforestCosts()
calcAfforestCosts()
MAgPIE object of the calculated means of each MAgPIE region
Nele Steinmetz
calcOutput
, readSathayeForest
,
convertSathayeForest
## Not run: a <- calcOutput("AfforestCosts") ## End(Not run)
## Not run: a <- calcOutput("AfforestCosts") ## End(Not run)
Conputes Atmospheric (nitrogen) deposition rates per area on different land-use types.
calcAtmosphericDepositionRates(cellular = FALSE, cells = "lpjcell")
calcAtmosphericDepositionRates(cellular = FALSE, cells = "lpjcell")
cellular |
TRUE for results on 0.5 degree grid. |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcAtmosphericDeposition
,
calcNitrogenBudgetCropland
## Not run: calcOutput("AtmosphericDepositionRates") ## End(Not run)
## Not run: calcOutput("AtmosphericDepositionRates") ## End(Not run)
Calculates the total available cropland per grid cell, based on physical cropland suitability data or other criteria, such as constraints on cropland expansion
calcAvlCropland( marginal_land = "magpie", cell_upper_bound = 0.9, country_level = FALSE, cells = "lpjcell", luhBaseYear = "y1995" )
calcAvlCropland( marginal_land = "magpie", cell_upper_bound = 0.9, country_level = FALSE, cells = "lpjcell", luhBaseYear = "y1995" )
marginal_land |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
cell_upper_bound |
Upper bound for cropland at the grid cell level. Even if, for instance, the total available cropland area equals the land area in a grid cell, cropland cannot be expanded above this value. |
country_level |
Whether output shall be at country level. Requires aggregate=FALSE in calcOutput. |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
luhBaseYear |
Base year of LUH land area |
magpie object in cellular resolution
Patrick v. Jeetze, Felicitas Beier
## Not run: calcOutput("AvlCropland", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("AvlCropland", aggregate = FALSE) ## End(Not run)
Function calculates land area in conservation priority areas
calcBHIFL(cells = "lpjcell", nclasses = "seven")
calcBHIFL(cells = "lpjcell", nclasses = "seven")
cells |
number of cells of landmask (select "magpiecell" for 59199 cells or "lpjcell" for 67420 cells) |
nclasses |
Options are either "seven" or "nine".
|
magpie object in cellular resolution with different protection options in conservation priority areas
Patrick v. Jeetze
## Not run: calcOutput("BHIFL", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("BHIFL", aggregate = FALSE) ## End(Not run)
estimates average BMI of a BMI group for a population group
calcBMI()
calcBMI()
List with a magpie object
Benjamin Leon Bodirsky
## Not run: calcOutput("BMI",aggregate=FALSE) ## End(Not run)
## Not run: calcOutput("BMI",aggregate=FALSE) ## End(Not run)
estimates population based on BMI share
calcBMIshr(convert = TRUE)
calcBMIshr(convert = TRUE)
convert |
Use raw data or interpolated data. Raw data should only be used for regressions. |
List with a magpie object
Benjamin Leon Bodirsky
## Not run: calcOutput("BMIshr") ## End(Not run)
## Not run: calcOutput("BMIshr") ## End(Not run)
Function calculates land area in conservation priority areas
calcBrooks2005OldConservationPrios(cells = "lpjcell", nclasses = "seven")
calcBrooks2005OldConservationPrios(cells = "lpjcell", nclasses = "seven")
cells |
number of cells of landmask (select "magpiecell" for 59199 cells or "lpjcell" for 67420 cells) |
nclasses |
Options are either "seven" or "nine".
|
magpie object in cellular resolution with different protection options in conservation priority areas
Patrick v. Jeetze
## Not run: calcOutput("ConservationPriority", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ConservationPriority", aggregate = FALSE) ## End(Not run)
calculates IPCC Climate Regions (IPCC2006 ch.4.3) based on t, ppt, pet from LPJml. elevation dimension not included for tropical montane class
calcClimateRegionsIPCC( landusetypes = "all", cellular = FALSE, yearly = FALSE, convert = TRUE )
calcClimateRegionsIPCC( landusetypes = "all", cellular = FALSE, yearly = FALSE, convert = TRUE )
landusetypes |
all or only one |
cellular |
FALSE for country level, TRUE for cells |
yearly |
FALSE for normal magpie 5 year time spans, TRUE for yearly |
convert |
fills missing countries for country level aggregation with warm temperate moist (mostly small island nations) |
Country or cellular magpie object with fraction of each climate region by country or cell
David Chen
## Not run: calcOutput("ClimateRegionsIPCC") ## End(Not run)
## Not run: calcOutput("ClimateRegionsIPCC") ## End(Not run)
Function calculates land area in conservation priority areas that was unprotected in 2020 (WDPA).
calcConservationPriorities( consvBaseYear = "y1750", cells = "lpjcell", nclasses = "seven" )
calcConservationPriorities( consvBaseYear = "y1750", cells = "lpjcell", nclasses = "seven" )
consvBaseYear |
Reference year for land conservation. Chosing "y1750", for instance, means that the reference land use is based on the year 1750 ('pre-industrial') so land use can be restored to the pre-industrial state in conservation priority areas. Any year available in the LUH2v2 data set can be chosen. Historic land use in the LUH2v2 data is based on the HYDE data base. The choice "y2020" provides a special case, in which reference land use is based on the 2020 ESA CCI LULC map, derived at a spatial resolution of 300 x 300 Meter. |
cells |
number of cells of landmask (select "magpiecell" for 59199 cells or "lpjcell" for 67420 cells) |
nclasses |
Options are either "seven" or "nine".
|
magpie object in cellular resolution with different protection options in conservation priority areas
Patrick v. Jeetze
## Not run: calcOutput("ConservationPriority2", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ConservationPriority2", aggregate = FALSE) ## End(Not run)
Returns unprotected land area (Mha) within Critical Connectivit Areas as given in Brennan et al. (2022).
calcCriticalConnectivityAreas( maginput = TRUE, nclasses = "seven", cells = "lpjcell", mask = "KBA_GSN" )
calcCriticalConnectivityAreas( maginput = TRUE, nclasses = "seven", cells = "lpjcell", mask = "KBA_GSN" )
maginput |
Whether data should be transformed (based on LUH2v2 data) to match land use types used in MAgPIE. |
nclasses |
If
|
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
mask |
Whether Key Biodiversity Areas ("KBA") or Global Safety Net and Key Biodiversity Areas ("KBA_GSN") are masked. This switch is useful for complementary scenario building. |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("calcCriticalConnectivityAreas", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("calcCriticalConnectivityAreas", aggregate = FALSE) ## End(Not run)
Returns area on cropland covered by trees (Mha).
calcCroplandTreecover( maginput = TRUE, cells = "magpiecell", countryLevel = FALSE )
calcCroplandTreecover( maginput = TRUE, cells = "magpiecell", countryLevel = FALSE )
maginput |
Whether data should be corrected to align with cropland initialised in MAgPIE. |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
countryLevel |
Whether output shall be at country level. Requires aggregate=FALSE in calcOutput. |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("CroplandTreecover", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("CroplandTreecover", aggregate = FALSE) ## End(Not run)
Calculates the share of fruits and vegetables in the calorie supply from the others MAgPIE commodity for the past. Information on the calorie supply from fruits and vegetables is relevant in the context of dietary recommendations, e.g. as proposed by the EAT-Lancet Commission on healthy diets from sustainable food systems.
calcEATFruitvegRatio(populationweight = "PopulationPast")
calcEATFruitvegRatio(populationweight = "PopulationPast")
populationweight |
datasource of populationweight: FAO can be selected in order to better meet exact values. Normal datasource is PopulationPast |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl, Felicitas Beier
calcOutput
, calcEATLancetTargets
, calcFAOharmonized
,
calcEATLancetDiets
## Not run: calcOutput("EATFruitvegRatio") ## End(Not run)
## Not run: calcOutput("EATFruitvegRatio") ## End(Not run)
Calculates daily per capita intake for MAgPIE food commodities that are consistent with diet scenarios developed by the EAT-Lancet Commission on healthy diets from sustainable food systems. The unit is kcal/day per capita or wm/day per capita. Mapping of intake from EAT Lancet to MAgPIE food commodities is done indivudually for the different available units.
calcEATLancetDiets( attributes = c("wm", "kcal"), calib = TRUE, FAOcountr = FALSE )
calcEATLancetDiets( attributes = c("wm", "kcal"), calib = TRUE, FAOcountr = FALSE )
attributes |
attributes of different food commodities (available: kcal and wm). |
calib |
if TRUE, total daily per capita intake for MAgPIE food commodities is calibrated to EAT Lancet total intake. |
FAOcountr |
if TRUE, estimates for countries not covered in FAOSTAT are set to Zero. |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readEATLancet
,
convertEATLancet
## Not run: calcOutput("EATLancetDiets") ## End(Not run)
## Not run: calcOutput("EATLancetDiets") ## End(Not run)
Calculates minimum and maximum targets for healthy food intake according to reference recommendations proposed by the EAT-Lancet Commission on healthy diets from sustainable food systems, specified for different MAgPIE commodities.
calcEATLancetTargets(attributes = "kcal/d")
calcEATLancetTargets(attributes = "kcal/d")
attributes |
Attributes of food commodities (available: kcal/d and g/d) |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readEATLancet
,
calcEATLancetDiets
## Not run: calcOutput("EATLancetTargets") ## End(Not run)
## Not run: calcOutput("EATLancetTargets") ## End(Not run)
Calculates the ratio between food supply at household level and food intake for different MAgPIE commodities accounting for food-specific estimates of baseline intake of quantification of EAT Lancet diets by the EAT-Lancet comission, as well as for FAO food waste shares.
calcEATLancetWaste(out_type = "ratio")
calcEATLancetWaste(out_type = "ratio")
out_type |
ratio: total food supply to total intake. ratio_detailed_calib: calibrated food-specific estimates. ratio_detailed: food-specific estimates based on FAO food waste shares calib: factor for calibrating estimates based on FAO waste shares to food supply |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readEATLancet
,
calcEATLancetDiets
, convertEATLancet
## Not run: calcOutput("EATLancetWaste") ## End(Not run)
## Not run: calcOutput("EATLancetWaste") ## End(Not run)
emission factors for methane from animal waste management, depending on manure managed in confinements. The emission factors were calculated based on FAOSTAT estimates due to lack of all necessary parameters in the IPCC Guidelines
calcEFch4AWMS()
calcEFch4AWMS()
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EFch4AWMS") ## End(Not run)
## Not run: calcOutput("EFch4AWMS") ## End(Not run)
emission factors for methane from flooded rice fields, depending on phyiscal area or area harvested. The emission factors were calculated based on FAOSTAT estimates due to lack of all necessary parameters in the IPCC Guidelines
calcEFch4Rice(physical = TRUE)
calcEFch4Rice(physical = TRUE)
physical |
if true physical area, if false area harvested |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("EFch4Rice") ## End(Not run)
## Not run: calcOutput("EFch4Rice") ## End(Not run)
Emission factors from cropland soils.
calcEfNSoil(method = "IPCC_reg")
calcEfNSoil(method = "IPCC_reg")
method |
If IPCC, using the ipcc emission factors as share of applied N inputs. If Nloss, as share of cropland budget surplus. |
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 the demand of timber from historical FAO data (including intermediate products).
calcEndUseTimber()
calcEndUseTimber()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("EndUseTimber") ## End(Not run)
## Not run: calcOutput("EndUseTimber") ## End(Not run)
Dummy file for regional exogenous tau path
calcExoTcDummy()
calcExoTcDummy()
Dummy file for regional exogenous tau path
Florian Humpenoeder
Calculates the ratio between food supply at household level and food intake for different MAgPIE commodities based on estimated/assumed FAO waste shares for each commodity group (optionally also including food conversion factors into edible matter).
calcFAOLossesWaste(out_type = "waste")
calcFAOLossesWaste(out_type = "waste")
out_type |
waste: food-specific ratios based on FAO food waste shares waste_edible: food-specific ratios based on FAO food waste shares including conversion into edible matter |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readFAOLossesWaste
,
calcEATLancetWaste
## Not run: calcOutput("FAOLossesWaste") ## End(Not run)
## Not run: calcOutput("FAOLossesWaste") ## End(Not run)
Calculates the management factor(s) needed to upscale the yield of forest plantations as compared to natural vegetation based on FAO data.
calcForestAreaInitialization()
calcForestAreaInitialization()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("ForestAreaInitialization") ## End(Not run)
## Not run: calcOutput("ForestAreaInitialization") ## End(Not run)
Calculates which share of forest land is lost due to forest disturbances (including insects, diseases, severe weather events and other causes)
calcForestDisturbances()
calcForestDisturbances()
MAgPIE object with FRA 2020 forest disturbance shares
Abhijeet Mishra
## Not run: calcOutput("ForestDisturbances",aggregate=FALSE) ## End(Not run)
## Not run: calcOutput("ForestDisturbances",aggregate=FALSE) ## End(Not run)
Calculate how much loss of forest area happens due to fire disturbances based on FRA 2020 data
calcForestFireLoss()
calcForestFireLoss()
MAgPIE object with FRA 2020 forest fire area loss
Abhijeet Mishra
## Not run: calcOutput("ForestFireLoss",aggregate=FALSE) ## End(Not run)
## Not run: calcOutput("ForestFireLoss",aggregate=FALSE) ## End(Not run)
Calculates the management factor(s) needed to upscale the yield of forest plantations as compared to natural vegetation based on FAO data.
calcForestProductionInitialization()
calcForestProductionInitialization()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("ForestProductionInitialization") ## End(Not run)
## Not run: calcOutput("ForestProductionInitialization") ## End(Not run)
Calculates the management factor(s) needed to upscale the yield of forest plantations as compared to natural vegetation based on FAO data.
calcForestryProductionRatio()
calcForestryProductionRatio()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("ForestryProductionRatio") ## End(Not run)
## Not run: calcOutput("ForestryProductionRatio") ## End(Not run)
calculates a iso-level deflator, this is needed to run food demand and livestock regressions consistently
calcGDPdeflator(yearFrom = 2017, yearTo = 2005, currency = "PPP")
calcGDPdeflator(yearFrom = 2017, yearTo = 2005, currency = "PPP")
yearFrom |
year in "y2005" format |
yearTo |
year in "y2005" format |
currency |
"PPP" or "MER" |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen
reads in GHG prices from past runs
calcGHGPrices( emissions = "pollutants", datasource = "REMMAG", rev = numeric_version("0.1") )
calcGHGPrices( emissions = "pollutants", datasource = "REMMAG", rev = numeric_version("0.1") )
emissions |
which type of emissions shall be returned. ghg just returns n2o, ch4 and co2, pollutants a longer list including also air pollutants |
datasource |
REMIND for prices from R2M4 coupled runs, REMMAG for old coupled runs, SSPResults for prices from the SSP scenarios from the IIASA database, SSP_and_REM for a combination of REMIND and SSPResults |
rev |
data revision the output will be produced for (numeric_version). |
list of magpie object with results on country level, weight on country level, unit and description.
David Chen, Benjamin Leon Bodirsky, David Klein
## Not run: calcOutput("GHGPrices") ## End(Not run)
## Not run: calcOutput("GHGPrices") ## End(Not run)
Returns unprotected land area (Mha) within the Global Safety Net (Dinerstein et al. 2020).
calcGlobalSafetyNet(maginput = TRUE, nclasses = "seven", cells = "lpjcell")
calcGlobalSafetyNet(maginput = TRUE, nclasses = "seven", cells = "lpjcell")
maginput |
Whether data should be transformed (based on LUH2v2 data) to match land use types used in MAgPIE. |
nclasses |
If
|
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("calcGlobalSafetyNet", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("calcGlobalSafetyNet", aggregate = FALSE) ## End(Not run)
calculate trade data from GTAP dataset
calcGTAPTrade(subtype = NULL, bilateral = FALSE)
calcGTAPTrade(subtype = NULL, bilateral = FALSE)
subtype |
GTAP version and subtype, separated by "_" available versions are "GTAP7", "GTAP8", and "GTAP9" GTAP sheets relevant for trade are "VIWS": Trade - Bilateral Imports at World Prices "VIMS": Trade - Bilateral Imports at Market Prices "VXWD": Trade - Bilateral Exports at World Prices "VXMD": Trade - Bilateral Exports at Market Prices "VDFM": Intermediates - Firms' Domestic Purchases at Market Prices "VIFM": Intermediates - Firms' Imports at Market Prices "VFM": Endowments - Firms' Purchases at Market Prices "VOA": Payment received by producers (fram gtate value) "VOM": Value of output at dometic market prices |
bilateral |
whether bilateral trade data should be calculated |
Trade related data as an MAgPIE object
Xiaoxi Wang, David M Chen
## Not run: x <- calcGTAP("GTAP7_VXMD") ## End(Not run)
## Not run: x <- calcGTAP("GTAP7_VXMD") ## End(Not run)
Calc evapotranspiration data for SSP cenarios in mm/month
calcH08evapotranspiration(subtype = "H08:mri-esm2-0")
calcH08evapotranspiration(subtype = "H08:mri-esm2-0")
subtype |
Switch between different inputs |
magpie object in cellular resolution
Marcos Alves
## Not run: calcOutput("H08evapotranspiration", subtype = "H08:mri-esm2-0") ## End(Not run)
## Not run: calcOutput("H08evapotranspiration", subtype = "H08:mri-esm2-0") ## End(Not run)
Function calculates land area in 'Half Earth' conservation priority area
calcHalfEarth(cells = "lpjcell", nclasses = "seven")
calcHalfEarth(cells = "lpjcell", nclasses = "seven")
cells |
number of cells of landmask (select "magpiecell" for 59199 cells or "lpjcell" for 67420 cells) |
nclasses |
Options are either "seven" or "nine".
|
magpie object in cellular resolution with different protection options in conservation priority areas
Patrick v. Jeetze, Felicitas Beier
## Not run: calcOutput("HalfEarth", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("HalfEarth", aggregate = FALSE) ## End(Not run)
Passes on the irrigated to rainfed yield ratio from AQUASTAT
calcIr2RfYieldRatio()
calcIr2RfYieldRatio()
MAgPIE object of yields
Kristine Karstens
[readAQUASTAT()], [convertAQUASTAT()]
## Not run: calcOutput("Ir2RfYieldRatio") ## End(Not run)
## Not run: calcOutput("Ir2RfYieldRatio") ## End(Not run)
Returns unprotected land area (Mha) that covers 50 99
calcIrrecoverableCarbonLand( maginput = TRUE, nclasses = "seven", cells = "lpjcell" )
calcIrrecoverableCarbonLand( maginput = TRUE, nclasses = "seven", cells = "lpjcell" )
maginput |
Whether data should be transformed (based on LUH2v2 data) to match land use types used in MAgPIE. |
nclasses |
If
|
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("calcIrrecoverableCarbonLand", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("calcIrrecoverableCarbonLand", aggregate = FALSE) ## End(Not run)
This function calculates irrigation investment costs for each country until the year 2050. Values linearly converge towards the value of Germany (1995) by 2050.
calcIrrigationInvCosts()
calcIrrigationInvCosts()
MAgPIE object
Nele Steinmetz, Felicitas Beier
calcOutput
, readWBirrigation
,
convertWBirrigation
## Not run: calcOutput("IrrigationInvCosts") ## End(Not run)
## Not run: calcOutput("IrrigationInvCosts") ## End(Not run)
reads and cleans up ISIMIP3b crop yield data
calcISIMIP3bYields( subtype = "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b", smooth = TRUE, cells = "lpjcell" )
calcISIMIP3bYields( subtype = "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b", smooth = TRUE, cells = "lpjcell" )
subtype |
subtype of yield based on readISIMIPoutputs, for crop yields |
smooth |
smooth cells via spline |
cells |
magpie or lpjcell |
magpie object in cellular resolution
David Meng-Chuen Chen, Edna Molina Bacca
## Not run: calcOutput("ISIMIP3bYields", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ISIMIP3bYields", aggregate = FALSE) ## End(Not run)
Returns unprotected land area (Mha) within Key Biodiversity Areas.
calcKeyBiodiversityAreas( maginput = TRUE, unprotected = TRUE, nclasses = "seven", cells = "lpjcell" )
calcKeyBiodiversityAreas( maginput = TRUE, unprotected = TRUE, nclasses = "seven", cells = "lpjcell" )
maginput |
Whether data should be transformed (based on LUH2v2 data) to match land use types used in MAgPIE. |
unprotected |
if TRUE only KBA land that is currently unprotected is returned |
nclasses |
If
|
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("calcKeyBiodiversityAreas", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("calcKeyBiodiversityAreas", aggregate = FALSE) ## End(Not run)
Returns grid cells and crops where multiple cropping takes place given the chosen scenario
calcMulticroppingCells( selectyears, lpjml, climatetype, scenario, sectoral = "kcr" )
calcMulticroppingCells( selectyears, lpjml, climatetype, scenario, sectoral = "kcr" )
selectyears |
Years to be returned |
lpjml |
LPJmL version required for respective inputs: natveg or crop |
climatetype |
Switch between different climate scenarios or historical baseline "GSWP3-W5E5:historical" |
scenario |
"actual:total": currently multicropped areas calculated from total harvested areas and total physical areas per cell from readLandInG "actual:crop" (crop-specific), "actual:irrigation" (irrigation-specific), "actual:irrig_crop" (crop- and irrigation-specific) "total" "potential:endogenous": potentially multicropped areas given temperature and productivity limits "potential:exogenous": potentially multicropped areas given GAEZ suitability classification |
sectoral |
"kcr" MAgPIE crops, and "lpj" LPJmL crops |
magpie object in cellular resolution
Felicitas Beier
## Not run: calcOutput("MulticroppingCells", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("MulticroppingCells", aggregate = FALSE) ## End(Not run)
Returns cropping intensity according to LandInG data given the chosen scenario
calcMulticroppingIntensity(scenario, selectyears, sectoral = "lpj")
calcMulticroppingIntensity(scenario, selectyears, sectoral = "lpj")
scenario |
"total": currently multicropped areas calculated from total harvested areas and total physical areas per cell from readLandInG "crop" (crop-specific), "irrigation" (irrigation-specific), "irrig_crop" (crop- and irrigation-specific) |
selectyears |
Years to be returned |
sectoral |
"kcr" MAgPIE crop types, and "lpj" LPJmL crop types |
magpie object in cellular resolution
Felicitas Beier
## Not run: calcOutput("MulticroppingIntensity", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("MulticroppingIntensity", aggregate = FALSE) ## End(Not run)
Calculates yield increase achieved through multiple cropping (as factor of off season to main season crop yield) under irrigated and rainfed conditions respectively. Optionally: return which grid cells are potentially suitable for multiple cropping activities under rainfed and irrigated conditions. Calculation is based on grassland gross primary production (GPP) in the growing period of the respective crop and annual grass GPP.
calcMulticroppingYieldIncrease( selectyears, lpjml, climatetype, fallowFactor = 0.75 )
calcMulticroppingYieldIncrease( selectyears, lpjml, climatetype, fallowFactor = 0.75 )
selectyears |
Years to be returned |
lpjml |
LPJmL version required for respective inputs as single string: "crop" version |
climatetype |
Switch between different climate scenarios or historical baseline "GSWP3-W5E5:historical" |
fallowFactor |
Factor determining yield reduction in off season due to fallow period between harvest of first (main) season and sowing of second (off) season |
magpie object in cellular resolution
Felicitas Beier
## Not run: calcOutput("MulticroppingYieldIncrease", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("MulticroppingYieldIncrease", aggregate = FALSE) ## End(Not run)
Calculates daily per capita intake for MAgPIE food commodities that are consistent with diet scenarios developed by the NIN-Lancet Commission on healthy diets from sustainable food systems. The unit is kcal/day per capita or wm/day per capita. Mapping of intake from NIN Lancet to MAgPIE food commodities is done indivudually for the different available units.
calcNINDiets(attributes = c("wm", "kcal"), calib = TRUE, FAOcountr = FALSE)
calcNINDiets(attributes = c("wm", "kcal"), calib = TRUE, FAOcountr = FALSE)
attributes |
attributes of different food commodities (available: kcal and wm). |
calib |
if TRUE, total daily per capita intake for MAgPIE food commodities is calibrated to NIN Lancet total intake. |
FAOcountr |
if TRUE, estimates for countries not covered in FAOSTAT are set to Zero. |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readNIN
,
convertNIN
## Not run: calcOutput("NINDiets") ## End(Not run)
## Not run: calcOutput("NINDiets") ## End(Not run)
Calculates the share of fruits and vegetables in the calorie supply from the others MAgPIE commodity for the past. Information on the calorie supply from fruits and vegetables is relevant in the context of dietary recommendations, e.g. as proposed by the NIN.
calcNINFruitvegRatio(populationweight = "PopulationPast")
calcNINFruitvegRatio(populationweight = "PopulationPast")
populationweight |
datasource of populationweight: FAO can be selected in order to better meet exact values. Normal datasource is PopulationPast |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, calcNINTargets
, calcFAOharmonized
,
calcNINDiets
## Not run: calcOutput("NINFruitvegRatio") ## End(Not run)
## Not run: calcOutput("NINFruitvegRatio") ## End(Not run)
Calculates minimum and maximum targets for healthy food intake according to reference recommendations proposed by the NIN on healthy diets from sustainable food systems, specified for different MAgPIE commodities.
calcNINTargets(attributes = "kcal/d")
calcNINTargets(attributes = "kcal/d")
attributes |
Attributes of food commodities (available: kcal/d and g/d) |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readNIN
,
calcNINDiets
## Not run: calcOutput("NINTargets") ## End(Not run)
## Not run: calcOutput("NINTargets") ## End(Not run)
Calculates the ratio between food supply at household level and food intake for different MAgPIE commodities accounting for food-specific estimates of baseline intake of quantification of NIN diets by the NIN comission, as well as for FAO food waste shares.
calcNINWaste(out_type = "ratio")
calcNINWaste(out_type = "ratio")
out_type |
ratio: total food supply to total intake. ratio_detailed_calib: calibrated food-specific estimates. ratio_detailed: food-specific estimates based on FAO food waste shares calib: factor for calibrating estimates based on FAO waste shares to food supply |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcOutput
, readNIN
,
calcNINDiets
, convertNIN
## Not run: calcOutput("NINWaste") ## End(Not run)
## Not run: calcOutput("NINWaste") ## End(Not run)
calculates fixation rates from freeliving bacteria per area
calcNitrogenFixationFreeliving()
calcNitrogenFixationFreeliving()
List of magpie objects with results on global level, empty weight, unit and description.
Benjamin Leon Bodirsky
calcNitrogenFixationPast
readHerridge
## Not run: calcOutput("NitrogenFixationFreeliving") ## End(Not run)
## Not run: calcOutput("NitrogenFixationFreeliving") ## End(Not run)
calculates the share of N in biomass derived from biological fixation
calcNitrogenFixationNdfa()
calcNitrogenFixationNdfa()
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("calcNitrogenFixationNdfa") ## End(Not run)
## Not run: calcOutput("calcNitrogenFixationNdfa") ## End(Not run)
Calculates nutrition attributes of food products, i.e. calorie and protein supply of a product dedicated to food use.
calcNutritionAttributes()
calcNutritionAttributes()
magpie object
Benjamin Bodirsky
## Not run: calcOutput("NutritionAttributes", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("NutritionAttributes", aggregate = FALSE) ## End(Not run)
calculate Ozone yield shocks Data from the EAT-Lancet deepdive on Ozone shock effects on crop yields.
calcOzoneYieldShock(weighting = "totalCrop", marginal_land = "magpie")
calcOzoneYieldShock(weighting = "totalCrop", marginal_land = "magpie")
weighting |
use of different weights (totalCrop (default), totalLUspecific, cropSpecific, crop+irrigSpecific, avlCropland, avlCropland+avlPasture) |
marginal_land |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
magpie object in cellular resolution
Jake Tommey
## Not run: calcOutput("OzoneYieldShock") ## End(Not run)
## Not run: calcOutput("OzoneYieldShock") ## End(Not run)
Provides pasture yields defined as ratio of grazed biomass to grazed area
calcPastureYield(range_pastr = FALSE)
calcPastureYield(range_pastr = FALSE)
range_pastr |
Boolean value indicating if the grass yields should be split between rangelands and pastures. |
Pasture yields and corresponding weights as a list of two MAgPIE objects
Isabelle Weindl, Marcos Alves
calcOutput
, calcFAOmassbalance
,
readSource
## Not run: calcOutput("PastureYield") ## End(Not run)
## Not run: calcOutput("PastureYield") ## End(Not run)
This function calculates crop-specific temperature limits for the multicropping mask based on the photosynthesis optimum and the LPJmL parameters temp_co2 and temp_photos
calcPhotosynthesisTemperature(threshold = 0.8)
calcPhotosynthesisTemperature(threshold = 0.8)
threshold |
Photosynthesis efficiency threshold (between 0 and 1) |
magpie object
Felicitas Beier, Jens Heinke
## Not run: calcOutput("PhotosynthesisTemperature", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("PhotosynthesisTemperature", aggregate = FALSE) ## End(Not run)
Calculates the interpolated contribution share of plantations to roundwood demand
calcPlantationContribution()
calcPlantationContribution()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("PlantationContribution") ## End(Not run)
## Not run: calcOutput("PlantationContribution") ## End(Not run)
Calculates the share of plantations in planted forest
calcPlantedForest()
calcPlantedForest()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("PlantedForest") ## End(Not run)
## Not run: calcOutput("PlantedForest") ## End(Not run)
Function extracts conservation protected area
calcProtectArea(cells = "lpjcell", bhifl = TRUE)
calcProtectArea(cells = "lpjcell", bhifl = TRUE)
cells |
number of cells of landmask (select "magpiecell" for 59199 cells or "lpjcell" for 67420 cells) |
bhifl |
should be TRUE (including BH_IFL scenario) for cellular preprocessing revisions > 4.65 |
magpie object in cellular resolution with different protection scenarios
Felicitas Beier, David Chen
## Not run: calcOutput("ProtectArea", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ProtectArea", aggregate = FALSE) ## End(Not run)
Returns protected land area (Mha) in terms of cropland, pasture, forest and other land between 1995 and 2020.
calcProtectedAreaBaseline( magpie_input = TRUE, nclasses = "seven", cells = "lpjcell" )
calcProtectedAreaBaseline( magpie_input = TRUE, nclasses = "seven", cells = "lpjcell" )
magpie_input |
Whether data should be transformed (based on LUH2v2 data) to match land use types used in MAgPIE. |
nclasses |
If
|
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("ProtectedAreaBaseline", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ProtectedAreaBaseline", aggregate = FALSE) ## End(Not run)
provides costs of pumping irrigation water
calcPumpingCosts()
calcPumpingCosts()
A magpie object at iso level for all years with information on pumping costs
Vartika Singh
#' @seealso readSource
, calcOutput
## Not run: calcOutput("PumpingCosts") ## End(Not run)
## Not run: calcOutput("PumpingCosts") ## End(Not run)
provides slope for calculating pasture intensification
calcPYieldSlope()
calcPYieldSlope()
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
## Not run: calcOutput("PYieldSlope") ## End(Not run)
## Not run: calcOutput("PYieldSlope") ## End(Not run)
Returns cropland area (Mha) that requires relocation in response of maintaining 20
calcSNVTargetCropland(maginput = TRUE, cells = "magpiecell")
calcSNVTargetCropland(maginput = TRUE, cells = "magpiecell")
maginput |
Whether data should be corrected to align with cropland initialised in MAgPIE. |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
List with a magpie object
Patrick v. Jeetze
## Not run: calcOutput("SNVTargetCropland", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("SNVTargetCropland", aggregate = FALSE) ## End(Not run)
calculates and merges information on stock change factors
calcSoilStockChangeFactors()
calcSoilStockChangeFactors()
MAgPIE object of yields
Kristine Karstens
[readIPCC()]
## Not run: calcOutput("SoilStockChangeFactors") ## End(Not run)
## Not run: calcOutput("SoilStockChangeFactors") ## End(Not run)
Uses an exogenous trajectory of Soil organic matter loss nitrogen release
calcSOMexogenous()
calcSOMexogenous()
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("SOMexogenous") ## End(Not run)
## Not run: calcOutput("SOMexogenous") ## End(Not run)
Calculates historical trends in agricultural land use intensity Tau based on FAO yield trends.
calcTauHistorical()
calcTauHistorical()
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
## Not run: calcOutput("TauHistorical") ## End(Not run)
## Not run: calcOutput("TauHistorical") ## End(Not run)
Calculates the demand of timber from FAO data (including intermediate products).
calcTimberDemandExt()
calcTimberDemandExt()
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("TimberDemandExt") ## End(Not run)
## Not run: calcOutput("TimberDemandExt") ## End(Not run)
Calculate the difference between production and domestic_supply. Numbers till 2010 are derived from FAO. Numbers after 2010 are hold constant
calcTradeBalance()
calcTradeBalance()
regional trade balances
Jan Philipp Dietrich
calcOutput
, calcFAOmassbalance
## Not run: a <- calcTradeBalance() ## End(Not run)
## Not run: a <- calcTradeBalance() ## End(Not run)
Calculate the difference between the global production and the global domestic_supply. The difference is the result of imports not equaling exports, and because storage is not considered. The calculated DomesticBalanceflow assures that production matches domestic_supply. The goods come from nowhere and go to nowhere. The numbers are usually decreased linearly and become zero in 2050.
calcTradeBalanceflow()
calcTradeBalanceflow()
global Domestic Balanceflows as MAgPIE object
Ulrich Kreidenweis, Xiaoxi Wang
calcOutput
, calcFAOmassbalance
## Not run: a <- calcTradeBalanceflow() ## End(Not run)
## Not run: a <- calcTradeBalanceflow() ## End(Not run)
Provides export shares of countries compared to total export. This is based on export values from FAOSTAT. Function calculates this based on average values of the specified years.
calcTradeExportShr()
calcTradeExportShr()
Export shares
Ulrich Kreidenweis, Xiaoxi Wang
calcOutput
, calcFAOmassbalance
## Not run: a <- calcTradeExportShr() ## End(Not run)
## Not run: a <- calcTradeExportShr() ## End(Not run)
calculate total value of trade margins from GTAP dataset
calcTradeMargin( gtap_version = "GTAP9", bilateral = FALSE, producer_price = "FAOini" )
calcTradeMargin( gtap_version = "GTAP9", bilateral = FALSE, producer_price = "FAOini" )
gtap_version |
type of GTAP data version
|
bilateral |
whether bilateral trade margin should be calculated |
producer_price |
which producer price should be used |
Trade margins as an MAgPIE object
Xiaoxi Wang
## Not run: x <- calcTradeMargin("GTAP7") ## End(Not run)
## Not run: x <- calcTradeMargin("GTAP7") ## End(Not run)
Calculates regional self sufficiences from FAO data as production/domestic_supply.
calcTradeSelfSuff()
calcTradeSelfSuff()
Self sufficiences
Ulrich Kreidenweis
calcOutput
, calcFAOmassbalance
## Not run: a <- calcTradeSelfSuff() ## End(Not run)
## Not run: a <- calcTradeSelfSuff() ## End(Not run)
calculate tarde tariffs from GTAP dataset
calcTradeTariff( gtap_version = "GTAP9", type_tariff = "total", bilateral = FALSE )
calcTradeTariff( gtap_version = "GTAP9", type_tariff = "total", bilateral = FALSE )
gtap_version |
type of GTAP data version
|
type_tariff |
which producer price should be used
|
bilateral |
calculates whether tariffs should be bilateral |
Trade tariffs as an MAgPIE object
Xiaoxi Wang
## Not run: x <- calcTradeTariff("GTAP7") ## End(Not run)
## Not run: x <- calcTradeTariff("GTAP7") ## End(Not run)
Urban land in Mha on 0.5deg grid
calcUrbanLandFuture( timestep = "5year", subtype = "LUH2v2", cells = "lpjcell", cellular = TRUE )
calcUrbanLandFuture( timestep = "5year", subtype = "LUH2v2", cells = "lpjcell", cellular = TRUE )
timestep |
5year or yearly |
subtype |
where the data source comes from ("LUH2v2" or "Gao") |
cells |
magpiecell (59199 cells) or lpjcell (67420 cells) |
cellular |
TRUE for results on 0.5 degree grid. |
List of magpie objects with results on 0.5deg grid level, weights NULL, unit and description.
David Chen, Patrick v. Jeetze, Felicitas Beier
calculates production value based on production and prices, only works for FAO dataset currently
calcValueProduction(datasource = "FAO", cellular = TRUE)
calcValueProduction(datasource = "FAO", cellular = TRUE)
datasource |
Options of the source of the price data: only FAO has country level data |
cellular |
cellular or iso country values |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen
calcProduction
,
calcPriceAgriculture
## Not run: calcOutput("ValueProduction") ## End(Not run)
## Not run: calcOutput("ValueProduction") ## End(Not run)
This function extracts yields from LPJmL and transforms them to MAgPIE crops calibrating proxy crops to FAO yields. Optionally, ISIMIP yields can be returned.
calcYields( source = c(lpjml = "ggcmi_phase3_nchecks_9ca735cb", isimip = NULL), climatetype = "GSWP3-W5E5:historical", cells = "lpjcell", selectyears = seq(1965, 2100, by = 5), weighting = "totalCrop", multicropping = FALSE, indiaYields = FALSE, scaleFactor = 0.3, marginal_land = "magpie" )
calcYields( source = c(lpjml = "ggcmi_phase3_nchecks_9ca735cb", isimip = NULL), climatetype = "GSWP3-W5E5:historical", cells = "lpjcell", selectyears = seq(1965, 2100, by = 5), weighting = "totalCrop", multicropping = FALSE, indiaYields = FALSE, scaleFactor = 0.3, marginal_land = "magpie" )
source |
Defines LPJmL version for main crop inputs and isimip replacement. For isimip choose crop model/gcm/rcp/co2 combination formatted like this: "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b" |
climatetype |
Switch between different climate scenarios |
cells |
if cellular is TRUE: "magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
selectyears |
Years to be returned |
weighting |
use of different weights (totalCrop (default), totalLUspecific, cropSpecific, crop+irrigSpecific, avlCropland, avlCropland+avlPasture) |
multicropping |
Multicropping activated (TRUE) or not (FALSE) and Multiple Cropping Suitability mask selected (mask can be: "none": no mask applied (only for development purposes) "actual:total": currently multicropped areas calculated from total harvested areas and total physical areas per cell from readLandInG "actual:crop" (crop-specific), "actual:irrigation" (irrigation-specific), "actual:irrig_crop" (crop- and irrigation-specific), "potential:endogenous": potentially multicropped areas given temperature and productivity limits "potential:exogenous": potentially multicropped areas given GAEZ suitability classification) (e.g. TRUE:actual:total; TRUE:none; FALSE) |
indiaYields |
if TRUE returns scaled yields for rainfed crops in India |
scaleFactor |
integer value by which indiaYields will be scaled |
marginal_land |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
magpie object in cellular resolution
Kristine Karstens, Felicitas Beier
## Not run: calcOutput("Yields", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("Yields", aggregate = FALSE) ## End(Not run)
This functions calibrates extracted yields from LPJmL to FAO country level yields
calcYieldsCalibrated( source = c(lpjml = "ggcmi_phase3_nchecks_9ca735cb", isimip = NULL), climatetype = "GSWP3-W5E5:historical", refYear = "y1995", selectyears = seq(1965, 2100, by = 5), cells = "lpjcell", multicropping = FALSE, refYields = FALSE, areaSource = "FAO", marginal_land = "magpie" )
calcYieldsCalibrated( source = c(lpjml = "ggcmi_phase3_nchecks_9ca735cb", isimip = NULL), climatetype = "GSWP3-W5E5:historical", refYear = "y1995", selectyears = seq(1965, 2100, by = 5), cells = "lpjcell", multicropping = FALSE, refYields = FALSE, areaSource = "FAO", marginal_land = "magpie" )
source |
Defines LPJmL version for main crop inputs and isimip replacement. For isimip choose crop model/gcm/rcp/co2 combination formatted like this: "yields:EPIC-IIASA:ukesm1-0-ll:ssp585:default:3b" |
climatetype |
switch between different climate scenarios |
refYear |
reference year for calibration |
selectyears |
Years to be returned (for memory reasons) |
cells |
number of cells "magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
multicropping |
Multicropping activated (TRUE) or not (FALSE) and Multiple Cropping Suitability mask selected (mask can be: "none": no mask applied (only for development purposes) "actual:total": currently multicropped areas calculated from total harvested areas and total physical areas per cell from readLanduseLandInG "actual:crop" (crop-specific), "actual:irrigation" (irrigation-specific), "actual:irrig_crop" (crop- and irrigation-specific), "potential:endogenous": potentially multicropped areas given temperature and productivity limits "potential:exogenous": potentially multicropped areas given GAEZ suitability classification) (e.g. TRUE:actual:total; TRUE:none; FALSE) |
refYields |
assumption for baseline yields with respect to multiple cropping (e.g., FALSE: single-cropped LPJmL yields used as baseline to calculate country-level yields, "TRUE:actual:irrig_crop": multicropped yields where LandInG reports current multiple cropping (irrigation- and crop-specific)) |
areaSource |
data source for croparea used in calculation: FAO or LandInG Note: when calibrating multicropped yields, LandInG croparea should be used |
marginal_land |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
magpie object in cellular resolution from reference year onwards
Kristine Karstens, Felicitas Beier
## Not run: calcOutput("YieldsCalibrated", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("YieldsCalibrated", aggregate = FALSE) ## End(Not run)
This function extracts yields from LPJmL for all years
calcYieldsLPJmL( lpjml = "ggcmi_phase3_nchecks_bft_e511ac58", climatetype = "GSWP3-W5E5:historical", cells = "lpjcell" )
calcYieldsLPJmL( lpjml = "ggcmi_phase3_nchecks_bft_e511ac58", climatetype = "GSWP3-W5E5:historical", cells = "lpjcell" )
lpjml |
Defines LPJmL version for main crop inputs |
climatetype |
Switch between different climate scenarios |
cells |
if cellular is TRUE: "magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
magpie object in cellular resolution
Kristine Karstens, Felicitas Beier
## Not run: calcOutput("YieldsLPJmL", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("YieldsLPJmL", aggregate = FALSE) ## End(Not run)
This function calculates the crop area weightings to use for yields.
calcYieldsWeight( cells = "lpjcell", weighting = "totalCrop", marginal_land = "magpie" )
calcYieldsWeight( cells = "lpjcell", weighting = "totalCrop", marginal_land = "magpie" )
cells |
if cellular is TRUE: "magpiecell" for 59199 cells or "lpjcell" for 67420 cells |
weighting |
use of different weights (totalCrop (default), totalLUspecific, cropSpecific, crop+irrigSpecific, avlCropland, avlCropland+avlPasture) |
marginal_land |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
magpie object in cellular resolution
Kristine Karstens, Felicitas Beier
## Not run: calcOutput("YieldsWeight", yields, aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("YieldsWeight", yields, aggregate = FALSE) ## End(Not run)
Convert data based on AQUASTAT database (http://www.fao.org/nr/water/aquastat/data/query/index.html?lang=en)
convertAQUASTAT(x, subtype)
convertAQUASTAT(x, subtype)
x |
MAgPIE object containing AQUASTAT data on country level |
subtype |
|
magpie objects with results on contury level
Kristine Karstens
## Not run: readSource("AQUASTAT", subtype = "ConsAgri", convert = TRUE) ## End(Not run)
## Not run: readSource("AQUASTAT", subtype = "ConsAgri", convert = TRUE) ## End(Not run)
Convert data from the EAT Lancet Commission to be used in MAgPIE
convertEATLancet(x, subtype)
convertEATLancet(x, subtype)
x |
MAgPIE object containing EAT Lancet data at mixed country-region resolution |
subtype |
Type of EAT Lancet data that should be read. Available types are:
|
EAT Lancet data as MAgPIE object at ISO country level
Isabelle Weindl, Felicitas Beier
## Not run: a <- readSource(type = "EATLancet", subtype = "cons_data") ## End(Not run)
## Not run: a <- readSource(type = "EATLancet", subtype = "cons_data") ## End(Not run)
Convert data on food losses and waste on ISO country level.
convertFAOLossesWaste(x, subtype)
convertFAOLossesWaste(x, subtype)
x |
MAgPIE object containing data on food losses and waste at mixed country-region resolution |
subtype |
Steps of the food supply chain where food losses and waste occur. Available types are:
|
Data on food losses and waste as MAgPIE object at ISO country level
Isabelle Weindl
## Not run: a <- readSource(type="FAOLossesWaste",subtype="Consumption") ## End(Not run)
## Not run: a <- readSource(type="FAOLossesWaste",subtype="Consumption") ## End(Not run)
Converts Forestry Production Ratio Update dd-Jmm-jjjj - Please add comment if changes made here (Abhi)
convertForestryProductionRatio(x)
convertForestryProductionRatio(x)
x |
MAgPIE object to be converted |
A MAgPIE object containing country disaggregated data
Abhijeet Mishra
## Not run: a <- readSource("ForestryProductionRatio", convert = FALSE) ## End(Not run)
## Not run: a <- readSource("ForestryProductionRatio", convert = FALSE) ## End(Not run)
Convert FRA2015Doc data
convertFRA2015Doc(x, subtype)
convertFRA2015Doc(x, subtype)
x |
MAgPIE object containing original values coming from read function |
subtype |
The data table type, e.g.: forest_area |
Data as MAgPIE object
Abhijeet Mishra
## Not run: a <- readSource("FRA2015Doc", "forest_area", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("FRA2015Doc", "forest_area", convert = TRUE) ## End(Not run)
Converts GTAP data to fit to the common country list. Weighting is done by using the Imports and Exports from FAO. NOW NEW WEIGHTING
convertGTAP(x, subtype)
convertGTAP(x, subtype)
x |
MAgPIE object contains GTAP data |
subtype |
The GTAP subtype: VIWS, VIMS VXWD, VXMD, VOA, VOM |
Converted GTAP Data
Xiaoxi Wang
## Not run: x <- ReadSource("GTAP", "GTAP7_VIMS") ## End(Not run)
## Not run: x <- ReadSource("GTAP", "GTAP7_VIMS") ## End(Not run)
Convert data from the NIN Lancet Comission to ISO country level.
convertNIN(x, subtype)
convertNIN(x, subtype)
x |
MAgPIE object containing NIN Lancet data at mixed country-region resolution |
subtype |
Type of NIN Lancet data that should be read. Available types are:
|
NIN Lancet data as MAgPIE object at ISO country level
Isabelle Weindl
## Not run: a <- readSource(type="NIN",subtype="cons_data") ## End(Not run)
## Not run: a <- readSource(type="NIN",subtype="cons_data") ## End(Not run)
Convert PYieldCoeff data to ISO country level.
convertPYieldCoeff(x)
convertPYieldCoeff(x)
x |
MAgPIE object containing data for fixed regional resolution |
data as MAgPIE object disaggregated to country level
Isabelle Weindl
## Not run: a <- convertPYieldCoeff(x)
## Not run: a <- convertPYieldCoeff(x)
Convert Sathaye Forest data on ISO country level.
convertSathayeForest(x)
convertSathayeForest(x)
x |
MAgPIE object containing Sathaye Forest data region resolution |
Sathaye Forest data as MAgPIE object aggregated/disaggregated to country level
Lavinia Baumstark
## Not run: a <- convertSathayeForest(x)
## Not run: a <- convertSathayeForest(x)
Convert WorldBank-irrigation data on ISO country level.
convertWBirrigation(x)
convertWBirrigation(x)
x |
MAgPIE object containing WBirrigation data country-region resolution |
WBirrigation data as MAgPIE object aggregated to country level
Lavinia Baumstark
## Not run: a <- convertWBirrigation(x)
## Not run: a <- convertWBirrigation(x)
correct data for Critical Connectivity Areas (Brennan et al. 2022).
correctBrennan2022(x)
correctBrennan2022(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("Brennan2022", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Brennan2022", convert = "onlycorrect") ## End(Not run)
correct Copernicus data.
correctCopernicus(x)
correctCopernicus(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("Copernicus", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Copernicus", convert = "onlycorrect") ## End(Not run)
correct data for the Global Safety Net conservation priority areas (Dinerstein et al. 2020).
correctDinerstein2020(x)
correctDinerstein2020(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("Dinerstein2020", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Dinerstein2020", convert = "onlycorrect") ## End(Not run)
Read GLW3 file
correctGLW3(x)
correctGLW3(x)
x |
magpie object provided by the read function |
Magpie objects with results on cellular level, weight, unit and description.
Marcos Alves
## Not run: readSource("GLW3", subtype = "DA", convert="onlycorrect") ## End(Not run)
## Not run: readSource("GLW3", subtype = "DA", convert="onlycorrect") ## End(Not run)
correct HalfEarth data
correctHalfEarth(x)
correctHalfEarth(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Felicitas Beier
## Not run: readSource("HalfEarth", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("HalfEarth", convert = "onlycorrect") ## End(Not run)
correct data for Key Biodiversity Areas.
correctKeyBiodiversityAreas(x)
correctKeyBiodiversityAreas(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("KeyBiodiversityAreas", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("KeyBiodiversityAreas", convert = "onlycorrect") ## End(Not run)
correct LUH2v2 urban future data
correctLUH2UrbanFuture(x)
correctLUH2UrbanFuture(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("LUH2UrbanFuture", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("LUH2UrbanFuture", convert = "onlycorrect") ## End(Not run)
correct irrecoverable carbon data from Noon et al. (2022).
correctNoon2022(x)
correctNoon2022(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("Noon2022", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Noon2022", convert = "onlycorrect") ## End(Not run)
correct Ozone Yield shock data
correctOzoneYieldShock(x)
correctOzoneYieldShock(x)
x |
magpie object provided by the read function |
x corrected magpie object containing all ISO countries
Jake Tommey
## Not run: readSource("OzoneShock", convert="onlycorrect") ## End(Not run)
## Not run: readSource("OzoneShock", convert="onlycorrect") ## End(Not run)
Read calibrated protection area file
correctProtectArea(x)
correctProtectArea(x)
x |
magpie object provided by the read function |
magpie object on cellular level
David Chen, Felicitas Beier
## Not run: readSource("ProtectArea", convert="onlycorrect") ## End(Not run)
## Not run: readSource("ProtectArea", convert="onlycorrect") ## End(Not run)
correct protected area baseline data
correctProtectedAreaBaseline(x)
correctProtectedAreaBaseline(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("ProtectedAreaBaseline", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("ProtectedAreaBaseline", convert = "onlycorrect") ## End(Not run)
corrects IMAGE inputs of total bioenergy (1st gen, 2nd gen and residues) demand and co2 prices
correctS4Nproject_input(x)
correctS4Nproject_input(x)
x |
magpie object |
magpie object at country-level resolution
Felicitas Beier
## Not run: a <- readSource("S4Nproject_input", aggregate=FALSE)
## Not run: a <- readSource("S4Nproject_input", aggregate=FALSE)
correct Zabel crop suitability data
correctZabel2014(x)
correctZabel2014(x)
x |
magpie object provided by the read function |
magpie object on cellular level
Patrick v. Jeetze
## Not run: readSource("Zabel2014", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Zabel2014", convert = "onlycorrect") ## End(Not run)
Download water models evapotranspiration data
downloadH08vapotranspiration(subtype = "H08:mri-esm2-0:historical")
downloadH08vapotranspiration(subtype = "H08:mri-esm2-0:historical")
subtype |
Switch between different inputs |
Marcos Alves
## Not run: readSource("H08evapotranspiration", convert="onlycorrect")
## Not run: readSource("H08evapotranspiration", convert="onlycorrect")
download SPAM 2010 v2.0 Global Data
downloadSPAM(subtype)
downloadSPAM(subtype)
subtype |
Type of SPAM data to be downloaded. Available are "harvestedArea" and "physicalArea". |
David Hoetten
Function that produces the regional data set for running the MAgPIE model.
fullMAGPIE(rev = numeric_version("0.1"), dev = "")
fullMAGPIE(rev = numeric_version("0.1"), dev = "")
rev |
data revision which should be used as input (numeric_version). |
dev |
For developing purposes, apply changes as per dev flag |
Jan Philipp Dietrich, Benjamin Leon Bodirsky, Florian Humpenoeder, Edna J. Molina Bacca
readSource
, getCalculations
, calcOutput
## Not run: retrieveData("MAGPIE", rev = numeric_version("12"), mainfolder = "pathtowhereallfilesarestored") ## End(Not run)
## Not run: retrieveData("MAGPIE", rev = numeric_version("12"), mainfolder = "pathtowhereallfilesarestored") ## End(Not run)
Read in data based on AQUASTAT database (https://www.fao.org/aquastat/statistics/query/index.html)
readAQUASTAT(subtype = "ConsAgri")
readAQUASTAT(subtype = "ConsAgri")
subtype |
|
magpie objects with results on contury level
Kristine Karstens
## Not run: readSource("AQUASTAT", subtype = "ConsAgri", convert = TRUE) ## End(Not run)
## Not run: readSource("AQUASTAT", subtype = "ConsAgri", convert = TRUE) ## End(Not run)
Reads Critical Connectivity Areas as defined in Brennan, A., Naidoo, R., Greenstreet, L., Mehrabi, Z., Ramankutty, N., & Kremen, C. (2022). Functional connectivity of the world’s protected areas. Science, 376(6597), 1101–1104. https://doi.org/10.1126/science.abl8974 Protected areas (2020) and Key Biodiversity Areas/Global Safet Net areas were masked at a spatial resolution of 10 arc seconds before aggregating the data to 0.5°.
readBrennan2022(subtype = "KBA_GSN_masked")
readBrennan2022(subtype = "KBA_GSN_masked")
subtype |
Defines whether land area covered by Critical Connectivity Areas has
been masked by other conservation priority data. If Key Biodiversity Areas have
only been masked the option is |
Returns magpie objects with the land area covered by Critical Connectivity areas that is NOT already covered by Key Biodiversity Areas or the Global Safety Net (distinct species assemblages cluster) and was unprotected in 2020.
Patrick v. Jeetze
## Not run: readSource("Brennan2022", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Brennan2022", convert = "onlycorrect") ## End(Not run)
Reads either information on the area on cropland covered by trees or information the cropland area that requires relocation in response of increasing semi-natural vegetation in farmed landscapes. The data was derived from high resolution land cover information (LC100) from the Copernicus Global Land Service. (https://zenodo.org/records/3939050)
readCopernicus(subtype = "CroplandTreecover")
readCopernicus(subtype = "CroplandTreecover")
subtype |
For cropland area covered by trees choose |
Returns magpie objects with cropland area covered by trees or cropland area requiring relocation in order to increase SNV in farmed landscapes.
Patrick v. Jeetze
## Not run: readSource("Copernicus", subtype = "CroplandTreecover", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Copernicus", subtype = "CroplandTreecover", convert = "onlycorrect") ## End(Not run)
Reads Global Safety Net data set published by Dinerstein, E., Joshi, A. R., Vynne, C., Lee, A. T. L., Pharand-Deschênes, F., França, M., Fernando, S., Birch, T., Burkart, K., Asner, G. P., & Olson, D. (2020). A “Global Safety Net” to reverse biodiversity loss and stabilize Earth’s climate. Science Advances, 6(36), eabb2824. https://doi.org/10.1126/sciadv.abb2824
Protected areas and Key Biodiversity Areas were masked at a spatial resolution of 10 arc seconds before aggregating the data to 0.5°.
readDinerstein2020(subtype = "GSN:distinct_species_assemblages")
readDinerstein2020(subtype = "GSN:distinct_species_assemblages")
subtype |
Defines which cluster (see Dinerstein et al. 2020) of the
Global Safety Net is returned.The different subtypes for land are:
|
Returns magpie objects with the land area covered by the Global Safety Net that is NOT already covered by Key Biodiversity Areas and was unprotected in 2020.
Patrick v. Jeetze
## Not run: readSource("Dinerstein2020", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Dinerstein2020", convert = "onlycorrect") ## End(Not run)
Read in data from the EAT-Lancet Commission
Read in data from: Food in the Anthropocene: the EAT-Lancet Commission on healthy diets from sustainable food systems, Lancet 2019 https://doi.org/10.1016/S0140-6736(18)31788-4
readEATLancet(subtype)
readEATLancet(subtype)
subtype |
Type of EAT-Lancet data that should be read. Available types are:
|
magpie object containing EAT-Lancet Comission data
Isabelle Weindl, Jan Philipp Dietrich, Felicitas Beier
## Not run: a <- readSource(type = "EATLancet", subtype = "cons_data") ## End(Not run)
## Not run: a <- readSource(type = "EATLancet", subtype = "cons_data") ## End(Not run)
Data from Annex 4 of the following FAO study: FAO. 2011. Global food losses and food waste – Extent, causes and prevention. Rome (http://www.fao.org/3/a-i2697e.pdf)
readFAOLossesWaste(subtype)
readFAOLossesWaste(subtype)
subtype |
Steps of the food supply chain where food losses and waste occur. Available types are:
|
magpie object of food waste percentages for several commodity groups
Isabelle Weindl
## Not run: a <- readSource(type="FAOLossesWaste",subtype="Consumption")
## Not run: a <- readSource(type="FAOLossesWaste",subtype="Consumption")
Read-in an Forest loss data (range 2001-2015 but only single annual number her) (Source:DOI: 10.1126/science.aau3445 Table 1).
readForestLossDrivers()
readForestLossDrivers()
magpie object of the Curtis et al., 2018 Data
Abhijeet Mishra
## Not run: a <- readSource("ForestLossDrivers") ## End(Not run)
## Not run: a <- readSource("ForestLossDrivers") ## End(Not run)
Read Forestry Production Ratio
readForestryProductionRatio()
readForestryProductionRatio()
magpie object of the proportion of production coming from plantations
Abhijeet Mishra
## Not run: a <- readSource("ForestryProductionRatio")
## Not run: a <- readSource("ForestryProductionRatio")
Read-in an FRA data from 2015 (forest resource assessment).
readFRA2015Doc(subtype)
readFRA2015Doc(subtype)
subtype |
data subtype. |
magpie object of the FRA 2015 data
Abhijeet Mishra
## Not run: a <- readSource("FRA2015Doc","forest_area")
## Not run: a <- readSource("FRA2015Doc","forest_area")
Read the gridded livestock of the world 3 dataset.
readGLW3(subtype = "Da")
readGLW3(subtype = "Da")
subtype |
Subtype of file to be opened (either Da or Aw) |
Magpie objects
Marcos Alves
## Not run: readSource("GLW3", subtype = "DA", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("GLW3", subtype = "DA", convert = "onlycorrect") ## End(Not run)
reads in Gridded Livestock of the World v4, downloaded from: https://dataverse.harvard.edu/dataverse/glw_4
readGLW4(subtype = "Da_Ct")
readGLW4(subtype = "Da_Ct")
subtype |
Weighting method and livestock type:
|
A gridded magpie object with gridded livstock of the world
David M Chen
Read BaseData and BaseView in GTAP database that has been downlodaded from the GTAP wewbsite.
readGTAP(subtype = NULL)
readGTAP(subtype = NULL)
subtype |
Type of GTAP data that should be read. So far available are:
|
GTAP data as a MAgPie-Object
Stephen Wirth, Xiaoxi Wang
## Not run: a <- readSource("GTAP7", "VIWS") ## End(Not run)
## Not run: a <- readSource("GTAP7", "VIWS") ## End(Not run)
Read evapotranspiration data
readH08evapotranspiration(subtype = "H08:mri-esm2-0:historical")
readH08evapotranspiration(subtype = "H08:mri-esm2-0:historical")
subtype |
Switch between different inputs |
MAgPIE objects with results on cellular level.
Marcos Alves
## Not run: readSource("H08evapotranspiration", subtype, convert = "onlycorrect") ## End(Not run)
## Not run: readSource("H08evapotranspiration", subtype, convert = "onlycorrect") ## End(Not run)
Read in Half Earth data set containing conservation area for biodiversity protection based on the Half-Earth approach
readHalfEarth(subtype = "GLOBIO4")
readHalfEarth(subtype = "GLOBIO4")
subtype |
Data source to be read from |
MAgPIE object containing biodiveristy protection area at cellular level
Felicitas Beier
## Not run: readSource("HalfEarth", subtype = "GLOBIO4", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("HalfEarth", subtype = "GLOBIO4", convert = "onlycorrect") ## End(Not run)
Reads land area covered by for Key Biodiversity Areas (https://www.keybiodiversityareas.org/) that was unprotected in 2020. Protected areas were masked at a spatial resolution of 10 arc seconds before aggregating the data to 0.5°.
readKeyBiodiversityAreas(subtype = "unprotected")
readKeyBiodiversityAreas(subtype = "unprotected")
subtype |
"unprotected" or "all" |
Returns magpie objects with the area covered by unprotected Key Biodiversity Areas per grid cell
Patrick v. Jeetze
## Not run: readSource("KeyBiodiversityAreas", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("KeyBiodiversityAreas", convert = "onlycorrect") ## End(Not run)
read in gridded future urban land use datasets, from LUH2 Hurtt data
readLUH2UrbanFuture()
readLUH2UrbanFuture()
magpie object of gridded future urban land use in Mha, 2015-2100
David Chen, Patrick v. Jeetze
Read in data from the NIN recommendations
readNIN(subtype)
readNIN(subtype)
subtype |
Type of NIN data that should be read. Available types are:
|
magpie object containing NIN data
Isabelle Weindl, Jan Philipp Dietrich
## Not run: a <- readSource(type="NIN",subtype="cons_data")
## Not run: a <- readSource(type="NIN",subtype="cons_data")
Reads irrecoverble carbon data set published by Noon, M. L., Goldstein, A., Ledezma, J. C., Roehrdanz, P. R., Cook-Patton, S. C., Spawn-Lee, S. A., Wright, T. M., Gonzalez-Roglich, M., Hole, D. G., Rockström, J., & Turner, W. R. (2022). Mapping the irrecoverable carbon in Earth’s ecosystems. Nature Sustainability, 5(1), Article 1. https://doi.org/10.1038/s41893-021-00803-6 Protected areas were masked at a spatial resolution of 10 arc seconds before aggregating the data to 0.5°.
readNoon2022(subtype = "land:IrrC_50pc")
readNoon2022(subtype = "land:IrrC_50pc")
subtype |
Defines whether carbon data or land area and related subtypes should be
returned (see options below).
Carbon or land subtypes need to be specified via ":"
The different subtypes for land are: "IrrC_30pc", "IrrC_40pc", "IrrC_50pc",
"IrrC_60pc", "IrrC_70pc", "IrrC_80pc", "IrrC_90pc", "IrrC_100pc"
which corresponds to the land area that was unprotected in 2020 and is covered by the respective
percentile of all irrecoverable carbon. |
Returns magpie objects with the area of unprotected irrecoverable carbon land per grid cell
Patrick v. Jeetze
## Not run: readSource("Noon2022", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Noon2022", convert = "onlycorrect") ## End(Not run)
read Ozone Yield Shock Data from the EAT-Lancet deepdive on Ozone shock effects on crop yields.
readOzoneYieldShock()
readOzoneYieldShock()
MAgPIE object with country level yield shock data for year 2050.
Jake Tommey
## Not run: readSource("OzoneShock", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("OzoneShock", convert = "onlycorrect") ## End(Not run)
Read conservation priority areas (in Mha)
readProtectArea()
readProtectArea()
List of magpie objects with results on cellular level
David Chen, Felicitas Beier
## Not run: readSource("ProtectArea", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("ProtectArea", convert = "onlycorrect") ## End(Not run)
Reads spatial land cover information within protected areas. Land cover information for protected areas has been extracted from ESA CCI land use/land cover data (https://www.esa-landcover-cci.org/) and data from the WDPA data base (https://www.protectedplanet.net).
readProtectedAreaBaseline()
readProtectedAreaBaseline()
Returns magpie object with the protected area separated for each land type (cropland, pasture, forest, other land) per grid cell from 1995 to 2020.
Patrick v. Jeetze
## Not run: readSource("ProtectedAreaBaseline", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("ProtectedAreaBaseline", convert = "onlycorrect") ## End(Not run)
Read in csv file containing coefficients of linear regression for the calculation of future pasture intensification dependent on animal numbers
readPYieldCoeff()
readPYieldCoeff()
MAgPIE object
Isabelle Weindl
## Not run: a <- readSource("PYieldCoeff") ## End(Not run)
## Not run: a <- readSource("PYieldCoeff") ## End(Not run)
Reads in a reporting mif file from REMIND
readREMIND(subtype)
readREMIND(subtype)
subtype |
A string composed of three items: unit, revision and indicator. Unit can be either "intensive" or "extensive", revision is the input data revision, and indicator is the name of thre REMIND indicator |
MAgPIE object with regional aggregation of REMIND H12
David Klein
## Not run: readSource("REMIND",aggregate=FALSE) ## End(Not run)
## Not run: readSource("REMIND",aggregate=FALSE) ## End(Not run)
reads in total bioenergy (1st gen, 2nd gen and residues) demand and co2 prices from IMAGE model for Sim4Nexus project
readS4Nproject_input(subtype = "co2prices")
readS4Nproject_input(subtype = "co2prices")
subtype |
IMAGE input to be read in: co2prices or bioenergy |
magpie object at country-level resolution
Felicitas Beier
## Not run: a <- readSource("S4Nproject_input", convert="onlycorrect", aggregate=FALSE)
## Not run: a <- readSource("S4Nproject_input", convert="onlycorrect", aggregate=FALSE)
Read-in an Sathaye Forest data .csv file as magclass object
readSathayeForest()
readSathayeForest()
magpie object of the Sathaye Forest data
Lavinia Baumstark, Felicitas Beier, Abhijeet Mishra
## Not run: a <- readSource("SathayeForest")
## Not run: a <- readSource("SathayeForest")
Reads in a reporting mif file from REMIND
readStrefler2021(subtype)
readStrefler2021(subtype)
subtype |
Either "intensive" or "extensive" |
MAgPIE object with regional aggregation of REMIND H12
Florian Humpenöder
## Not run: readSource("Strefler2021",aggregate=FALSE) ## End(Not run)
## Not run: readSource("Strefler2021",aggregate=FALSE) ## End(Not run)
Read gridded urban land, from Gao O'Neill and Jones SEDAC dataset, https://sedac.ciesin.columbia.edu/data/set/ssp-1-8th-urban-land-extent-projection-base-year-ssp-2000-2100 #nolint
readUrbanLandGao()
readUrbanLandGao()
magpie object of 2000-2100 urban land in Mha, in 10 year intervals
David M Chen, Felicitas Beier
reads in World bank irrigation data: WBirrigation data .csv file as magclass object from Jones, William I. 1995. "World Bank and Irrigation." Washington, D.C.: World Bank. Bonsch et al. (2015) "Environmental Flow Provision: Implications for Agricultural Water and Land-Use at the Global Scale": Table A1 - Investment costs for expanding irrigation infrastructure in US$ per hectare. Based on: World Bank Irrigation Investment Cost Data. William I. Jones(1991) "The World Bank and Irrigation" (World Bank Operations Evaluation Study)
readWBirrigation()
readWBirrigation()
magpie object of the WBirrigation data
Lavinia Baumstark
## Not run: a <- readSource(type="WBirrigation")
## Not run: a <- readSource(type="WBirrigation")
Reads in data on body mass index (BMI) recommendations from WHO http://www.who.int/childgrowth/standards/bmi_for_age/en/ http://www.who.int/growthref/who2007_bmi_for_age/en/
readWHObmi()
readWHObmi()
magpie object
Reads crop suitability data published in Zabel, F., Putzenlechner, B., & Mauser, W. (2014). Global Agricultural Land Resources – A High Resolution Suitability Evaluation and Its Perspectives until 2100 under Climate Change Conditions. PLOS ONE, 9(9), e107522. https://doi.org/10.1371/journal.pone.0107522 and extracts the share of suitable cropland per grid cell, depending on different suitability thresholds.
readZabel2014(subtype = "all_marginal:rainfed_and_irrigated")
readZabel2014(subtype = "all_marginal:rainfed_and_irrigated")
subtype |
Defines which share of marginal land should be included (see options below) and whether suitable land under irrigated conditions ("irrigated"), under rainfed conditions ("rainfed") or suitability under rainfed conditions including currently irrigated land (rainfed_and_irrigated) should be used. Options combined via ":" The different marginal land options are:
|
Returns magpie objects with the share of suitable cropland per grid cell
Patrick v. Jeetze, Felicitas Beier
## Not run: readSource("Zabel2014", subtype = "all_marginal:rainfed_and_irrigated", convert = "onlycorrect") ## End(Not run)
## Not run: readSource("Zabel2014", subtype = "all_marginal:rainfed_and_irrigated", convert = "onlycorrect") ## End(Not run)
Given a regionmapping (mapping between ISO countries and regions) the function calculates a 0.5 degree spatial header for 0.5 degree magclass objects
spatial_header(mapping)
spatial_header(mapping)
mapping |
Either a path to a mapping or an already read-in mapping as data.frame. |
A vector with 59199 elements
Jan Philipp Dietrich
## Not run: spatial_header("regionmappingMAgPIE.csv") ## End(Not run)
## Not run: spatial_header("regionmappingMAgPIE.csv") ## End(Not run)
This tool scales time series based on the approach used in the magpiemodel yield module.
toolPatternScaling( scen, scenMean, refMean, refYear = "y2010", variation = "yieldCalibMAG" )
toolPatternScaling( scen, scenMean, refMean, refYear = "y2010", variation = "yieldCalibMAG" )
scen |
time series of the scenario |
scenMean |
mean of scenario time series |
refMean |
mean of reference time series |
refYear |
Reference year |
variation |
'yieldCalibMAG' (default); to be implemented: 'jensPaper' |
scaled data in magclass format
Kristine Karstens