airsis_loadDaily: Load recent AIRSIS monitoring data

Description Usage Arguments Value See Also Examples

View source: R/airsis_loadDaily.R

Description

Loads pre-generated .RData files containing recent 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 daily files loaded by this function are updated once a day, shortly after midnight and contain data for the previous 45 days.

For the most recent data, use airsis_loadLatest().

For data extended more than 45 days into the past, use airsis_loadAnnual().

AIRSIS parameters include the following:

  1. PM2.5

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

Usage

1
2
3
4
5
airsis_loadDaily(
  parameter = "PM2.5",
  baseUrl = "https://haze.airfire.org/monitoring/latest/RData",
  dataDir = NULL
)

Arguments

parameter

Parameter of interest.

baseUrl

Base URL for 'daily' AirNow data files.

dataDir

Local directory containing 'daily' data files.

Value

A ws_monitor object with AIRSIS data.

See Also

airsis_loadAnnual

airsis_loadLatest

Examples

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

airsis_loadDaily() %>%
  monitor_subset(stateCodes=CONUS) %>%
  monitor_map()

}, silent = FALSE)

## End(Not run)

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