Title: | Grab data on air pollution in Andalusia (Spain) |
---|---|
Description: | This package can download and retrieve daily data on air quality in Andalusia (Spain), from any of the stations maintained by 'Consejeria de Medio Ambiente' (http://bit.ly/airedata). The data are formatted so that they can be directly analysed with the 'openair' package. Note these data are collected automatically, and not validated. Check out Consejeria de Medio Ambiente website for monthly and annual reports based on validated data. |
Authors: | Francisco Rodriguez-Sanchez, Francisco Viciana, Francisco Balao, Virginia Luque, Rocio Aguilar |
Maintainer: | Francisco Rodriguez-Sanchez <[email protected]> |
License: | GPL-3 |
Version: | 0.0.2 |
Built: | 2024-11-15 04:37:30 UTC |
Source: | https://github.com/SevillaR/aire |
This package can download and retrieve daily data on air quality in Andalusia (Spain), from any of the stations maintained by 'Consejeria de Medio Ambiente' (http://bit.ly/airedata). The data are formatted so that they can be directly analysed with the 'openair' package. Note these data are collected automatically, and not validated. Check out Consejeria de Medio Ambiente website for monthly and annual reports based on validated data.
Currently, data are available from 2005 onwards.
Get daily air pollution data for given dates and province
get_daily_data(dates, province, from, to)
get_daily_data(dates, province, from, to)
dates |
Character vector with one or multiple dates formatted as "yyyy-mm-dd" (see examples). Alternatively, use |
province |
Character. The first two letters of province name. |
from |
Character. Starting date, with format "yyyy-mm-dd". |
to |
Character. Last date required, with same format as above. |
A dataframe, suitable to be used directly in openair package.
## Not run: dataset <- get_daily_data("2015-01-28", province = "gr") dataset <- get_daily_data("2015-01-03", "MA") dataset <- get_daily_data("2015-01-03", "Se") dataset <- get_daily_data(c("2015-01-28", "2015-01-29"), "se") dataset <- get_daily_data(province = "se", from = "2015-01-10", to = "2015-01-15") ## End(Not run)
## Not run: dataset <- get_daily_data("2015-01-28", province = "gr") dataset <- get_daily_data("2015-01-03", "MA") dataset <- get_daily_data("2015-01-03", "Se") dataset <- get_daily_data(c("2015-01-28", "2015-01-29"), "se") dataset <- get_daily_data(province = "se", from = "2015-01-10", to = "2015-01-15") ## End(Not run)
Air quality data for all stations in Sevilla province for year 2015.
A dataframe with 606911 rows and 11 variables:
Province
Council where station is located
Station name
Address
Date and time of the measurement, in format "yyyy-mm-dd hh:mm:ss"
SO2 concentration (in micrograms per cubic meter)
Particles concentration (in micrograms per cubic meter)
NO2 concentration (in micrograms per cubic meter)
CO concentration (in micrograms per cubic meter)
O3 concentration (in micrograms per cubic meter)
SH2 concentration (in micrograms per cubic meter)
Consejeria de Medio Ambiente, Junta de Andalucia (http://bit.ly/airedata)
Coordinates and information of all measurement stations in Andalusia.
A SpatialPointsDataFrame with 99 rows and 5 variables:
Station number
Station name
Council
Province
Station name (used for compatibility with package openair)
Consejeria de Medio Ambiente, Junta de Andalucia (http://www.juntadeandalucia.es/medioambiente/portal_web/web/temas_ambientales/atmosfera/calidad_aire/RVCCAA_2015.pdf)