Title: | madrat data preparation for validation purposes |
---|---|
Description: | Package contains routines to prepare data for validation exercises. |
Authors: | Benjamin Leon Bodirsky [aut, cre], Stephen Wirth [aut], Kristine Karstens [aut], Florian Humpenoeder [aut], Mishko Stevanovic [aut], Abhijeet Mishra [aut], Anne Biewald [aut], Isabelle Weindl [aut], Felicitas Beier [aut], David Chen [aut], Michael Crawford [aut], Debbora Leip [aut], Edna Molina Bacca [aut], Ulrich Kreidenweis [aut], Amsalu W. Yalew [aut], Patrick von Jeetze [aut], Xiaoxi Wang [aut], Jan Philipp Dietrich [aut], Marcos Alves [aut] |
Maintainer: | Benjamin Leon Bodirsky <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 2.61.9 |
Built: | 2024-11-21 14:23:41 UTC |
Source: | https://github.com/pik-piam/mrvalidation |
Package contains routines to prepare data for validation exercises.
Maintainer: Benjamin Leon Bodirsky [email protected]
Authors:
Stephen Wirth
Kristine Karstens
Florian Humpenoeder
Mishko Stevanovic
Abhijeet Mishra
Anne Biewald
Isabelle Weindl
Felicitas Beier
David Chen
Michael Crawford
Debbora Leip
Edna Molina Bacca
Ulrich Kreidenweis
Amsalu W. Yalew
Patrick von Jeetze
Xiaoxi Wang
Jan Philipp Dietrich
Marcos Alves
Useful links:
Report bugs at https://github.com/pik-piam/mrvalidation/issues
Filling gaps in the Historical area equipped for irrigation from GMIA.
calcGMIA()
calcGMIA()
list of magpie object with data and weight
Stephen Wirth, Anne Biewald
## Not run: a <- calcOutput("GMIA", aggregate = "regglo") ## End(Not run)
## Not run: a <- calcOutput("GMIA", aggregate = "regglo") ## End(Not run)
calculates the crop-specific nitrogen losses and the balanceflow for countries with unrealistically high nitrogen uptake efficiencies
calcNitrogenSurplusByCrop( indicator = "total", deposition = "Nsurplus2", cellular = FALSE )
calcNitrogenSurplusByCrop( indicator = "total", deposition = "Nsurplus2", cellular = FALSE )
indicator |
total: estimates the inputs per total crop production; 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("NitrogenSurplusByCrop") ## End(Not run)
## Not run: calcOutput("NitrogenSurplusByCrop") ## End(Not run)
Returns historical area actually irrigated.
calcValidAAI(datasource = "LUH2v2")
calcValidAAI(datasource = "LUH2v2")
datasource |
Currently available: |
list of magpie object with data and weight
Stephen Wirth, Anne Biewald
Returns historical area equipped for irrigation.
calcValidAEI(datasource = "LUH2v2")
calcValidAEI(datasource = "LUH2v2")
datasource |
Currently available: |
list of magpie object with data and weight
Stephen Wirth, Anne Biewald, Felicitas Beier
number of people employed in agriculture (crop+livestock production)
calcValidAgEmployment(datasource = "ILO", dataVersionILO = "Aug24")
calcValidAgEmployment(datasource = "ILO", dataVersionILO = "Aug24")
datasource |
ILO for reporting aggregated employment in crop+livestock production, or ILO_FAO, which uses the same aggregated employment data from ILO, but applies FAO value of production shares to disaggregated between employment in crop and in livestock production. |
dataVersionILO |
"" for the oldest version, or "monthYear" (e.g. "Aug23") for a newer version |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidAgEmployment", datasource="ILO") ## End(Not run)
## Not run: calcOutput("ValidAgEmployment", datasource="ILO") ## End(Not run)
validation for agricultural, fisheries, forestry value added gdp (Million 17USD)
calcValidAgFFGDP(datasource = "WDI")
calcValidAgFFGDP(datasource = "WDI")
datasource |
datasource for validation (WDI) |
List of magpie object with results on country level, no weight, unit and description.
David Chen
## Not run: calcOutput("ValidAgFFGDP") ## End(Not run)
## Not run: calcOutput("ValidAgFFGDP") ## End(Not run)
Validation for agricultural value added gdp (Million 05USD)
calcValidAgGDP(datasource = "FAO")
calcValidAgGDP(datasource = "FAO")
datasource |
datasource for validation. Options FAO and FAO-consum |
List of magpie object with results on country level, no weight, unit and description.
Edna J. Molina Bacca
## Not run: calcOutput("ValidAgGDP") ## End(Not run)
## Not run: calcOutput("ValidAgGDP") ## End(Not run)
calculates the validation data for TC as Ag R&D investments
calcValidAgriResearchIntensity(datasource = "Pardey")
calcValidAgriResearchIntensity(datasource = "Pardey")
datasource |
Datasource of validation data. |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen
## Not run: calcOutput("calcValidAgriResearchIntensity") ## End(Not run)
## Not run: calcOutput("calcValidAgriResearchIntensity") ## End(Not run)
Returns historical Emissions stored in wood products
calcValidAnnualCarbonLTS(datasource = "Lauk_et_al")
calcValidAnnualCarbonLTS(datasource = "Lauk_et_al")
datasource |
Currently available |
List of magpie object with Emissions in wood products
Abhijeet Mishra
validation for the Biodiversity Intactness Index (BII)
calcValidBII()
calcValidBII()
Country-level MAgPIE object
Michael Crawford
## Not run: calcOutput("ValidBII") ## End(Not run)
## Not run: calcOutput("ValidBII") ## End(Not run)
calculates the validation data for carbon pools
calcValidCarbon( datasource = "LPJmL4_for_MAgPIE_44ac93de:GSWP3-W5E5:historical" )
calcValidCarbon( datasource = "LPJmL4_for_MAgPIE_44ac93de:GSWP3-W5E5:historical" )
datasource |
Datasources for validation data |
List of magpie objects with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ValidCarbon") ## End(Not run)
## Not run: calcOutput("ValidCarbon") ## End(Not run)
validation for the MAGICC warming output, showing average temperature for the different RCPs
calcValidCMIP6()
calcValidCMIP6()
GLO MAgPIE object containing average warming per RCP
Michael Crawford
## Not run: calcOutput("calcValidCMIP6") ## End(Not run)
## Not run: calcOutput("calcValidCMIP6") ## End(Not run)
Validation for consumption Value
calcValidConsumptionValue(datasource = "FAO")
calcValidConsumptionValue(datasource = "FAO")
datasource |
datasource for validation (FAO) |
List of magpie object with results on country level, no weight, unit and description.
Edna J. Molina Bacca
## Not run: calcOutput("ValidConsumptionValue") ## End(Not run)
## Not run: calcOutput("ValidConsumptionValue") ## End(Not run)
provides the validation data for irrigation investment costs
calcValidCostsAEI(datasource = "IMPACT")
calcValidCostsAEI(datasource = "IMPACT")
datasource |
Datasource of validation data |
magpie object on country level, unit and description
Felicitas Beier
## Not run: calcOutput("ValidCostsAEI") ## End(Not run)
## Not run: calcOutput("ValidCostsAEI") ## End(Not run)
Returns historical values for capital related costs
calcValidCostsCapStocks(datasource = "FAO")
calcValidCostsCapStocks(datasource = "FAO")
datasource |
datasource for validation. FAO Value of Production dataset. |
List of magpie object with results on country level, no weight, unit and description.
Edna J. Molina Bacca
## Not run: calcOutput("calcValidCostsCapStocks") ## End(Not run)
## Not run: calcOutput("calcValidCostsCapStocks") ## End(Not run)
calculates validation data for fertilizer costs
calcValidCostsFertilizer(datasource = "FAO")
calcValidCostsFertilizer(datasource = "FAO")
datasource |
Source of validation data. |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidCostsFertilizer", datasource = "FAO") ## End(Not run)
## Not run: calcOutput("ValidCostsFertilizer", datasource = "FAO") ## End(Not run)
calculates validation data for labor costs
calcValidCostsLabor(datasource = "Vittis")
calcValidCostsLabor(datasource = "Vittis")
datasource |
Datasource of validation data. |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidCostsLabor") ## End(Not run)
## Not run: calcOutput("ValidCostsLabor") ## End(Not run)
Returns historical values of the overall value of production for the Agricultural, Forestry sectors, and fisheries (mio.17USD)
calcValidCostsOverall(datasource = "FAO")
calcValidCostsOverall(datasource = "FAO")
datasource |
datasource for validation. FAO Value of Production dataset. |
List of magpie object with results on country level, no weight, unit and description.
Edna J. Molina Bacca
## Not run: calcOutput("calcValidCostsOverall") ## End(Not run)
## Not run: calcOutput("calcValidCostsOverall") ## End(Not run)
calculates the validation data for TC as Ag R&D investments
calcValidCostsTC(datasource = "Pardey")
calcValidCostsTC(datasource = "Pardey")
datasource |
Datasource of validation data. |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen
## Not run: calcOutput("ValidCostsTC") ## End(Not run)
## Not run: calcOutput("ValidCostsTC") ## End(Not run)
calculates the validation data for transport costs
calcValidCostsTransport(datasource = "GTAPtransport")
calcValidCostsTransport(datasource = "GTAPtransport")
datasource |
Datasource of validation data |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen
## Not run: calcOutput("ValidCostsTransport") ## End(Not run)
## Not run: calcOutput("ValidCostsTransport") ## End(Not run)
Returns historical areas of individual crops. These are derived by correcting harvested areas to match to physical cropland areas. Both these datasets are from FAO. Output is meant to be used for model validation. Ostberg2023 is a slightly modified version of https://gmd.copernicus.org/articles/16/3375/2023/gmd-16-3375-2023-assets.html
calcValidCroparea(datasource = "FAO", detail = FALSE)
calcValidCroparea(datasource = "FAO", detail = FALSE)
datasource |
Currently only "FAO" available |
detail |
how much detail? |
list of magpie object with data and weight
Benjamin Bodirsky, Ulrich Kreidenweis
calculates validation for croparea diversity index. As opposed to CropareaDiversityIndex from magpie4 due to lack of data fallow land is not considered
calcValidCropareaDiversity(index = "shannon", groupdiv = "agg1")
calcValidCropareaDiversity(index = "shannon", groupdiv = "agg1")
index |
can be "shannon", "gini" or "invsimpson" for different types of diversitiy indices |
groupdiv |
should crop groups be split up into several individual items or not? Choose either FALSE or different (dis)aggregation methods "agg1", "agg2" |
MAgPIE object (unit depends on attributes)
Patrick v. Jeetze, Benjamin Leon Bodirsky
## Not run: x <- calcOutput("ValidCropareaDiversity", index = "shannon", groupdiv = "agg1", aggregate = FALSE) ## End(Not run)
## Not run: x <- calcOutput("ValidCropareaDiversity", index = "shannon", groupdiv = "agg1", aggregate = FALSE) ## End(Not run)
Returns historical Emissions stored in wood products
calcValidCumulativeCarbonLTS(datasource = "Johnston_Radeloff")
calcValidCumulativeCarbonLTS(datasource = "Johnston_Radeloff")
datasource |
Currently available |
List of magpie object with Emissions in wood products
Abhijeet Mishra
calculates the validation data for the utilization of agricultural products for food, feed, bioenergy, seed, material, processing, or waste
calcValidDemand(datasource = "FAO", detail = TRUE, nutrient = "dm")
calcValidDemand(datasource = "FAO", detail = TRUE, nutrient = "dm")
datasource |
Datasource of validation data. |
detail |
if FALSE, only larger product categories are reported |
nutrient |
The nutrient in which the results shall be reported. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Isabelle Weindl
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidDemand") ## End(Not run)
## Not run: calcOutput("ValidDemand") ## End(Not run)
Returns future projections of bioenergy demand
calcValidDemandBioenergy()
calcValidDemandBioenergy()
list of magpie object with data and weight
Florian Humpenoeder
Returns historical LUC emissions
calcValidEmisLucGasser(subtype = "bookkeeping")
calcValidEmisLucGasser(subtype = "bookkeeping")
subtype |
Available subtypes are:
|
list of magpie object with data and weight
Abhijeet Mishra
Returns historical and projected water usage from different sources
calcValidEmisLucGlo(subtype = "Canadell_2007")
calcValidEmisLucGlo(subtype = "Canadell_2007")
subtype |
Available subtypes are:
|
list of magpie object with data and weight
Florian Humpenoeder
Returns historical LUC emissions
calcValidEmisLucGloGasser(subtype = "Gasser_2020")
calcValidEmisLucGloGasser(subtype = "Gasser_2020")
subtype |
Available subtypes are:
|
list of magpie object with data and weight
Abhijeet Mishra
validation fo emissions
calcValidEmissions(datasource = "CEDS")
calcValidEmissions(datasource = "CEDS")
datasource |
The Emission Inventory that shall be used. For futher information, best see mrcommons 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
## Not run: calcOutput("ValidEmissions") ## End(Not run)
## Not run: calcOutput("ValidEmissions") ## End(Not run)
validation for total and cumulative AFOLU emissions in CO2eq
calcValidEmissionsAFOLU(datasource = "FAO", cumulative = FALSE)
calcValidEmissionsAFOLU(datasource = "FAO", cumulative = FALSE)
datasource |
current options are "FAO" and "EDGAR_LU" |
cumulative |
cumulative from y2000 |
MAgPIE object with emissions in CO2eq
Michael Crawford
## Not run: calcOutput("ValidEmissionsAFOLU") ## End(Not run)
## Not run: calcOutput("ValidEmissionsAFOLU") ## End(Not run)
Validation data for peatland emissions in CO2eq, taken from the article: Leifeld, J., Menichetti, L. The underappreciated potential of peatlands in global climate change mitigation strategies. Nat Commun 9, 1071 (2018). https://doi.org/10.1038/s41467-018-03406-6
calcValidEmissionsPeatland()
calcValidEmissionsPeatland()
Global-level MAgPIE object with peatlands emissions in CO2eq for the year 2015
Michael Crawford
## Not run: calcOutput("ValidEmissionsPeatland") ## End(Not run)
## Not run: calcOutput("ValidEmissionsPeatland") ## End(Not run)
calculates the validation data for feed demand by animal type
calcValidFeed(datasource = "FAO", detail = TRUE, nutrient = "dm")
calcValidFeed(datasource = "FAO", detail = TRUE, nutrient = "dm")
datasource |
Datasource of validation data. |
detail |
if FALSE, only larger product categories are reported |
nutrient |
The nutrient in which the results shall be reported. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidFeed") ## End(Not run)
## Not run: calcOutput("ValidFeed") ## End(Not run)
calculates various feed indicators
calcValidFeedConversion(livestockSystem = TRUE, subtractBalanceflow = FALSE)
calcValidFeedConversion(livestockSystem = TRUE, subtractBalanceflow = FALSE)
livestockSystem |
if TRUE, ruminant meat and milk are aggregated, and poultry meat and egg are aggregated |
subtractBalanceflow |
if TRUE, balanceflow is subtracted so that the feed conversion reflects our feedbasket calucaltions. If FALSE, it reflects the FAO values and the pasture demand |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, github Copilot
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidFeed") ## End(Not run)
## Not run: calcOutput("ValidFeed") ## End(Not run)
validation for foode expenditure
calcValidFoodExpenditure(detail = FALSE)
calcValidFoodExpenditure(detail = FALSE)
detail |
if FALSE, only major food commoditiy groups are shown. |
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidFoodExpenditure") ## End(Not run)
## Not run: calcOutput("ValidFoodExpenditure") ## End(Not run)
Returns historical development of Gini Coefficient
calcValidGini()
calcValidGini()
list of magpie object with data and weight.
David M Chen
validation for total and cumulative land emissions from the Global Carbon Budget, including all bookkeeping models
calcValidGlobalCarbonBudget(cumulative = FALSE)
calcValidGlobalCarbonBudget(cumulative = FALSE)
cumulative |
cumulative from y2000 |
a MAgPIE object
Michael Crawford
## Not run: calcOutput("ValidGlobalCarbonBudget") ## End(Not run)
## Not run: calcOutput("ValidGlobalCarbonBudget") ## End(Not run)
validation for the global surface temperature anomaly
calcValidGlobalSurfaceTemp()
calcValidGlobalSurfaceTemp()
global MAgPIE object
Michael Crawford
## Not run: calcOutput("ValidGlobalSurfaceTemp", aggregate = FALSE) ## End(Not run)
## Not run: calcOutput("ValidGlobalSurfaceTemp", aggregate = FALSE) ## End(Not run)
calculates the validation data for production of grass from managed pastures and rangelands separetely
calcValidGrassLSUha(datasource = "MAgPIEown")
calcValidGrassLSUha(datasource = "MAgPIEown")
datasource |
Currently available: |
List of magpie objects with results on country level, weight on country level, unit and description.
Marcos Alves
## Not run: calcOutput("ValidGrassLSUha") ## End(Not run)
## Not run: calcOutput("ValidGrassLSUha") ## End(Not run)
calculates the validation data for grasslands
calcValidGrassSoilCarbon( datasource = "ISIMIP3b:IPSL-CM6A-LR:ssp126:1965-2100", model = "9eaf9b", lpjml )
calcValidGrassSoilCarbon( datasource = "ISIMIP3b:IPSL-CM6A-LR:ssp126:1965-2100", model = "9eaf9b", lpjml )
datasource |
Datasources for validation data |
model |
trained model ID |
lpjml |
lpjml version |
List of magpie objects with results on country level, weight on country level, unit and description.
Marcos Alves
## Not run: calcOutput("ValidGrassSoilCarbon") ## End(Not run)
## Not run: calcOutput("ValidGrassSoilCarbon") ## End(Not run)
reports Croparea by crops on 0.5 degree grid in physical area
calcValidGridCroparea()
calcValidGridCroparea()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridCroparea") ## End(Not run)
## Not run: calcOutput("ValidGridCroparea") ## End(Not run)
reports Nitrogen Inputs by crop type on 0.5 degree grid
calcValidGridCroplandNitrogenInputs()
calcValidGridCroplandNitrogenInputs()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridCroplandNitrogenInputs") ## End(Not run)
## Not run: calcOutput("ValidGridCroplandNitrogenInputs") ## End(Not run)
reports Cropland Nitrogen Surplus and a Balanceflow that balances for unrealistically high nitrogen use efficiencies on 0.5 degree grid
calcValidGridCroplandNitrogenSurplus()
calcValidGridCroplandNitrogenSurplus()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridCroplandNitrogenSurplus") ## End(Not run)
## Not run: calcOutput("ValidGridCroplandNitrogenSurplus") ## End(Not run)
reports Cropland Nitrogen Withdrawals from soils on 0.5 degree grid
calcValidGridCroplandNitrogenWithdrawals(irrigation = FALSE)
calcValidGridCroplandNitrogenWithdrawals(irrigation = FALSE)
irrigation |
FALSE for the sum of irrigated and rainfed, FALSE for seperated categories, 'rainfed' or 'irrigated for single categories |
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridCroplandNitrogenWithdrawals") ## End(Not run)
## Not run: calcOutput("ValidGridCroplandNitrogenWithdrawals") ## End(Not run)
reports the main Land types on 0.5 degree grid
calcValidGridLand()
calcValidGridLand()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridLand") ## End(Not run)
## Not run: calcOutput("ValidGridLand") ## End(Not run)
reports Nitrogen Budget for Croplands on 0.5 degree grid
calcValidGridNitrogenBudgetCropland()
calcValidGridNitrogenBudgetCropland()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
reports Nitrogen Budget for non-agricultural land types on 0.5 degree grid
calcValidGridNitrogenBudgetNonagland()
calcValidGridNitrogenBudgetNonagland()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridNitrogenBudgetNonagland") ## End(Not run)
## Not run: calcOutput("ValidGridNitrogenBudgetNonagland") ## End(Not run)
reports Nitrogen Budgets for Pastures on 0.5 degree grid
calcValidGridNitrogenBudgetPasture()
calcValidGridNitrogenBudgetPasture()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridNitrogenBudgetPasture") ## End(Not run)
## Not run: calcOutput("ValidGridNitrogenBudgetPasture") ## End(Not run)
reports Nutrient load in animal waste management on 0.5 degree grid
calcValidGridNutrientAWMS(nutrient = c("nr", "c"))
calcValidGridNutrientAWMS(nutrient = c("nr", "c"))
nutrient |
can be c, nr, p, k. For p and k, no losses are assumed in confinements. |
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Kristine Karstens, Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
reports Nutrient Losses in animal waste management on 0.5 degree grid
calcValidGridNutrientLossesAWMS(nutrient = c("nr", "c"))
calcValidGridNutrientLossesAWMS(nutrient = c("nr", "c"))
nutrient |
can be c, nr, p, k. For p and k, no losses are assumed in confinements. |
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
## Not run: calcOutput("ValidGridNitrogenBudgetCropland") ## End(Not run)
reports aboveground Crop Residue Demand on 0.5 degree grid
calcValidGridResidueDemand()
calcValidGridResidueDemand()
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridResidueDemand") ## End(Not run)
## Not run: calcOutput("ValidGridResidueDemand") ## End(Not run)
calculates the validation data for the gridded soil carbon pools
calcValidGridSOCStocks( datasource = "LPJ_IPCC2006", baseyear = 1995, intensive = FALSE )
calcValidGridSOCStocks( datasource = "LPJ_IPCC2006", baseyear = 1995, intensive = FALSE )
datasource |
Datasources for validation data, e.g. LPJ_IPCC2006, LPJmL_natural, ... |
baseyear |
baseyear for calculating soil carbon stock change (for LPJ_IPCC2006 only) |
intensive |
If FALSE (default) total stocks will be returned; otherwise (TRUE) carbon densities. |
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Kristine Karstens
## Not run: calcOutput("ValidGridSOCStocks") ## End(Not run)
## Not run: calcOutput("ValidGridSOCStocks") ## End(Not run)
reports Yields on 0.5 degree grid
calcValidGridYields(datasource = "downscaledFAO", future = NULL)
calcValidGridYields(datasource = "downscaledFAO", future = NULL)
datasource |
downscaledFAO or calibratedFAO |
future |
if NULL no future values are returned (default). specify climate scenario (gcm:rcp), if future is needed |
List of magpie objects with results on cellular level, weight on cellular level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidGridYields") ## End(Not run)
## Not run: calcOutput("ValidGridYields") ## End(Not run)
Returns historical FRA 2015 growing stock in mio m3 per ha
calcValidGrowingStock(datasource = "FAO")
calcValidGrowingStock(datasource = "FAO")
datasource |
Currently only available for the "FAO" source |
List of magpie object with growing stock
Abhijeet Mishra
Returns historical FRA 2020 growing stock in million m3
calcValidGS(datasource = "FAO", indicator = "relative")
calcValidGS(datasource = "FAO", indicator = "relative")
datasource |
Currently only available for the "FAO" source |
indicator |
type of indicator (relative or absolute) |
List of magpie object with growing stock
Abhijeet Mishra
hourly labor costs in crop+livestock production
calcValidHourlyLaborCosts( datasource = "ILO_completed", dataVersionILO = "Aug24" )
calcValidHourlyLaborCosts( datasource = "ILO_completed", dataVersionILO = "Aug24" )
datasource |
Available datasources are:
|
dataVersionILO |
"" for the oldest version, or "monthYear" (e.g. "Aug23") for a newer version |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidHourlyLaborCosts", datasource = "ILO_completed") ## End(Not run)
## Not run: calcOutput("ValidHourlyLaborCosts", datasource = "ILO_completed") ## End(Not run)
Returns historical development of income and future projections of income dynamics
calcValidIncome(datasource = "WDI_SSPs")
calcValidIncome(datasource = "WDI_SSPs")
datasource |
"WDI_SSPs", the only one option at the moment. |
list of magpie object with data and weight. Since intensive and extensive variables are mixed please keep the mixed_aggregation
Florian Humpenoeder, Abhijeet Mishra, Kristine Karstens
calculates the validation data for calorie food supply
calcValidKcal(datasource = "FAO", nutrient = "kcal", detail = TRUE)
calcValidKcal(datasource = "FAO", nutrient = "kcal", detail = TRUE)
datasource |
Datasource of validation data. If "FAO", we use FAO calories with FAO population data (slightly diverges from original data as the convert script for example splits up countries for the past). If "FAOmassbalance" we use calories from the FAO massbalance calculations, and divide them by our standard population. |
nutrient |
kcal or protein |
detail |
if FALSE, only larger product categories are reported |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Kristine Karstens
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidKcal") ## End(Not run)
## Not run: calcOutput("ValidKcal") ## End(Not run)
Returns historical cropland, pasture and forest area from FAOSTAT that can be used for model validation.
calcValidLand(datasource = "MAgPIEown")
calcValidLand(datasource = "MAgPIEown")
datasource |
Currently available: |
list of magpie object with data and weight
Ulrich Kreidenweis, Benjamin Bodirsky, Abhijeet Mishra, Mishko Stevanovic, Kristine Karstens
Returns historical changes of cropland, pasture and forest area from LUH2 and FAOSTAT that can be used for model validation.
calcValidLandChange(baseyear = 1995, datasource = "MAgPIEown")
calcValidLandChange(baseyear = 1995, datasource = "MAgPIEown")
baseyear |
baseyear for calculating land-use change |
datasource |
Currently available: |
list of magpie object with data and weight
Florian Humpenoeder
calculates the validation data for the share of different livestock products (excluding fish) in total livestock calorie food supply
calcValidLivestockDemStructure(datasource = "FAO")
calcValidLivestockDemStructure(datasource = "FAO")
datasource |
Datasource of validation data. If "FAO", we use FAO calories with FAO population data (slightly diverges from original data as the convert script for example splits up countries for the past). |
List of magpie objects with results on country level, weight on country level, unit and description.
Isabelle Weindl
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidLivestockDemStructure") ## End(Not run)
## Not run: calcOutput("ValidLivestockDemStructure") ## End(Not run)
Calculates historical rangelands intensity use.
calcValidLSUdensity()
calcValidLSUdensity()
List of magpie objects with results on country level, weight on country level, unit and description.
Marcos Alves
## Not run: calcOutput("ValidLSUdensity") ## End(Not run)
## Not run: calcOutput("ValidLSUdensity") ## End(Not run)
Validates the esitmates on excretion and manure management
calcValidManure(datasource = "Bodirsky")
calcValidManure(datasource = "Bodirsky")
datasource |
own: own estimation for the past based on feed intake, IPCC: standard excretion factors, FAO: FAO estimates |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcExcretion
,
calcExcretionIPCC
## Not run: calcOutput("ValidManure") ## End(Not run)
## Not run: calcOutput("ValidManure") ## End(Not run)
Validation Script for Nitrogen Budgets on Croplands
calcValidNitrogenBudgetCropland(datasource = "Bodirsky")
calcValidNitrogenBudgetCropland(datasource = "Bodirsky")
datasource |
Bodirsky for own calculations, Lassaletta2014 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. FAO for some N related parameters published in FAOSTAT. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNitrogenBudgetCropland") ## End(Not run)
## Not run: calcOutput("ValidNitrogenBudgetCropland") ## End(Not run)
reports nitrogen budget for non-agricultural land types
calcValidNitrogenBudgetNonagland()
calcValidNitrogenBudgetNonagland()
MAgPIE object with results on the iso level, unweighted, unit, and description
Michael Crawford
## Not run: calcOutput("calcValidNitrogenBudgetNonagland") ## End(Not run)
## Not run: calcOutput("calcValidNitrogenBudgetNonagland") ## End(Not run)
Validation Script for Nitrogen Budgets on Pastures
calcValidNitrogenBudgetPasture(datasource = "Bodirsky")
calcValidNitrogenBudgetPasture(datasource = "Bodirsky")
datasource |
Bodirsky for own calculations, Lassaletta2014 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 Pasture. Environmental Research Letters. FAO for some N related parameters published in FAOSTAT. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNitrogenBudgetPasture") ## End(Not run)
## Not run: calcOutput("ValidNitrogenBudgetPasture") ## End(Not run)
reports nutrient surplus for all land types
calcValidNitrogenSurplus()
calcValidNitrogenSurplus()
MAgPIE object with results on the iso level, unweighted, unit, and description
Michael Crawford
## Not run: calcOutput("calcValidNitrogenSurplus") ## End(Not run)
## Not run: calcOutput("calcValidNitrogenSurplus") ## End(Not run)
Returns historical development of population and future projections of population dynamics
calcValidPopulation( pastData = "WDI-UN_PopDiv-MI", futureData = "SSPs-UN_PopDiv" )
calcValidPopulation( pastData = "WDI-UN_PopDiv-MI", futureData = "SSPs-UN_PopDiv" )
pastData |
population past data source |
futureData |
population future data source |
list of magpie object with data and weight
Florian Humpenoeder, Jan Philipp Dietrich, David Chen
Validation of poverty (head-count)
calcValidPovertyLine(datasource = "WBPoverty", subtype = "320PovertyLine")
calcValidPovertyLine(datasource = "WBPoverty", subtype = "320PovertyLine")
datasource |
datasource for validation. Option: "WBPoverty" (world bank). |
subtype |
Poverty line criteria. Options:"320PovertyLine" (default), "550PovertyLine", "1p90 USDppp11/day" |
List of magpie object with results on country level, no weight, unit and description.
Edna J. Molina Bacca
## Not run: calcOutput("ValidPovertyLine") ## End(Not run)
## Not run: calcOutput("ValidPovertyLine") ## End(Not run)
provides global prices from the IMPACT model projections, World Bank observations, and FAO obersvations for MAgPIE commodities in $2017/tDM
calcValidPriceAgriculture(datasource = "FAO")
calcValidPriceAgriculture(datasource = "FAO")
datasource |
Options of the source of data: |
List with a magpie object with commodity prices on global and country level.
Mishko Stevanovic
## Not run: calcOutput("ValidPriceAgriculture", datasource="IMPACT3.2.2World_Price", aggregate=FALSE) calcOutput("ValidPriceAgriculture", datasource="FAO") ## End(Not run)
## Not run: calcOutput("ValidPriceAgriculture", datasource="IMPACT3.2.2World_Price", aggregate=FALSE) calcOutput("ValidPriceAgriculture", datasource="FAO") ## End(Not run)
Returns future projections of biomass prices
calcValidPriceBioenergy()
calcValidPriceBioenergy()
list of magpie object with data and weight
Florian Humpenoeder
Validates MAgPIE GHG emission price input against SSP GHG emission price projections
calcValidPriceGHG(datasource = "SSPResults")
calcValidPriceGHG(datasource = "SSPResults")
datasource |
Currently available: |
Amsalu W. Yalew, Benjamin Leon Bodirsky, Florian Humpenoeder
## Not run: calcOutput("ValidPriceGHG") ## End(Not run)
## Not run: calcOutput("ValidPriceGHG") ## End(Not run)
provides global producer price index from FAO
calcValidPriceIndex( datasource = "FAO", value = "real", baseyear = "y2005", round = TRUE )
calcValidPriceIndex( datasource = "FAO", value = "real", baseyear = "y2005", round = TRUE )
datasource |
Options of the source of data: |
value |
|
baseyear |
Baseyear for normalizing of price index. |
round |
Rounding of price index to intiger numbers. Default |
List with a magpie object with global nominal and real price index.
Mishko Stevanovic
## Not run: a <- calcOutput("ValidPriceIndex", value = "real", aggregate = FALSE) ## End(Not run)
## Not run: a <- calcOutput("ValidPriceIndex", value = "real", aggregate = FALSE) ## End(Not run)
calculates the validation data for the share of inputs that go into processing processes, and the share of inputs that secondary products are composed of
calcValidProcessing( datasource = "FAO", detail = TRUE, nutrient = "dm", indicator = "primary_to_process" )
calcValidProcessing( datasource = "FAO", detail = TRUE, nutrient = "dm", indicator = "primary_to_process" )
datasource |
Datasource of validation data. |
detail |
if FALSE, only larger product categories are reported |
nutrient |
The nutrient in which the results shall be reported. |
indicator |
if "primary_to_process", returns the amount of primary product into processing. if "secondary_from_primary", gives primary into secondary. |
List of magpie objects with results on country level, weight on country level, unit and description.
David Chen, Benjamin Leon Bodirsky
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidProcessing", indicator = "secondary_from_primary") ## End(Not run)
## Not run: calcOutput("ValidProcessing", indicator = "secondary_from_primary") ## End(Not run)
calculates the validation data for production of agricultural products
calcValidProduction(datasource = "FAO", detail = TRUE, nutrient = "dm")
calcValidProduction(datasource = "FAO", detail = TRUE, nutrient = "dm")
datasource |
Datasource of validation data. |
detail |
if FALSE, only larger product categories are reported |
nutrient |
The nutrient in which the results shall be reported. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
calcFAOmassbalance
,
calcValidDemand
## Not run: calcOutput("ValidProduction") ## End(Not run)
## Not run: calcOutput("ValidProduction") ## End(Not run)
calculates the validation data for residues (biomass, field balance, demands)
calcValidResidues()
calcValidResidues()
List of magpie objects with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ValidResidues") ## End(Not run)
## Not run: calcOutput("ValidResidues") ## End(Not run)
calculates the validation data for MAgPIE rotation lengths in plantations
calcValidRotationLength(datasource = "FAO 2006")
calcValidRotationLength(datasource = "FAO 2006")
datasource |
Datasources for validation data |
List of magpie objects with results on country level, weight on country level, unit and description.
Abhijeet Mishra
## Not run: calcOutput("ValidRotationLength") ## End(Not run)
## Not run: calcOutput("ValidRotationLength") ## End(Not run)
Returns historical SDG1 INDICATOR_POVERTY IN USD05/cap/yr
calcValidSDG1(datasource = "James")
calcValidSDG1(datasource = "James")
datasource |
Currently only available for the "James" source |
List of magpie object with data and population
Edna J. Molina Bacca
Returns historical SDG12 Indicators_Sustainable Production and Consumption
calcValidSDG12(datasource = "FAO")
calcValidSDG12(datasource = "FAO")
datasource |
FAO |
List of magpie object with data and population
Edna J. Molina Bacca
Validates self-sufficiency ration
calcValidSelfsuff(datasource = "FAO", detail = TRUE)
calcValidSelfsuff(datasource = "FAO", detail = TRUE)
datasource |
Options of the source of data: |
detail |
Default is |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Mishko Stevanovic
## Not run: calcOutput("ValidSelfsuff") ## End(Not run)
## Not run: calcOutput("ValidSelfsuff") ## End(Not run)
calculates the validation data for the soil carbon densities (including weights for aggregation)
calcValidSOCDensity(datasource = "GSOC")
calcValidSOCDensity(datasource = "GSOC")
datasource |
Datasources for validation data |
List of magpie objects with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ValidSOCDensity") ## End(Not run)
## Not run: calcOutput("ValidSOCDensity") ## End(Not run)
calculates the validation data for the soil carbon pools
calcValidSOCStocks(datasource = "histSOCbudget", baseyear = 1995)
calcValidSOCStocks(datasource = "histSOCbudget", baseyear = 1995)
datasource |
Datasources for validation data, e.g. LPJ_IPCC2006, LPJmL_natural |
baseyear |
baseyear for calculating soil carbon stock change |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Kristine Karstens
calcFoodSupplyPast
,
calcValidLivestockShare
## Not run: calcOutput("ValidSOCStocks") ## End(Not run)
## Not run: calcOutput("ValidSOCStocks") ## End(Not run)
Convert SSPResults to reporting format
calcValidSSPResults()
calcValidSSPResults()
List of magpie objects with results on country level, weight on country level, unit and description.
Kristine Karstens
## Not run: calcOutput("ValidSSPResults") ## End(Not run)
## Not run: calcOutput("ValidSSPResults") ## End(Not run)
Returns historical land use intensity estimates (tau).
calcValidTau(datasource = "FAO2012")
calcValidTau(datasource = "FAO2012")
datasource |
Currently available: |
tau time series
Jan Philipp Dietrich
Calculates managed pastures Tau based on FAO yield trends for 1995.
calcValidTauPastr()
calcValidTauPastr()
List of magpie objects with results on country level, weight on country level, unit and description.
Marcos Alves
## Not run: calcOutput("ValidTauPastr") ## End(Not run)
## Not run: calcOutput("ValidTauPastr") ## End(Not run)
Returns historical timber demand in mio m3 per yr
calcValidTimber(datasource = "FAO")
calcValidTimber(datasource = "FAO")
datasource |
Currently only available for the "FAO" source |
List of magpie object with data and population
Abhijeet Mishra
total labor costs in crop and livestock production
calcValidTotalLaborCosts(datasource = "USDA", dataVersionILO = "Aug24")
calcValidTotalLaborCosts(datasource = "USDA", dataVersionILO = "Aug24")
datasource |
"USDA" (which uses FAO VoP and USDA cost shares) or "ILO" (which is based on ILO datasets and calibrated to the USDA/FAO approach, but includes costs for some countries without VoP data) or "GTAP" |
dataVersionILO |
"" for the oldest version, or "monthYear" (e.g. "Aug23") for a newer version |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidTotalLaborCosts", datasource = "USDA") ## End(Not run)
## Not run: calcOutput("ValidTotalLaborCosts", datasource = "USDA") ## End(Not run)
calculates the validation data for trade of agricultural products
calcValidTrade( datasource = "FAO", detail = TRUE, nutrient = "dm", net_trade = TRUE, equalized = TRUE )
calcValidTrade( datasource = "FAO", detail = TRUE, nutrient = "dm", net_trade = TRUE, equalized = TRUE )
datasource |
Datasource of validation data. |
detail |
if FALSE, only larger product categories are reported |
nutrient |
The nutrient in which the results shall be reported. |
net_trade |
Net trade flows or total trade |
equalized |
numbers changed so that global production meets global demand (in reality different because of time-delay between exports and imports) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky, Xiaoxi Wang, David M Chen
calcFAOmassbalance
,
calcValidDemand
## Not run: calcOutput("ValidTrade") ## End(Not run)
## Not run: calcOutput("ValidTrade") ## End(Not run)
wage index: hourly labor costs in crop+livestock production relative to a baseyear
calcValidWageDevelopment( datasource = "ILO_completed", baseYear = 2000, dataVersionILO = "Aug24" )
calcValidWageDevelopment( datasource = "ILO_completed", baseYear = 2000, dataVersionILO = "Aug24" )
datasource |
Available datasources are:
|
baseYear |
year relative to which the wage development should be calculated |
dataVersionILO |
"" for the oldest version, or "monthYear" (e.g. "Aug23") for a newer version |
List of magpie objects with results on country level, weight on country level, unit and description.
Debbora Leip
## Not run: calcOutput("ValidWageDevelopment", datasource = "ILO_completed") ## End(Not run)
## Not run: calcOutput("ValidWageDevelopment", datasource = "ILO_completed") ## End(Not run)
Returns historical and projected water withdrawal from different data sources
calcValidWaterUsage(datasource = "shiklomanov_2000")
calcValidWaterUsage(datasource = "shiklomanov_2000")
datasource |
Currently available:
|
list of magpie object, weight, unit, and description
Stephen Wirth, Anne Biewald, Felicitas Beier
Calculates a dataset of agricultural production out of the combined data of calcFAOharmonized(). Covers dry matter (DM) production. Also returns areas of individual crops from FAOSTAT. Total area can be lower or higher than arable land because of multicropping or fallow land. Returns yield as calculated from area area and production.
calcValidYield(datasource = "FAO", future = NULL)
calcValidYield(datasource = "FAO", future = NULL)
datasource |
Specify which datasource needs to be used. Currently only "FAO" and "calibratedLPJmL" is available. |
future |
if NULL no future values are returned (default). specify climate scenario (gcm:rcp), if future is needed |
List of magpie objects with results on country level, weight on country level, unit, Max.&Min. values alongwith description.
Abhijeet Mishra, Isabelle Weindl
calcFAOmassbalance
,
calcCroparea
## Not run: calcOutput("ValidYield") ## End(Not run)
## Not run: calcOutput("ValidYield") ## End(Not run)
Convert subtypes on ISO country level.
convertGasser(x)
convertGasser(x)
x |
MAgPIE object containing Gasser emissions data |
Convert Gasser Data
Historical LUC emission data
Abhijeet Mishra
Convert Global Map on Irrigated Area Data
Convert subtypes on ISO country level.
convertGMIA(x, subtype)
convertGMIA(x, subtype)
x |
MAgPIE object containing IrrigatedArea data on Country level |
subtype |
: No subtype needed |
Global Map on Irrigation data as MAgPIE object on country level Missing values are added as NA
Stephen Wirth
## Not run: a <- readSource("GlobalIrrigationMap", "all_data_national") a <- readSource ("GMIA", "aei_pct", convert = FALSE) a <- readSource ("GMIA", "aei_pct", convert = "correctonly") ## End(Not run)
## Not run: a <- readSource("GlobalIrrigationMap", "all_data_national") a <- readSource ("GMIA", "aei_pct", convert = FALSE) a <- readSource ("GMIA", "aei_pct", convert = "correctonly") ## End(Not run)
Convert subtypes on ISO country level.
convertHID(x, subtype)
convertHID(x, subtype)
x |
MAgPIE object containing IrrigatedArea data on Country level |
subtype |
: No subtype needed |
Convert Historic Irrigation Data
Irrigated Area data as MAgPIE object on country level Missing values are added as NA
Stephen Wirth
## Not run: a <- readSource("HID", "national_1900_2005") ## End(Not run)
## Not run: a <- readSource("HID", "national_1900_2005") ## End(Not run)
converts units and dimensions of average annual baseline water-related investment cost data from readIMPACTIrrigInvCosts
convertIMPACTIrrigInvCosts(x)
convertIMPACTIrrigInvCosts(x)
x |
MAgPIE object containing irrigation investment cost data on region level |
magpie object containing average annual baseline water-related investment cost on country-level (in million 2017 USD per year)
Felicitas Beier
## Not run: a <- readSource("IMPACTIrrigInvCosts", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("IMPACTIrrigInvCosts", convert = TRUE) ## End(Not run)
Agricultural R&D investment data read from https://www.nature.com/news/agricultural-rd-is-on-the-move-1.20571 3 tables are read in: AgRD_Pardey is public Ag expenditure in 1960 and 2011, extracted from the interactive figure in the article that has more complete countries agGERD and agPERD are total and public expenditures respectively, for less countries but more years
convertPardeyAgRD(x)
convertPardeyAgRD(x)
x |
MAgPIE object containing PardeyRD data |
magpie object containing expenditure in Ag R&D, 2009 USD PPP
David Chen
## Not run: a <- convertSource("PardeyAgRD") ## End(Not run)
## Not run: a <- convertSource("PardeyAgRD") ## End(Not run)
Convert data on agricultural water use Convert subtypes on ISO country level.
convertWaterUsage(x, subtype)
convertWaterUsage(x, subtype)
x |
MAgPIE object containing IrrigatedArea data on Country level |
subtype |
: No subtype needed |
Data on water use as MAgPIE object on country level Missing values are added as NA
Stephen Wirth
## Not run: a <- readSource("WaterUsage", "aquastat_2008_12") ## End(Not run)
## Not run: a <- readSource("WaterUsage", "aquastat_2008_12") ## End(Not run)
Correct Irrigated Area
Correct Irrigated Area to 0.5 Degree x 0.5 Degree Grid. Change resolution from 5 arcmin to 0.5 Degree by aggregating. Values in ha are summed up, Values in percent are calculated using mean.
correctGMIA(x, subtype)
correctGMIA(x, subtype)
x |
MAgPIE object containing Global Map on Irrigaiton data data at 0.5 Degree resolution |
subtype |
: subtypes are the same as in readGMIA |
Global Map on Irrigation data as MAgPIE object at a 0.5 Degree resolution.
Stephen Wirth
## Not run: a <- readSource("IrrigatedArea") ## End(Not run)
## Not run: a <- readSource("IrrigatedArea") ## End(Not run)
Correct Irrigated Area
Correct Irrigated Area to 0.5 Degree x 0.5 Degree Grid. Change resolution from 5 arcmin to 0.5 Degree by aggregating. Values in ha are summed up, Values in percent are calculated using mean.
correctHID(x, subtype)
correctHID(x, subtype)
x |
MAgPIE object containing Global Map on Irrigaiton data data at 0.5 Degree resolution |
subtype |
: subtypes are the same as in readGMIA |
Global Map on Irrigation data as MAgPIE object at a 0.5 Degree resolution.
Stephen Wirth
## Not run: a <- readSource("IrrigatedArea") ## End(Not run)
## Not run: a <- readSource("IrrigatedArea") ## End(Not run)
Correct data from Soil Carbon Debt Paper (https://github.com/whrc/Soil-Carbon-Debt/)
correctSoilCarbonDebt(x)
correctSoilCarbonDebt(x)
x |
magpie object provided by the read function |
List of magpie objects
Kristine Karstens
## Not run: readSource("SoilCarbonDebt", convert="onlycorrect") ## End(Not run)
## Not run: readSource("SoilCarbonDebt", convert="onlycorrect") ## End(Not run)
download IPCC AR6 Summary for Policymakers Figure 1, global surface temperature change relative to 1850-1900 from observations and CMIP6 models (human and natural forcings simulations)
downloadAR6SPMFig1()
downloadAR6SPMFig1()
Metadata on downloaded dataset
Michael Crawford
https://www.ipcc.ch/report/ar6/wg1/downloads/report/IPCC_AR6_WGI_SPM.pdf
## Not run: downloadSource("AR6SPMFig1") ## End(Not run)
## Not run: downloadSource("AR6SPMFig1") ## End(Not run)
Download historical and projected BII dataset from Phillips et al. 2021 (https://doi.org/10.5519/he1eqmg1).
downloadBII()
downloadBII()
Metadata on downloaded BII data
Michael Crawford
https://data.nhm.ac.uk/dataset/bii-bte
## Not run: downloadSource("BII") ## End(Not run)
## Not run: downloadSource("BII") ## End(Not run)
Download near-surface air temperature projection from CMIP6 for the following scenarios: SSP1-1.9, SSP1-2.6, SSP2-4.5, SSP3-7.0, SSP4-3.4, SSP4-6.0, SSP5-8.5, SSP5-3.4-over
downloadCMIP6()
downloadCMIP6()
Metadata on downloaded CMIP near-surface air temperature data
Michael Crawford
https://cmip6.science.unimelb.edu.au/
## Not run: downloadSource("CMIP6") ## End(Not run)
## Not run: downloadSource("CMIP6") ## End(Not run)
download the most current Global Carbon Budget dataset
downloadGlobalCarbonBudget()
downloadGlobalCarbonBudget()
Metadata from the Global Carbon Budget 2023 dataset
Michael Crawford
## Not run: downloadSource("GlobalCarbonBudget") ## End(Not run)
## Not run: downloadSource("GlobalCarbonBudget") ## End(Not run)
Download data from Soil Carbon Debt Paper (https://github.com/whrc/Soil-Carbon-Debt/)
downloadSoilCarbonDebt()
downloadSoilCarbonDebt()
Meta information on downloaded data
Kristine Karstens
## Not run: readSource("SoilCarbonDebt", subtype = "SOCS_2010") ## End(Not run)
## Not run: readSource("SoilCarbonDebt", subtype = "SOCS_2010") ## End(Not run)
retrieves validation data from mrcommons for the ENGAGE project
fullENGAGE()
fullENGAGE()
validation data in IAMC reporting format
Florian Humpenoeder
creates historical outputs to be used by LPJml or other models that require gridded inputs
fullMADRATTOLPJML()
fullMADRATTOLPJML()
No return; the function writes a number of netcdf files into the output folder of MADRAT
Benjamin Leon Bodirsky
## Not run: fullMADRATTOLPJML() ## End(Not run)
## Not run: fullMADRATTOLPJML() ## End(Not run)
Function that produces the complete validation data set used for evaluation of MAgPIE outputs
fullVALIDATION(rev = 0.1)
fullVALIDATION(rev = 0.1)
rev |
data revision which should be used as input. Will be converted to
|
Jan Philipp Dietrich, Benjamin Leon Bodirsky
readSource
,getCalculations
,calcOutput
## Not run: retrieveData("Validation") ## End(Not run)
## Not run: retrieveData("Validation") ## End(Not run)
download IPCC AR6 Summary for Policymakers Fig 1, global surface temperature change relative to 1850-1900 from observations. This dataset also includes the CMIP6 models (human and natural forcings simulations), but are so far excluded here.
readAR6SPMFig1()
readAR6SPMFig1()
magclass object
Michael Crawford
https://www.ipcc.ch/report/ar6/wg1/downloads/report/IPCC_AR6_WGI_SPM.pdf
## Not run: readSource("AR6SPMFig1") ## End(Not run)
## Not run: readSource("AR6SPMFig1") ## End(Not run)
Read and select scenarios and variables from the "The Biodiversity Intactness Index - country, region and global-level summaries for the year 1970 to 2050 under various scenarios" dataset. Default behavior is to return BII for the historical period.
readBII(subtype = "historical", subset = "bii")
readBII(subtype = "historical", subset = "bii")
subtype |
scenario selection, with potential values: "historical", "ssp1rcp2p6image", "ssp2rcp4p5messageglobiom", "ssp3rcp7p0aim", "ssp4rcp6p0gcam", "ssp5rcp8p5remindmagpie". Lists are accepted. |
subset |
variable selection, with potential values: "bii", "crops", "highintensityag", "hpd", "pastureland", "qualitynatural", "urbanextent". Lists are accepted. |
magclass object containing the desired subtypes and subsets
Michael Crawford
https://data.nhm.ac.uk/dataset/bii-bte
## Not run: readSource("BII") ## End(Not run)
## Not run: readSource("BII") ## End(Not run)
Read near-surface air temperature projection from CMIP6 for the following scenarios: SSP1-1.9, SSP1-2.6, SSP2-4.5, SSP3-7.0, SSP4-3.4, SSP4-6.0, SSP5-8.5, SSP5-3.4-over
readCMIP6()
readCMIP6()
a magclass object
Michael Crawford
https://cmip6.science.unimelb.edu.au/
## Not run: readSource("CMIP6") ## End(Not run)
## Not run: readSource("CMIP6") ## End(Not run)
Read historic land-use change CO2 emissions
readEmisLucGlo(subtype = NULL)
readEmisLucGlo(subtype = NULL)
subtype |
Available subtypes are:
|
magpie object containing data land-use change CO2 emissions
Florian Humpenoeder
## Not run: a <- readSource("EmisLucGlo",subtype="Canadell_2007") a <- readSource("EmisLucGlo",subtype="Friedlingstein_2010") ## End(Not run) #'@importFrom reshape2 dcast
## Not run: a <- readSource("EmisLucGlo",subtype="Canadell_2007") a <- readSource("EmisLucGlo",subtype="Friedlingstein_2010") ## End(Not run) #'@importFrom reshape2 dcast
Read Rotation lengths reported by Global planted forests thematic study: Results and analysis (2006)
readFAOrotation(subtype = "FAO")
readFAOrotation(subtype = "FAO")
subtype |
subtype - only FAO supported |
magpie object containing rotation length data
Abhijeet Mishra
## Not run: a <- readSource("FAOrotation") ## End(Not run)
## Not run: a <- readSource("FAOrotation") ## End(Not run)
Read historic land-use change CARBON emissions
readGasser(subtype = "bookkeeping")
readGasser(subtype = "bookkeeping")
subtype |
subtype |
magpie object containing data land-use change CARBON emissions
Abhijeet Mishra
## Not run: a <- readSource("Gasser") ## End(Not run)
## Not run: a <- readSource("Gasser") ## End(Not run)
read the Global Carbon Budget, selecting the models GCB, BLUE, H&C2023, OSCAR and their sub-components Net, Deforestation, Forest regrowth, Other transitions, Wood harvest and other forest management
readGlobalCarbonBudget()
readGlobalCarbonBudget()
a magpie object in Mt CO2 per year
Michael Crawford
## Not run: readSource("GlobalCarbonBudget") ## End(Not run)
## Not run: readSource("GlobalCarbonBudget") ## End(Not run)
Read Global Irrigation Map
Read the Data from Siebert et.al on Irrigated Areas for each Country. Data contains total valuesas well as values from groundwater, surface water and non convential water sources for the following Categories:
Area equipped for Irrigation (AEI)
Area acutally irrigated (AAI)
Consumption Irrigatoin Water use (ICU)
The following Data is also available spatialy explicit with a resolution of 5 arcmin:
AEI in Percent
AEI in Ha
AAI as percent of AEI
AEI from groundwater sources as percent of total AEI
AEI from surface water sources as percent of total AEI
AEI from non conventional sources as percent of total AEI
There also exists a correct function to aggregate the data to 0.5 degree resolution, set convert="correctonly" to run.
readGMIA(subtype = NULL)
readGMIA(subtype = NULL)
subtype |
: Available subtypes are:
|
magpie object of the Irrigated Area data
Stephen Wirth
## Not run: a <- readSource("GlobalIrrigationMap", "all_data_national") a <- readSource ("GMIA", "aei_pct", convert = FALSE) a <- readSource ("GMIA", "aei_pct", convert = "correctonly") ## End(Not run)
## Not run: a <- readSource("GlobalIrrigationMap", "all_data_national") a <- readSource ("GMIA", "aei_pct", convert = FALSE) a <- readSource ("GMIA", "aei_pct", convert = "correctonly") ## End(Not run)
This function reads the raw GSOC data (available at http://54.229.242.119/GSOCmap/) or if available the preprocessed raster layers.
readGSOC()
readGSOC()
magpie object in cellular resolution
Kristine Karstens
## Not run: readSource("GSOC") ## End(Not run)
## Not run: readSource("GSOC") ## End(Not run)
Read Historic Irrigation Data
Read the Data from Siebert et.al on Historic Irrigation for each Country. Data contains Area equiped for Irrigation (AEI) from 1900 to 2005 in ten or five year timesteps
The Data is also available spatialy explicit with a resolution of 5 arcmin:
readHID(subtype = NULL)
readHID(subtype = NULL)
subtype |
: Available subtypes are:
|
Further information:
S. Siebert, M. Kummu, M. Porkka, P. D??ll, N. Ramankutty, and B.R. Scanlon. 2015. A global data set of the extent of irrigated land from 1900 to 2005. Hydrology and Earth System Sciences. Vol. 19. p. 1521-1545.
K. K. Goldwijk, A. Beusen, G. van Drecht, and M. de Vos. 2011. The HYDE 3.1 spatially explicit database of human-induced global land-use change over the past 12,000 years. Global Ecology and Biogeography. Vol. 20. p. 73-86
magpie object of the Irrigated Area data
Stephen Wirth
## Not run: a <- readSource("HID", "national_1900_2005") ## End(Not run)
## Not run: a <- readSource("HID", "national_1900_2005") ## End(Not run)
Average annual baseline water-related investment cost data (2016-2030) read from Rosegrant et al. (2017) "Quantitative Foresight Modeling to Inform the CGIAR Research Portfolio"
readIMPACTIrrigInvCosts()
readIMPACTIrrigInvCosts()
magpie object containing average annual baseline water-related investment cost on IMPACT-region level (in billion 2000 USD per year)
Felicitas Beier
## Not run: a <- readSource("IMPACTIrrigInvCosts", convert = TRUE) ## End(Not run)
## Not run: a <- readSource("IMPACTIrrigInvCosts", convert = TRUE) ## End(Not run)
Agricultural R&D investment data read from https://www.nature.com/news/agricultural-rd-is-on-the-move-1.20571 3 tables are read in: AgRD_Pardey is public Ag expenditure in 1960 and 2011, extracted from the interactive figure in the article that has more complete countries agGERD and agPERD are total and public expenditures respectively, for less countries but more years
readPardeyAgRD()
readPardeyAgRD()
magpie object containing expenditure in Ag R&D, 2009 USD PPP
David Chen
## Not run: a <- readSource("PardeyAgRD") ## End(Not run)
## Not run: a <- readSource("PardeyAgRD") ## End(Not run)
Read-in world producer price index as magclass object
readProdPrIndex()
readProdPrIndex()
magpie object of the world producer index from FAO
Mishko Stevanovic
## Not run: a <- readSource(type="ProdPrIndex")
## Not run: a <- readSource(type="ProdPrIndex")
Read data from Soil Carbon Debt Paper (https://github.com/whrc/Soil-Carbon-Debt/)
readSoilCarbonDebt()
readSoilCarbonDebt()
List of magpie objects with results on cellular level, weight, unit and description.
Kristine Karstens
## Not run: readSource("SoilCarbonDebt", subtype = "SOCS_2010") ## End(Not run)
## Not run: readSource("SoilCarbonDebt", subtype = "SOCS_2010") ## End(Not run)
Read Historic and projcted Agricultural water consumption
readWaterUsage(subtype = NULL)
readWaterUsage(subtype = NULL)
subtype |
Available subtypes are:
|
magpie object containing data on water usage
Stephen Wirth
## Not run: a <- readSource("foley_2011") a <- readSource("aquastat_2008_12") ## End(Not run) #' @importFrom reshape2 dcast
## Not run: a <- readSource("foley_2011") a <- readSource("aquastat_2008_12") ## End(Not run) #' @importFrom reshape2 dcast
read World Bank poverty percentage of population under poverty line, and gini coef data No download function from WDI API yet, as the older versions (2011PPP as opposed to 2017PPP online) are currently most relevant for validating Soergel poverty model results and must be downloaded manually
readWBPoverty(subtype = "320PovertyLine")
readWBPoverty(subtype = "320PovertyLine")
subtype |
either "Gini", or the three poverty line thresholds: "190PovertyLine", "320PovertyLine", "550PovertyLine" |
magclass object
David M Chen
## Not run: readSource("readWBPoverty", subtype = "320PovertyLine") ## End(Not run)
## Not run: readSource("readWBPoverty", subtype = "320PovertyLine") ## End(Not run)
This function reads the preprocessed data from WISE_30sec
readWISE()
readWISE()
magpie object in cellular resolution
Kristine Karstens
## Not run: readSource("WISE")
## Not run: readSource("WISE")