{"id":23347013,"url":"https://github.com/robintw/pyaurn","last_synced_at":"2025-08-23T04:16:20.756Z","repository":{"id":78251943,"uuid":"132807238","full_name":"robintw/PyAURN","owner":"robintw","description":"A Python module to import data from the UK Automatic Urban Rural Network (air pollution monitoring network)","archived":false,"fork":false,"pushed_at":"2023-03-11T21:24:08.000Z","size":35,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T22:10:20.209Z","etag":null,"topics":["air-pollution","air-quality","air-quality-data","python","scientific"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robintw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-09T20:05:59.000Z","updated_at":"2025-07-10T11:10:23.000Z","dependencies_parsed_at":"2023-09-24T05:08:45.885Z","dependency_job_id":null,"html_url":"https://github.com/robintw/PyAURN","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.4137931034482759,"last_synced_commit":"60c918c2d314cfe98f0ad57b6da5b36142527315"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robintw/PyAURN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2FPyAURN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2FPyAURN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2FPyAURN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2FPyAURN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robintw","download_url":"https://codeload.github.com/robintw/PyAURN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robintw%2FPyAURN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740732,"owners_count":24812642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["air-pollution","air-quality","air-quality-data","python","scientific"],"created_at":"2024-12-21T07:17:27.575Z","updated_at":"2025-08-23T04:16:20.704Z","avatar_url":"https://github.com/robintw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyAURN - [![latest-version](https://img.shields.io/pypi/v/pyaurn)](https://pypi.org/project/pyaurn)\n\n\nThis is a Python port of functions of the [openair](https://davidcarslaw.github.io/openair/) R package. The openair R package\nrelies on data provided as a set of .RData files on the Defra website, specifically designed for use by the openair project. This Python\npackage relies on the same data, however imports it into a Python friendly pandas dataframe without the need for R by utilising the [pyreadr](https://pypi.org/project/pyreadr) package.\n\n## Getting started\nInstall the via pip: \n\n`pip install pyaurn`\n  \n  \nExample quickstart functions in the package as below:\n\n```python\nfrom pyaurn import importAURN, importMeta, timeAverage\n\n# Download metadata of site IDs, names, locations etc\nmetadata = importMeta()\n\n# Download 4 years of data for the Marylebone Road site\n# (MY1 is the site ID for this site)\n# Note: range(2016, 2022) will produce a list of six years: 2016, 2017, 2018, 2019, 2020, and 2021. \n# Alternatively define a list of years to use eg. [2016,2017,2018,2019,2020,2021]\ndata = importAURN(\"MY1\", range(2016, 2022))\n\n# Group the DataFrame by a frequency of monthly, and the statistic mean(). \ndata_monthly = timeAverage(data,avg_time=\"month\",statistic=\"mean\")\n```\n\n## Current Functions\nThe following functions are currently available in the package:\n* importMeta - download meta information on the different sents for specified data source.\n* importAURN - import AURN data for a specified site and year(s).\n* importUKAQ - import UK Air Quality data for a specified site, year(s), and data source.\n* importEurope - import European Air Quality data for a specified site, year(s) - WIP (final dataframe format needs widening to clean pollutants)\n* timeAverage - time average the data to a specified frequency and statistic.\n* windRose - plot a wind rose for a specified site and year(s).\n\n\n## Future developments\n\n* integrate other openair functions\n* open to suggestions (please leave enhancement tag in [Issues](https://www.github.com/robintw/PyAURN/issues))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobintw%2Fpyaurn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobintw%2Fpyaurn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobintw%2Fpyaurn/lists"}