Skip to content

Commit

Permalink
Fix in overview csvs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sampottinger committed Oct 21, 2024
1 parent d139df1 commit 77621ca
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 78 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ language/*.jar
test/qunit.css
test/qunit.min.js
third_party
csv_validation

*.pyc

Expand All @@ -19,6 +20,7 @@ preview.html
test/harness.html

img/line.png
img/line.svg
img/line.pdf
img/waste.png
img/consumption.png
Expand Down
129 changes: 51 additions & 78 deletions spec/overview.csvs
Original file line number Diff line number Diff line change
@@ -1,100 +1,73 @@
version 1.0
@totalColumns 27

/**
* Archived model outputs as point estimates under different scenarios:
*
* - banPsPackaging: The result of having banned polystyrene packaging.
* - banSingleUse: The result of having reduced single use packaging by 90%.
* - capVirgin: The result of having capped virgin plastic production to 2020 business as ususal levels.
* - minimumRecycledContent: The result of a 30% minimum recycled content mandate for new products.
* - minimumRecyclingRate: The result of a 30% minimum recycling collection rate mandate.
* - recyclingInvestment: The result of 100B USD investment in recycling collection and infrastructure.
* - reducedAdditives: The result of 60% reduction in additives.
* - taxVirigin: The result of a low consumption tax (see tool for more details).
* - wasteInvestment: The result of 50B USD investment in non-recycling waste management including incineration and landfill.
* - businessAsUsual: No interventions.
* - selectPackage: Four policy package presented in Pottinger et al.
* - highAmbition: High ambition package discussed at https://global-plastics-policy-tool.org.
* - lowAmbition: Low ambition package discussed at https://global-plastics-policy-tool.org.
*
* Note that megatons refers to million metric tons. Data available for download at DOI 10.5281/zenodo.12615011.
**/

// Machine readable key descirinb a scenario with, if appropriate, year disambiguation.
version 1.2
@totalColumns 26
/*
Archived model outputs as point estimates under different scenarios:

- banPsPackaging: The result of having banned polystyrene packaging.
- banSingleUse: The result of having reduced single use packaging by 90%.
- capVirgin: The result of having capped virgin plastic production to 2020 business as ususal levels.
- minimumRecycledContent: The result of a 30% minimum recycled content mandate for new products.
- minimumRecyclingRate: The result of a 30% minimum recycling collection rate mandate.
- recyclingInvestment: The result of 100B USD investment in recycling collection and infrastructure.
- reducedAdditives: The result of 60% reduction in additives.
- taxVirigin: The result of a low consumption tax (see tool for more details).
- wasteInvestment: The result of 50B USD investment in non-recycling waste management including incineration and landfill.
- businessAsUsual: No interventions.
- selectPackage: Four policy package presented in Pottinger et al.
- highAmbition: High ambition package discussed at https://global-plastics-policy-tool.org.
- lowAmbition: Low ambition package discussed at https://global-plastics-policy-tool.org.

Note that megatons refers to million metric tons. Data available for download at DOI 10.5281/zenodo.12615011. In censuring specification ompliance, very small negative (negligable) values are rounded to zero for convenience. This very negative values may arise due to numerical precision.
*/
scenarioKey: regex("^[0-9a-zA-Z]+$")

// Human readable free-text string describing the scenario represented in the row.
// Machine readable key descirinb a scenario with, if appropriate, year disambiguation.
scenarioDescription: regex("^[^,]+$")

// Numeric year for which outputs are provided.
// Human readable free-text string describing the scenario represented in the row.
year: range(1900, 3000)

// Machine readable key describing the geographic region for which results are presented in the row.
// Numeric year for which outputs are provided.
regionKey: regex("^[0-9a-zA-Z]+$")

// Human readable free-text string describing the geographic region for which results are presented in the row.
// Machine readable key describing the geographic region for which results are presented in the row.
region: regex("^[^,]+$")

// Boolean value where 0 is false and 1 is true indicating if the row describes results for the entire globe.
// Human readable free-text string describing the geographic region for which results are presented in the row.
isGlobal: range(0, 1)

// Total metric megatons of plastic consumption across all sectors in the year presented within the specified region.
// Boolean value where 0 is false and 1 is true indicating if the row describes results for the entire globe.
totalConsumptionMt: range(0, *)

// Total metric megatons of plastic waste (plastic at end of life) across all sectors in the year presented within the specified region.
// Total metric megatons of plastic consumption across all sectors in the year presented within the specified region.
totalWasteMt: range(0, *)

// Total metric megatons of plastic consumption in the agricultural sector in the year presented within the specified region.
// Total metric megatons of plastic waste (plastic at end of life) across all sectors in the year presented within the specified region.
consumptionAgricultureMt: range(0, *)

// Total metric megatons of plastic consumption in the construction sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the agricultural sector in the year presented within the specified region.
consumptionConstructionMt: range(0, *)

// Total metric megatons of plastic consumption in the electronic sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the construction sector in the year presented within the specified region.
consumptionElectronicMt: range(0, *)

// Total metric megatons of plastic consumption in the household, leisure, and sports sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the electronic sector in the year presented within the specified region.
consumptionHouseholdLeisureSportsMt: range(0, *)

// Total metric megatons of plastic consumption in the packaging sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the household, leisure, and sports sector in the year presented within the specified region.
consumptionPackagingMt: range(0, *)

// Total metric megatons of plastic consumption in the transportation sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the packaging sector in the year presented within the specified region.
consumptionTransportationMt: range(0, *)

// Total metric megatons of plastic consumption in the textiles sector in the year presented within the specified region.
// Total metric megatons of plastic consumption in the transportation sector in the year presented within the specified region.
consumptionTextileMt: range(0, *)

// Total metric megatons of plastic consumption not represented in other named sectors in the year presented within the specified region.
// Total metric megatons of plastic consumption in the textiles sector in the year presented within the specified region.
consumptionOtherMt: range(0, *)

// Total metric megatons of plastic at end of life in the recycling fate in the year presented within the specified region.
// Total metric megatons of plastic consumption not represented in other named sectors in the year presented within the specified region.
eolRecyclingMt: range(0, *)

// Total metric megatons of plastic at end of life in the landfill fate in the year presented within the specified region.
// Total metric megatons of plastic at end of life in the recycling fate in the year presented within the specified region.
eolLandfillMt: range(0, *)

// Total metric megatons of plastic at end of life in the incineration fate in the year presented within the specified region.
// Total metric megatons of plastic at end of life in the landfill fate in the year presented within the specified region.
eolIncinerationMt: range(0, *)

// Total metric megatons of plastic at end of life in the mismanged fate in the year presented within the specified region.
// Total metric megatons of plastic at end of life in the incineration fate in the year presented within the specified region.
eolMismanagedMt: range(0, *)

// Total net imports for the year presented within the specified region if net imports greater than zero. Otherwise is zero or empty (net exports). In metric megatons.
netImportsMt: range(0, *)

// Total net exports for the year presented within the specified region if net imports greater than zero. Otherwise is zero or empty (net imports). In metric megatons.
netExportsMt: range(0, *)

// Total primary (virgin) production for the year presented within the specified region.
// Total metric megatons of plastic at end of life in the mismanged fate in the year presented within the specified region.
netImportsMt: range(0, *) or is("")
// Total net imports for the year presented within the specified region if net imports greater than zero. Otherwise is zero or empty (net exports). In metric megatons.
netExportsMt: range(0, *) or is("")
// Total net exports for the year presented within the specified region if net imports greater than zero. Otherwise is zero or empty (net imports). In metric megatons.
primaryProductionMt: range(0, *)

// Total secondary production for the year presented within the specified region.
// Total primary (virgin) production for the year presented within the specified region.
secondaryProductionMt: range(0, *)

// Total net plastic waste exported in the year presented within the specified region if greater than zero. Otherwise is zero or empty (net imports). In metric megatons.
netWasteExportMt: range(0, *)

// Total net plastic waste imported in the year presented within the specified region if greater than zero. Otherwise is zero or empty (net exports). In metric megatons.
netWasteImportMt: range(0, *)
// Total secondary production for the year presented within the specified region.
netWasteExportMt: range(0, *) or is("")
// Total net plastic waste exported in the year presented within the specified region if greater than zero. Otherwise is zero or empty (net imports). In metric megatons.
netWasteImportMt: range(0, *) or is("")
// Total net plastic waste imported in the year presented within the specified region if greater than zero. Otherwise is zero or empty (net exports). In metric megatons.

0 comments on commit 77621ca

Please sign in to comment.