Skip to main content

Commonly used codes, categories, terminologies, and nomenclatures used in climate policy analysis as a Python package.

Project description

Climate categories

https://img.shields.io/pypi/v/climate_categories.svg Documentation Status https://zenodo.org/badge/DOI/10.5281/zenodo.4590232.svg

Commonly used codes, categories, terminologies, and nomenclatures used in climate policy analysis in a nice Python package. The documentation can be found at: https://climate-categories.readthedocs.io.

Included categorizations

Name

Title

IPCC1996

IPCC GHG emission categories (1996)

IPCC2006

IPCC GHG emission categories (2006)

IPCC2006_PRIMAP

IPCC GHG emission categories (2006) with additional categories

CRF1999

Common Reporting Format GHG emissions categories (1999)

BURDI

BUR GHG emission categories (DI query interface)

BURDI_class

BUR GHG emission categories (DI query interface) + classifications

CRFDI

CRF GHG emission categories (DI query interface)

CRFDI_class

CRF GHG emission categories (DI query interface) + classifications

GCB

Global Carbon Budget CO2 emission categories

RCMIP

RCMIP emissions categories

gas

Gases and other climate-forcing substances

Included conversions between categorizations

  • IPCC1996 <-> IPCC2006

Status

Climate categories is still in development and the API and names of categorizations are still subject to change.

License

Copyright 2021, Potsdam-Institut für Klimafolgenforschung e.V.

Copyright 2021, Robert Gieseke

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Citation

If you use this library and want to cite it, please cite it as:

Mika Pflüger, Annika Günther, Johannes Gütschow, and Robert Gieseke. (2021-11-05). pik-primap/climate_categories: climate_categories Version 0.6.3. Zenodo. https://doi.org/10.5281/zenodo.5649245

Changelog

0.6.3 (2021-11-05)

  • Export Category and HierarchicalCategory types.

  • Add ConversionRule.is_restricted attribute to easily check if a rule is restricted to specific auxiliary categories.

0.6.2 (2021-11-05)

  • Export Conversion and ConversionRule types.

0.6.1 (2021-11-04)

0.6.0 (2021-10-22)

  • Automate changelog generation from snippets - avoids resolving merge conflicts manually

  • Automate github releases.

  • Add category “0” (National total) to IPCC1996 and IPCC2006 categorizations. While it is not in the official specification, it is widely used and adding it also enables automatically assigning a level to all other categories.

  • Add categorization CRF1999 used within in the common reporting framework data.

  • Refactor rendering of large categorizations using show_as_tree(), adding more clarity to alternative child sets. Add usage documentation for show_as_tree(). Thanks to Robert Gieseke for feedback.

  • Fixes for IPCC2006 categorization (and IPCC2006_PRIMAP):

    • proper title for category 3.B.3.a “Grassland Remaining Grassland”

    • correct corresponding 1996 category for category 1.A.4.c.ii

  • Fixes for IPCC1996 categorization:

    • category 4.B.10 has the correct title “Anaerobic Lagoons”

    • correct usage of units in the titles of categories 4.C.3.a and 4.C.3.b

  • Add mechanism to describe conversions between categorizations.

  • Add conversion between IPCC2006 and IPCC1996.

  • Add algorithm to detect over counting in conversions between categorizations.

  • Refactor generation of IPCC2006 and IPCC1996 categorizations.

  • Add function to find unmapped categories in a conversion.

0.5.4 (2021-10-18)

  • Add Global Carbon Budget categorization.

0.5.3 (2021-10-12)

  • Add gas categorization which includes commonly used climate forcing substances.

0.5.2 (2021-05-18)

  • Add IPCC2006_PRIMAP categorization.

  • Add refrigerant sub-classes and additional codes to CRFDI_class.

0.5.1 (2021-05-04)

  • Add BURDI, CRFDI, BURDI_class, and CRFDI_class categorizations and scripts to generate them from the UNFCCC DI flexible query API.

0.5.0 (2021-03-23)

  • Switch to_yaml() output to ruamel.yaml so that valid, correctly typed YAML 1.2 is written. This should enable easier re-use of the data in other contexts.

  • Consistently use title case for titles in IPCC categorizations.

0.4.0 (2021-03-17)

  • Add more unit tests.

  • Add consistency tests for IPCC categorizations.

  • Update documentation.

  • Add data format documentation.

0.3.2 (2021-03-16)

  • Use tbump for simpler versioning.

0.3.1 (2021-03-16)

  • Properly include data files in binary releases.

0.3.0 (2021-03-16)

  • Add IPCC1996 categorization and scripts to generate it from the source pdf.

  • Change packaging to declarative style.

  • Automate generation of pickled files via Makefile.

  • Automate loading of included categorizations.

0.2.2 (2021-03-09)

  • Re-release again to trigger zenodo.

0.2.1 (2021-03-09)

  • Re-release to include correct changelog.

0.2.0 (2021-03-09)

  • Introduce API for multiple codes and multiple children.

  • Implement classes and functions.

  • Add IPCC2006 categorization and scripts to generate it from the source pdf.

0.1.0 (2021-01-18)

  • First release on PyPI.

  • Contains documentation and a stub API for querying, but no working code yet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climate_categories-0.6.3.tar.gz (350.4 kB view details)

Uploaded Source

Built Distribution

climate_categories-0.6.3-py3-none-any.whl (332.6 kB view details)

Uploaded Python 3

File details

Details for the file climate_categories-0.6.3.tar.gz.

File metadata

  • Download URL: climate_categories-0.6.3.tar.gz
  • Upload date:
  • Size: 350.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for climate_categories-0.6.3.tar.gz
Algorithm Hash digest
SHA256 9c575e66903ac80f7de070466b4711df785ab41a13c6d891bfc4a8cb3b9a2930
MD5 a141365b19387f190fbf945a7bec3658
BLAKE2b-256 c5be4ca0e917431ece9d9b0f8db449047149d527d874146ae2c824299d8631b1

See more details on using hashes here.

File details

Details for the file climate_categories-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: climate_categories-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 332.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for climate_categories-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 16116174b8ca99e2354c20d739d0733160cd3c3acf0b047bd3ccb1b2ee79bb6c
MD5 667afac4aa25fb7e35c4258c202bd3cb
BLAKE2b-256 bb624fe05ffb88c741e5fb64da263370075eeb7a6dac16f7c3758318f5c6c9ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page