nabel {nabel} | R Documentation |
The National Air Pollution Monitoring Network (NABEL) provides time series data on air-borne pollutant concentrations from a network of measurement stations across Switzerland. The data can be queried with an HTML form (see sources). This is a simple function that serves as a wrapper for that HTML form. Its main purpose is to demonstrate some of the capabilities of http://opencpu.org/ by Jeroen Ooms.
nabel(pollutant = c("o3", "no2", "so2", "co", "nmvoc", "pm10", "pm1", "cpc", "temp", "prec", "rad"),
stations = c("Bern-Bollwerk", "Lausanne-César-Roux", "Lugano-Università", "Zürich-Kaserne", "Basel-Binningen", "Dübendorf-Empa", "Härkingen-A1", "Sion-Aéroport-A9", "Magadino-Cadenazzo", "Payerne", "Tänikon", "Lägeren", "Chaumont", "Rigi-Seebodenalp", "Davos-Seehornwald", "Jungfraujoch"),
interval = c("hourly", "daily"),
period = c("day", "week", "month", "free"),
from = NULL, to = NULL)
pollutant |
pollutant or meteorological variable to plot |
stations |
measurement stations (either by number or name) to include |
interval |
plot |
period |
time series period |
from |
start day of time series period (if
|
to |
end day of time series period (if |
A single pollutant
or meteorological variable is
plotted (default is o3
):
o3 (Ozone (O3))
no2 (Nitrogen dioxide (NO2))
so2 (Sulfur dioxide (SO2))
co (Carbon monoxide (CO))
nmvoc (Non-methane volatile organic compounds (NMVOC))
pm10 (Particulate matter (PM10))
pm1 (Particulate matter (PM1))
cpc (Particulate number concentration (CPC))
temp (Temperature (TEMP))
prec (Precipitation (PREC))
rad (Global radiation (RAD))
One or several measurement stations
have to be
included (default is to include all 16):
Bern-Bollwerk
Lausanne-César-Roux
Lugano-Università
Zürich-Kaserne
Basel-Binningen
Dübendorf-Empa
Härkingen-A1
Sion-Aéroport-A9
Magadino-Cadenazzo
Payerne
Tänikon
Lägeren
Chaumont
Rigi-Seebodenalp
Davos-Seehornwald
Jungfraujoch
For the time series measurement interval
, you have
a choice between hourly
and daily
means
(default is hourly
).
The depicted time period
can be the last
day
, week
, month
, or you can
free
ly choose the period by specifying a start
date with from
and an end date with to
(both need to be given in a format that can be converted
to an object of class Date
with as.Date()
-
e.g. in ISO 8601 format, i.e. YYYY-MM-DD).
none (invisible NULL
)
Not all pollutants are measured at all stations.
Thomas Zumbrunn (http://thomas.zumbrunn.name/)
http://www.empa.ch/nabel/ and http://www.bafu.admin.ch/luft/luftbelastung/blick_zurueck/datenabfrage/index.html?lang=en
## plot daily mean NO2 concentrations at three stations
## from 1 January 2011 up to today
## Not run:
nabel("no2",
c("Bern", "Basel", "Lausanne"),
"daily",
"free",
"2011-01-01",
Sys.Date())
## End(Not run)