Loads pre-generated .RData files containing annual AirNow 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 airnow_loadDaily()
.
For the most recent data, use airnow_loadLatest()
.
AirNow parameters include the following:
PM2.5
Available AirNow RData and associated log files can be seen at: https://haze.airfire.org/monitoring/AirNow/RData/
airnow_loadAnnual( year = NULL, parameter = "PM2.5", baseUrl = "https://haze.airfire.org/monitoring", dataDir = NULL )
year | Desired year (integer or character representing YYYY). |
---|---|
parameter | Parameter of interest. |
baseUrl | Base URL for 'annual' AirNow data files. |
dataDir | Local directory containing 'annual' data files. |
A ws_monitor object with AirNow data.
if (FALSE) { # Fail gracefully if any resources are not available try({ airnow_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 -- AirNow Daily Average PM2.5") }, silent = FALSE) }