Loads pre-generated .RData files containing annual WRCC data.

If dataDir is defined, data will be loaded from this local dirctory. Otherwise, data will be loaded from the monitoring data repository maintained by PWFSL.

The annual files loaded by this function are updated on the 15'th of each month and cover the period from the beginning of the year to the end of the last month.

For data during the last 45 days, use wrcc_loadDaily().

For the most recent data, use wrcc_loadLatest().

WRCC parameters include the following:

  1. PM2.5

Available WRCC RData and associated log files can be seen at: https://haze.airfire.org/monitoring/WRCC/RData/

wrcc_loadAnnual(
  year = NULL,
  parameter = "PM2.5",
  baseUrl = "https://haze.airfire.org/monitoring",
  dataDir = NULL
)

Arguments

year

Desired year (integer or character representing YYYY).

parameter

Parameter of interest.

baseUrl

Base URL for 'annual' WRCC data files.

dataDir

Local directory containing 'annual' data files.

Value

A ws_monitor object with WRCC data.

See also

Examples

if (FALSE) { # Fail gracefully if any resources are not available try({ wrcc_loadAnnual(2017) %>% monitor_subset(stateCodes='MT', tlim=c(20170701,20170930)) %>% monitor_dailyStatistic() %>% monitor_timeseriesPlot(style = 'gnats', ylim=c(0,300), xpd=NA) addAQIStackedBar() addAQILines() title("Montana 2017 -- WRCC Daily Average PM2.5") }, silent = FALSE) }