Skip to main content

A Python package providing easy-to-use code that returns recently reported emissions from facilities, socio-economic information for places, emissions records for specific companies and industries, and emissions trends over time

Project description

npri v0.0.5

A Python package providing easy-to-use code that returns recently reported emissions from facilities, socio-economic information for places, emissions records for specific companies and industries, and emissions trends over time.

Motivation

Dr. Ingrid Waldron defines environmental racism as "environmental policies, practices, or directives that disproportionately disadvantage individuals, groups, or communities (intentionally or unintentionally) based on race or colour definition." The outcomes of environmental racism include inequitable access to environmental goods such as clean drinking water, unfair distribution of environmental harms such as air pollution, and uneven access to legal and other mechanisms that would address these. As Waldron notes, environmental racism "compounds other existing inequalities and challenges that Indigenous and other racialized groups face, such as low-income and poverty, underemployment and unemployment, food insecurity, poor access to healthcare, among others."

As of June 2024, Bill C-226 has been approved by Canada's Senate. Among other things, the Bill requires addressing environmental racism through "a study that includes (i) an examination of the link between race, socio-economic status and environmental risk, and (ii) information and statistics relating to the location of environmental hazards."

npri-tools contributes to this work by prototyping what the data infrastructure for it might look like.

Data Sources and Interpretation

We copy the National Pollutant Release Inventory (NPRI)'s Microsoft Access database of emissions reports, company ownership, and more covering the years 1993-2022.

In the future, we hope to compile provincial-level enforcement and compliance records in order to understand the extent to which industry meets legal requirements and ministries implement rules. Claire Ewing, a graduate of UBC's Master in Environment, Resources and Sustainability, brought together that information for her thesis. Unfortunately, there doesn't seem to be any straightforward way to link provincial and federal-level records. For instance, Ontario's violations records do not link facilities with their NPRI identifiers. It may be possible to connect Ontario facility records with NPRI facility records based on contextual information, such as addresses, rather than IDs, but even basic information such as facility location is inconsistenly reported.

It's crucial to keep in mind that NPRI records are self-reported from industry. As in the United States, these reports are often based on modeled estimates rather than direct measurements and do not reflect pollutant concentrations in the air, water, or land. Recent research, for instance, has found staggering discrepancies between what some oil and gas operations report to NPRI and the actual concentration of pollutants in the air around these operations. NPRI itself has some useful notes on how to interpret its data.

One of the most glaring omissions from NPRI's records is any attempt to connect pollutants with health outcomes. Please visit the Indigenous-led Environmental Data Justice lab to learn about their work with communities in Ontario's Chemical Valley to "gather and translate diverse technical information into an accessible form so that people can more easily link health issues to facility activities."

We have also made a complete copy of Statistics Canada's 2021 Census though, at the moment, we only provide complete access to a handful of variables at the dissemination area scale. Although in many respects the Census is a robust snapshot of socio-economic patterns, it is well-recognized that measures such as "Aboriginal identity" are undercounted (i.e. in First Nation reserves and urban areas).

Installation and Basic Usage

!pip install npri &>/dev/null;
from npri import npri

What NPRI-reporting facilities are near me?

We can look up information about NPRI-reporting facilities based on geography. We can find facilities within a Forward Sortation Area (FSA; the first three digits of a postal code), a province/territory, or those that are within 10km of a given point.

To find facilities in an FSA use the place argument (to search several FSAs, just add to the list). The object that is returned has a data property that lets us see the information as a dataframe:

fsas = npri.Facilities(place=["N1E"])
fsas.data

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

npri-0.0.5.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

npri-0.0.5-py2.py3-none-any.whl (20.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file npri-0.0.5.tar.gz.

File metadata

  • Download URL: npri-0.0.5.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for npri-0.0.5.tar.gz
Algorithm Hash digest
SHA256 76774e898aa2a2dabf3d95a2f803e18eee845558fa53a68b21cb615b4cd1b7b3
MD5 680289af3e4a805bb475984d8f0878a6
BLAKE2b-256 1ac12c898dff70101954b2351fac54265af41000059b619682904b280d2e08c9

See more details on using hashes here.

File details

Details for the file npri-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: npri-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for npri-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 59fcb75ab812b680682e5f416c2f601e633e5760de136c500d260664785ecd06
MD5 8ba62ca9544618d3b1929621e015228a
BLAKE2b-256 eadc37ccaef69b14f8f56d15f18c6c9af5c0322721b2ec57b1256973c67131f3

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