Skip to main content

PyAURN - latest-version

This is a Python port of functions of the openair R package. The openair 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, however imports it into a Python friendly pandas dataframe without the need for R by utilising the pyreadr package.

Getting started

Install the via pip:

pip install pyaurn

Example quickstart functions in the package as below:

from pyaurn import importAURN, importMeta, timeAverage

# Download metadata of site IDs, names, locations etc
metadata = importMeta()

# Download 4 years of data for the Marylebone Road site
# (MY1 is the site ID for this site)
# Note: range(2016, 2022) will produce a list of six years: 2016, 2017, 2018, 2019, 2020, and 2021. 
# Alternatively define a list of years to use eg. [2016,2017,2018,2019,2020,2021]
data = importAURN("MY1", range(2016, 2022))

# Group the DataFrame by a frequency of monthly, and the statistic mean(). 
data_monthly = timeAverage(data,avg_time="month",statistic="mean")

Current Functions

The following functions are currently available in the package:

  • importMeta - download meta information on the different sents for specified data source.
  • importAURN - import AURN data for a specified site and year(s).
  • importUKAQ - import UK Air Quality data for a specified site, year(s), and data source.
  • importEurope - import European Air Quality data for a specified site, year(s) - WIP (final dataframe format needs widening to clean pollutants)
  • timeAverage - time average the data to a specified frequency and statistic.
  • windRose - plot a wind rose for a specified site and year(s).

Future developments

  • integrate other openair functions
  • open to suggestions (please leave enhancement tag in Issues)

Metadata

Release files for pyaurn 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyaurn 0.1.21
File Size Uploaded Provenance Actions
pyaurn-0.1.21.tar.gz 6.1 kB Without provenance Details for pyaurn-0.1.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyaurn 0.1.21
File Interpreter ABI Platform Actions
pyaurn-0.1.21-py3-none-any.whl Python 3 none any Details for pyaurn-0.1.21-py3-none-any.whl

Total release size: 12.6 kB

Release files / pyaurn-0.1.21.tar.gz

Download URL pyaurn-0.1.21.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
846219654326409ad6d201ccbba204f1808f205b9a05e7b23d8f43716594193c
BLAKE2b-256 checksum
How to use checksums
b52b8cd7c8481d75a66cdcef0de7a1f818b40d1a0551bde5b3cbebb78778afe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / pyaurn-0.1.21-py3-none-any.whl

Download URL pyaurn-0.1.21-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd158f012be0aa6c9f142688e5a9ebcb915282ca690499041c53a9ce6c2e6ccc
BLAKE2b-256 checksum
How to use checksums
08a936f839e063b2286b849938f7f14d98b4ddbe949130a7a9219f12f5b69342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for pyaurn 0.1.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page