Title: | madrat data preparation for validation purposes of nitrogen budgets |
---|---|
Description: | Package contains routines to prepare data for validation exercises. |
Authors: | Benjamin Leon Bodirsky [aut, cre] |
Maintainer: | Benjamin Leon Bodirsky <[email protected]> |
License: | LGPL-3 | file LICENSE |
Version: | 1.6.6 |
Built: | 2024-11-06 03:59:30 UTC |
Source: | https://github.com/pik-piam/mrvalidnitrogen |
Provides FertP data for Phosphor.No changes to the content have been done.
calcFertP()
calcFertP()
Fertilizer data for Phosphor and corresonding weights as a list of two MAgPIE objects
Lavinia Baumstark
## Not run: calcOutput("FertP") ## End(Not run)
## Not run: calcOutput("FertP") ## End(Not run)
Calculates Nitrogen Budgets for the livestock sector on country levels.
calcNitrogenBudgetLivestock()
calcNitrogenBudgetLivestock()
List of magpie object with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NitrogenBudgetLivestock") ## End(Not run)
## Not run: calcOutput("NitrogenBudgetLivestock") ## End(Not run)
Fooduse before processing, after processing and food processing loss
calcNutrientBudgetFoodProcessing()
calcNutrientBudgetFoodProcessing()
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("NutrientBudgetFoodProcessing") ## End(Not run)
## Not run: calcOutput("NutrientBudgetFoodProcessing") ## End(Not run)
Estimate waste flows of nutrients from differents sources, including Household waste, slaughterwaste and Processingwaste
calcNutrientWasteBudget(nutrient = "nr")
calcNutrientWasteBudget(nutrient = "nr")
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
## Not run: calcOutput("NutrientWasteBudget") ## End(Not run)
## Not run: calcOutput("NutrientWasteBudget") ## End(Not run)
Validation Script for Atmospheric nitrogen deposition
calcValidNitrogenAtmosphericDeposition(datasource = "CEDS")
calcValidNitrogenAtmosphericDeposition(datasource = "CEDS")
datasource |
Bodirsky for own calculations based on Dentener et al, CEDS et al and self-calcualted emissions |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNitrogenAtmosphericDeposition") ## End(Not run)
## Not run: calcOutput("ValidNitrogenAtmosphericDeposition") ## End(Not run)
Validation Script for Nitrogen Budgets on Non-Agricultural Land
calcValidNitrogenBudgetNonagland(datasource = "Bodirsky")
calcValidNitrogenBudgetNonagland(datasource = "Bodirsky")
datasource |
Bodirsky for own calculations |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNitrogenBudgetNonagland") ## End(Not run)
## Not run: calcOutput("ValidNitrogenBudgetNonagland") ## End(Not run)
Validation Script for Nitrogen Budgets for Oceans
calcValidNitrogenBudgetOcean(datasource = "Bodirsky")
calcValidNitrogenBudgetOcean(datasource = "Bodirsky")
datasource |
Bodirsky for own calculations |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNitrogenBudgetOcean") ## End(Not run)
## Not run: calcOutput("ValidNitrogenBudgetOcean") ## End(Not run)
Validation Script for Nitrogen Budgets on Croplands
calcValidNitrogenPollution(datasource = "Nsurplus")
calcValidNitrogenPollution(datasource = "Nsurplus")
datasource |
Bodirsky for own calculations, 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("ValidNitrogenPollution") ## End(Not run)
## Not run: calcOutput("ValidNitrogenPollution") ## End(Not run)
Validation Script for Nitrogen Budgets for Food Processing (processing from fooduse to food, not processing from one product to another)
calcValidNutrientBudgetFoodProcessing( datasource = "Bodirsky", nutrient = "nr", detail = FALSE )
calcValidNutrientBudgetFoodProcessing( datasource = "Bodirsky", nutrient = "nr", detail = FALSE )
datasource |
Bodirsky for own calculations |
nutrient |
The nutrient in which the results shall be reported. |
detail |
shall the funciton reportinghelper provide detailed commodities or only commodity groups? |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNutrientBudgetFoodProcessing") ## End(Not run)
## Not run: calcOutput("ValidNutrientBudgetFoodProcessing") ## End(Not run)
Validation Script for Nitrogen Budgets for Livestock production
calcValidNutrientBudgetFoodWasteAndSewage( datasource = "Bodirsky", nutrient = "nr" )
calcValidNutrientBudgetFoodWasteAndSewage( datasource = "Bodirsky", nutrient = "nr" )
datasource |
Bodirsky for own calculations |
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
## Not run: calcOutput("ValidNutrientBudgetFoodWasteAndSewage") ## End(Not run)
## Not run: calcOutput("ValidNutrientBudgetFoodWasteAndSewage") ## End(Not run)
Validation Script for Nitrogen Budgets for Livestock production
calcValidNutrientBudgetLivestock(datasource = "Bodirsky", nutrient = "nr")
calcValidNutrientBudgetLivestock(datasource = "Bodirsky", nutrient = "nr")
datasource |
Bodirsky for own calculations |
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
## Not run: calcOutput("ValidNutrientBudgetLivestock") ## End(Not run)
## Not run: calcOutput("ValidNutrientBudgetLivestock") ## End(Not run)
Validation Script for Nitrogen and Phosphorus Budgets in Sewage Systems
calcValidNutrientBudgetSewage(datasource = "Bodirsky", nutrient = "nr")
calcValidNutrientBudgetSewage(datasource = "Bodirsky", nutrient = "nr")
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. |
nutrient |
nitrogen (nr) or phosphorus (p) |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidNutrientBudgetSewage") ## End(Not run)
## Not run: calcOutput("ValidNutrientBudgetSewage") ## End(Not run)
Report waste flows of nutrients from differents sources, including Household waste, slaughterwaste and Processingwaste
calcValidNutrientWasteBudget(datasource = "Bodirsky", nutrient = "nr")
calcValidNutrientWasteBudget(datasource = "Bodirsky", nutrient = "nr")
datasource |
Bodirsky for own calculations |
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
## Not run: calcOutput("ValidNutrientWasteBudget") ## End(Not run)
## Not run: calcOutput("ValidNutrientWasteBudget") ## End(Not run)
Provides comparison for the planetary boundary indicators for nitrogen
calcValidPlanetaryBoundariesNitrogen(datasource = "Rockstroem2009")
calcValidPlanetaryBoundariesNitrogen(datasource = "Rockstroem2009")
datasource |
datasource to compare to. Historical trajectories of the indicators, or the planetary boundary by the Rockstroem Paper 2009 or the Steffen et al paper 2015. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
## Not run: calcOutput("ValidPlanetaryBoundariesNitrogen",datasource="Rockstroem2009",aggregate=FALSE) ## End(Not run)
## Not run: calcOutput("ValidPlanetaryBoundariesNitrogen",datasource="Rockstroem2009",aggregate=FALSE) ## End(Not run)
Validation Script for Soil Nitrogen Uptake Efficiency (see Bodirsky 2012 for a definition)
calcValidSNUpE(datasource = "Bodirsky")
calcValidSNUpE(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. |
List of magpie objects with results on country level, weight on country level, unit and description.
Benjamin Leon Bodirsky
rule-based distribution of waste by composition type to disposal type. returns list of magpie object, share of total disposal
calcWasteDistrib()
calcWasteDistrib()
Magpie object of waste types to waste distribution, percentage
David Chen
## Not run: a <- calcOutput(type="WasteDistrib")
## Not run: a <- calcOutput(type="WasteDistrib")
Calculates waste generation based on WhataWaste2.0 data, based on gdp regressions and calibrated to real data multiplicatively
calcWasteGen(pc = TRUE, form = "LogLog")
calcWasteGen(pc = TRUE, form = "LogLog")
pc |
per capita (kg/capita) or total (Mt) |
form |
Functional form of predicted waste generation |
magpie object of total waste generation
David Chen
Calculates all waste projections, multiplies shares properly by pc or total generation quantities
calcWasteProj(pc = TRUE, SSP = "SSP2")
calcWasteProj(pc = TRUE, SSP = "SSP2")
pc |
per capita (kg/capita) or total (Mt) |
SSP |
SSP scenario |
magpie object of waste projections by treatment and type #' @importFrom tidyverse spread select inner_join filter #' @importFrom tidyr unite #' @importFrom DirichletReg DR_data DirichReg predict
David Chen
creates historical outputs of nitrogen budgets
fullVALIDHISTORICALNITROGENBUDGETS(aggregate = "glo")
fullVALIDHISTORICALNITROGENBUDGETS(aggregate = "glo")
aggregate |
setting for aggregate, e.g.: TRUE, FALSE, "glo" |
magpie object
Benjamin Leon Bodirsky
## Not run: fullVALIDHISTORICALNITROGENBUDGETS() ## End(Not run)
## Not run: fullVALIDHISTORICALNITROGENBUDGETS() ## End(Not run)
Function to read the the global Ammonia Production from USGS Website https://minerals.usgs.gov/minerals/pubs/commodity/nitrogen/
readAmmoniaProductionUSGS()
readAmmoniaProductionUSGS()
A MAgPIE-Object containing global Ammonia production from the USGS
## Not run: a <- readSouce("AmmoniaProductionUSGS") ## End(Not run)
## Not run: a <- readSouce("AmmoniaProductionUSGS") ## End(Not run)
Reads a dataset containing values for global fire emissions. Source: van der Werf G. R., Randerson J. T., Giglio L., Collatz G. J., Mu M., Kasibhatla P. S., Morton D. C., DeFries R. S., Jin Y., van Leeuwen T. T.: Global fire emissions and the contribution of deforestation, savanna, forest, agricultural, and peat fires (1997-2009)
readVanDerWerf2010()
readVanDerWerf2010()
A MAgPIE object containing emissionfactors per burned dry matter for different causes.
Stephen Wirth
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)
## Not run: x <- readSource("VanDerWerf2010") ## End(Not run)