airsis_loadAnnual: Load annual AIRSIS monitoring data

Description Usage Arguments Value See Also Examples

View source: R/airsis_loadAnnual.R

Description

Loads pre-generated .RData files containing annual AIRSIS 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 airsis_loadDaily().

For the most recent data, use airsis_loadLatest().

AIRSIS parameters include the following:

  1. PM2.5

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

Usage

1
2
3
4
5
6
airsis_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' AIRSIS data files.

dataDir

Local directory containing 'annual' data files.

Value

A ws_monitor object with AIRSIS data.

See Also

airsis_loadDaily

airsis_loadLatest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# Fail gracefully if any resources are not available
try({

airsis_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 -- AIRSIS Daily Average PM2.5")

}, silent = FALSE)

## End(Not run)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.