Skip to main content

Package to import AURN air quality data from DEFRA UK AIR site

Project description

PyAURN - latest-version

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 pyaurn 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


Download files

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

Source Distribution

pyaurn-0.0.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

pyaurn-0.0.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyaurn-0.0.5.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

Hashes for pyaurn-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1d215acae8335a6ced72e0ef9b57e4635750b6e7b72557a8263e5d1730826ab5
MD5 54c22ea040b524d13fc82c9f551eae0a
BLAKE2b-256 308676d08799993df26c76e6ccb38008b53588e53fca8c6b090c8b9094987478

See more details on using hashes here.

File details

Details for the file pyaurn-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyaurn-0.0.5-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

Hashes for pyaurn-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 15735b43c0f939a51469be621422fd3383f1054353f0f188c1d4647e03276a86
MD5 aa8cf581cf8e9e367e56d4ed9b656f5e
BLAKE2b-256 fa3905cc94e741106d8d02701ece4966d6bb8955d3e49c07c91c28a3546fcdea

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