Skip to main content

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

Reason this release was yanked:

non-working

Project description

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


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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pyaurn-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyaurn-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 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.2.tar.gz
Algorithm Hash digest
SHA256 fdad02683c50c409687030f035eb803ceb02129318bc78569e1347d02b3a052b
MD5 d9bba59be5955463f80fa494edfb8cbe
BLAKE2b-256 b4f20534f58fbf77909a9eaecea75d486f3318f4d15ff9de6ced7e21f2594091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaurn-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a5edc8f418b2426186f747dd6a7e2db41fd424a0bc67a3c6cfe69303915b2ad
MD5 7e83db1bdaa1dff7f004b4fb9bd61338
BLAKE2b-256 d5ba0edecb036690567e51d3888e3c2ded2432658fddb037f1e5b5653e45e0bd

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