Title: | Analysis and Projection of Municipal Solid Waste |
---|---|
Description: | Reads in waste data from What a Waste 2.0 and uses brms package to create future regressions based on GDP. |
Authors: | David Meng-Chuen Chen [aut, cre] |
Maintainer: | David Meng-Chuen Chen <[email protected]> |
License: | LGPL-3 |
Version: | 0.4.4 |
Built: | 2024-11-02 04:44:19 UTC |
Source: | https://github.com/pik-piam/mrwaste |
calculates IPCC Climate Regions (IPCC2006 ch.4.3) based on t, ppt, pet from LPJml. elevation dimension not included for tropical montane class
calcIPCCClimateRegions( landusetypes = "all", cellular = FALSE, yearly = FALSE, convert = TRUE )
calcIPCCClimateRegions( landusetypes = "all", cellular = FALSE, yearly = FALSE, convert = TRUE )
landusetypes |
all or only one (to save computation memory) |
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 matrix of fraction of each climate region by country or cell
David Chen
## Not run: calcOutput("IPCCClimateRegions") ## End(Not run)
## Not run: calcOutput("IPCCClimateRegions") ## End(Not run)
non-linear optimization distributes waste by composition type to disposal type. returns magpie object, share of total disposal
calcNlWasteDistrib()
calcNlWasteDistrib()
Magpie object of waste types to waste distribution, share
David Chen
## Not run: a <- calcOutput(type="NlWasteDistrib")
## Not run: a <- calcOutput(type="NlWasteDistrib")
Calculates amount of ocean plastic based on calibrated waste projections, for unmanaged waste: all dumps, landfills and dumps from develolping countries, and 2 Coastal pop from Janbeck et al. 2016 buffer, as constant percentage future pop
calcOceanPlastic(filtration = 0.4)
calcOceanPlastic(filtration = 0.4)
filtration |
amount of plastic NOT captured by filtration, janbeck uses 0.15, 0.25, 0.4, but cites a source at .6 |
million kg of plastic waste
David Chen
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 GHG emissions from solid waste disposal treatments, input from calcWasteProjections, based on IPCC 2006 SWDS waste model and reporting calculations, in million t CO2eq
calcWasteEmissions(treatment = "swds")
calcWasteEmissions(treatment = "swds")
treatment |
type of waste treatment |
Magpie object of emissions from waste treatments
David Chen
## Not run: a <- calcOutput(type="WasteEmissions")
## Not run: a <- calcOutput(type="WasteEmissions")
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) wet weight |
SSP |
SSP scenario |
magpie object of waste projections by treatment and type
David Chen
Calculates shares of waste treatments by type based on Dirichlet regression on gdp using WhataWaste2.0 data note that each type is independent - treatments for each type all sum to 1
calcWasteTrt(weight = "pop", SSP = "SSP2")
calcWasteTrt(weight = "pop", SSP = "SSP2")
weight |
population weights or "none" |
SSP |
SSP scenario |
magpie object of waste treatment by type share
David Chen
Calculates shares of waste types based on Dirichlet regression on gdp using WhataWaste2.0 data
calcWasteType(weight = "pop", SSP = "SSP2")
calcWasteType(weight = "pop", SSP = "SSP2")
weight |
population weights or other weights or NULL |
SSP |
SSP scenario |
magpie object of waste shares
David Chen
Fills and completes Janbeck 2011 coastal population data for all years based on constant percentage of coastal pop for future years
convertCoastalPop()
convertCoastalPop()
pop in millions
David Chen
Convert landfill CH4 capture data
convertLandfillCH4Capture(x)
convertLandfillCH4Capture(x)
x |
MAgPIE object containing original values |
DemandModel data as MAgPIE object aggregated to country level
David Chen
Converts readWaste output to complete MAgPIE object containing Waste data on country level (kg/cap)
convertWaste(subtype)
convertWaste(subtype)
subtype |
type of waste data, generation composition treatment or special |
Waste data as complete MAgPIE object on country level
David Chen
Read-in a xlsx file as magclass object kg/cap
readCoastalPop()
readCoastalPop()
magpie object of coastal population by country, 50km buffer around coastline, keeping percentage same in future
David Chen
## Not run: a <- readSource(type="CoastalPop")
## Not run: a <- readSource(type="CoastalPop")
reads percentage of ch4 from landfills that is captured, from World Bank CURB Toolv2.1
readLandfillCH4Capture()
readLandfillCH4Capture()
Magpie object with results on global level.
David Chen
Read-in a xlsx file as magclass object kg/cap
readWaste(subtype)
readWaste(subtype)
subtype |
data subtype. "Generation" "Composition" and "Treatment" in kg/capita |
magpie object of the WhataWaste data with Generation, Disposal, or Composition
David Chen
## Not run: a <- readSource(type="Waste",subtype="Generation")
## Not run: a <- readSource(type="Waste",subtype="Generation")