airbaseStats: Import pre-calculated airbase statistics

Description Usage Arguments Details Value Author(s)

Description

Import pre-calculated airbase statistics

Usage

1
2
3
4
airbaseStats(statistic = "Mean", pollutant = "no2", avg.time = "auto",
  code = NULL, site.type = c("background", "traffic", "industrial",
  "unknown"), year = 1969:2012, data.cap = 0, add = c("country", "lat",
  "lon", "site.type", "site", "city"))

Arguments

statistic

A single choice from “P50”, “Mean”, “P95”, “P98”, “Max”, “Max36”, “Max8”, “Days.c.50.”, “Max26”, “Days.c.120.”,“SOMO35”, “AOT40”, “Max19”, “Hours.c.200.”, “Max4”, “Days.c.125.”, “P99_9”, “Max25”, “Hours.c.350.”.

pollutant

The single name of a pollutant to extract; can be upper or lower case but must match one of those below.

avg.time

The averaging time on which the measurements are based. By default the averaging period with most data associated with it is used. For most pollutants the averaging period will be “day”. Other common options are “hour” and “week”.

code

The airbase site code(s) to select. Can be upper or lower case.

site.type

The type of site(s) to select.

year

The year(s) to select e.g. year = 2000:2012 to select years 2010, 2011 and 2012.

data.cap

The data capture threshold to use (%). By default all data are selected.

add

Additional fields to add to the returned data frame. By default the country, site type, latitude and logitude are returned. Other useful options include “city”, “site” (site name), “EMEP_station” and “altitude”.

Details

The airbase database makes available detailed pre-calculated statsitics for all species, sites and years. The airbaseStats function provides these data.

The data are imported depending on the statistic chosen — see the list of available statistics in the statistics option. Further options are available to refine the selection including a single pollutant, year(s), site type(s), data capture percentage threshold and airbase site code.

Once the data have been imported it is then possible to subset the data in various ways e.g. by extracting a particular species with a defined data capture threshold.

The following pollutants are available:

Value

A data frame of airbase sites with the statsitics chosen and for all species.

Returns a data frame with POSIXct date, together with many other airbase fields.

Author(s)

David Carslaw


davidcarslaw/ggopenair documentation built on May 14, 2019, 10:37 p.m.