Package 'aire'

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

Help Index


Grab data on air pollution in Andalusia

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.

Details

Currently, data are available from 2005 onwards.


Get daily air pollution data for given dates and province

Description

Get daily air pollution data for given dates and province

Usage

get_daily_data(dates, province, from, to)

Arguments

dates

Character vector with one or multiple dates formatted as "yyyy-mm-dd" (see examples). Alternatively, use from and to.

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.

Value

A dataframe, suitable to be used directly in openair package.

Examples

## 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 Sevilla province, year 2015.

Description

Air quality data for all stations in Sevilla province for year 2015.

Format

A dataframe with 606911 rows and 11 variables:

Provincia

Province

Municipio

Council where station is located

site

Station name

Direccion

Address

date

Date and time of the measurement, in format "yyyy-mm-dd hh:mm:ss"

SO2

SO2 concentration (in micrograms per cubic meter)

PART

Particles concentration (in micrograms per cubic meter)

NO2

NO2 concentration (in micrograms per cubic meter)

CO

CO concentration (in micrograms per cubic meter)

O3

O3 concentration (in micrograms per cubic meter)

SH2

SH2 concentration (in micrograms per cubic meter)

Source

Consejeria de Medio Ambiente, Junta de Andalucia (http://bit.ly/airedata)


Measurement stations info

Description

Coordinates and information of all measurement stations in Andalusia.

Format

A SpatialPointsDataFrame with 99 rows and 5 variables:

X

Station number

ESTACION

Station name

MUNICIPIO

Council

PROVINCIA

Province

site

Station name (used for compatibility with package openair)

Source

Consejeria de Medio Ambiente, Junta de Andalucia (http://www.juntadeandalucia.es/medioambiente/portal_web/web/temas_ambientales/atmosfera/calidad_aire/RVCCAA_2015.pdf)