California Statewide Jurisdiction-Level Community GHG Inventory, 2019–2024: Build code
Authors/Creators
Description
The code that builds the California Statewide Jurisdiction-Level Community GHG Inventory, 2019–2024: a community greenhouse gas inventory for all 540 California local jurisdictions (482 incorporated cities and 58 unincorporated county areas) for calendar years 2019 to 2024, following the ICLEI U.S. Community Protocol v1.2.
The record holds the Python build pipeline end to end. It covers downloading and reading each input source, allocating county-level activity data to jurisdictions, emissions calculations by USCP Basic Activity, quality-assurance checks, the uncertainty model, and the data dictionary with its row-level identity checks. It also holds the generators for the jurisdiction and county PDF reports and for the formula-driven calculation workbooks. requirements.txt pins the exact package versions that built the published outputs.
This record is one of three, designed to be unpacked into the same folder. The inventory record (10.5281/zenodo.24213464) holds the outputs and documentation, and the inputs record (10.5281/zenodo.24213495) holds the redistributable third-party raw data. With all three unpacked, python3 run_all.py --offline in states/CA rebuilds the inventory without network access. This was tested on the release: every shipped output was reproduced.
Licence: PolyForm Noncommercial License 1.0.0. Noncommercial use is permitted, including use by government institutions, educational institutions, public research organisations and charitable organisations, whatever their funding. Commercial use is not licensed; for a commercial licence, contact the author through the ORCID record listed with this record. The inventory data the code produces is licensed separately, under CC-BY 4.0, in the inventory record.
Files
code.zip
Additional details
Related works
- Compiles
- Dataset: 10.5281/zenodo.24213464 (DOI)