Package to import AURN air quality data from DEFRA UK AIR site
Reason this release was yanked:
non-working
Project description
PyAURN -
https://img.shields.io/pypi/l/pyaurn
This is a reworked fork of the robintw/PyAURN
utilising pyreadr instead of rpy2. This negates having a local installation of R, and therefore can remain a python only configuration.
This is a simple Python package to import data from the UK Automatic Urban Rural Network - an air pollution network run by the UK government.
This is a Python port of a couple of functions of the openair R package. This R package relies on data provided as a set of .RData files on the Defra website, specifically designed for use by the openair project. This Python package relies on the same data.
Getting started
Install the via pip:
pip install pyaurn
Run the two functions in the package as below:
from importAURN import importAURN, importMetadata
# Download metadata of site IDs, names, locations etc
metadata = importMetadata()
# Download 4 years of data for the Southampton Central site
# (SOUT is the site ID for this site)
# Note: range(2015, 2019) will produce a list of four years: 2015, 2016, 2017 and 2018
data = importAURN("SOUT", range(2015, 2019))
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
File details
Details for the file pyaurn-0.0.4.tar.gz
.
File metadata
- Download URL: pyaurn-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df747ea1e0dd9cace642e923428e58fb20c1ba77865075fc5bb71e5dd2a8129c |
|
MD5 | ef68a1eeeb7ec9014ae7ed3c3b7f40b5 |
|
BLAKE2b-256 | 73d8b38d153eab95e1d9dba6e4711e77ad03f73990ca24f3390361b38f965135 |
File details
Details for the file pyaurn-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyaurn-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d624d1d08d9ff89a2448a7a9c2d267311ec415889039819f4f2f703fca46b886 |
|
MD5 | ef85168d2649ba5cc371365338108f21 |
|
BLAKE2b-256 | 3bb793fa47e8ef0cd6b508060f38452f042dea3230db112d62ae433a89eac4e9 |