A Python package for democratizing access to ambient air pollution data and predictive analytics.
Project description
Environmental Insights
A Python package for democratizing access to ambient air pollution data and predictive analytics.
📖 Description
Environmental Insights provides easy-to-use functions to download, process, and analyze ambient air pollution and meteorological data over England.
- Implements supervised machine-learning pipelines to predict hourly pollutant concentrations on a 1 km² grid.
- Supplies both “typical day” aggregates (percentiles) and full hourly model outputs.
- Includes geospatial utilities for mapping, interpolation, and uncertainty analysis.
⚙️ Installation
Install from PyPI:
pip install environmental-insights
Or from source:
git clone https://github.com/liamjberrisford/Environmental-Insights.git
cd Environmental-Insights
python -m build
pip install dist/environmental_insights-0.2.1b0-py3-none-any.whl
📂 Data Sources
This package downloads and processes two primary CEDA datasets:
-
Synthetic Hourly Air Pollution Prediction Averages for England (SynthHAPPE)
Berrisford, L. (2025). Synthetic Hourly Air Pollution Prediction Averages for England (SynthHAPPE). NERC EDS Centre for Environmental Data Analysis.
DOI: 10.5285/4cbd9c53ab07497ba42de5043d1f414bRepresentative “typical day” profiles of NO₂, NO, NOₓ, O₃, PM₁₀, PM₂.₅ and SO₂ on a 1 km² grid, with 5th, 50th & 95th percentiles.
-
Machine Learning for Hourly Air Pollution Prediction in England (ML-HAPPE)
Berrisford, L. (2025). Machine Learning for Hourly Air Pollution Prediction in England (ML-HAPPE). NERC EDS Centre for Environmental Data Analysis.
DOI: 10.5285/fc735f9878ed43e293b85f85e40df24dFull-year (2018) hourly modelled concentrations of NO₂, NO, NOₓ, O₃, PM₁₀, PM₂.₅ and SO₂ on a 1 km² grid, including 5th, 50th & 95th percentiles and underlying training data.
For full examples, see the Jupyter-Book tutorial in book/tutorial_environmental_insights.ipynb.
📚 Documentation
Build and view locally:
jupyter-book build book/
Then open book/_build/html/index.html in your browser.
Highlights:
- API Reference:
book/docs/api/environmental_insights/ - Tutorial Notebook:
book/tutorial_environmental_insights.ipynb
The documentation is also avaiable via the GitHub Pages Site
✅ Testing
Run the full test suite:
pytest
Integration and unit tests are under tests/.
🤝 Contributing
Contributions and bug-reports are very welcome! Please see CONTRIBUTING.md for details on:
- Code style
- Pull request process
- Issue reporting
📑 Citation
If you use Environmental Insights in your work, please cite:
Berrisford, L. J. (2025). Environmental Insights: Democratizing access to ambient air pollution data and predictive analytics (Version 0.2.1b0) [Software]. GitHub. https://github.com/liamjberrisford/Environmental-Insights
Also cite the underlying datasets:
- Berrisford, L. (2025). SynthHAPPE: Synthetic Hourly Air Pollution Prediction Averages for England. NERC EDS CEDA. DOI: 10.5285/4cbd9c53ab07497ba42de5043d1f414b
- Berrisford, L. (2025). ML-HAPPE: Machine Learning for Hourly Air Pollution Prediction in England. NERC EDS CEDA. DOI: 10.5285/fc735f9878ed43e293b85f85e40df24d
📜 License
This project is released under the GPL-3.0-or-later.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file environmental_insights-0.2.11.tar.gz.
File metadata
- Download URL: environmental_insights-0.2.11.tar.gz
- Upload date:
- Size: 24.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a501e5d6ae29c4e7b179e025a95a59f0f8f1370f9af01f6fb85bb4c8532c3da5
|
|
| MD5 |
a3a49ee6e3644e255aa6ead4b02caad8
|
|
| BLAKE2b-256 |
034d91e0af93f9c7a5e6ad17c3c75830c6754226d29b4d8ea0fefeefd2ff666d
|
File details
Details for the file environmental_insights-0.2.11-py3-none-any.whl.
File metadata
- Download URL: environmental_insights-0.2.11-py3-none-any.whl
- Upload date:
- Size: 24.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
865f457896234370d0b5780193eda21d36730ded668b0c7d3292e6cdc0d4725b
|
|
| MD5 |
4ea5a89dad573fd37c46022f4a46e7bf
|
|
| BLAKE2b-256 |
6302348fd79a043200fc0ff563d049e06bf61832a21090c60f0afff5738ea6f4
|