airnow_loadDaily: Load daily AirNow monitoring data

View source: R/airnow_loadDaily.R

airnow_loadDailyR Documentation

Load daily AirNow monitoring data

Description

Loads pre-generated .rda files containing hourly AirNow data.

If archiveDataDir is defined, data will be loaded from this local archive. Otherwise, data will be loaded from the monitoring data repository maintained by the USFS AirFire team.

The files loaded by this function are updated once per day and contain data for the previous 45 days.

For the most recent data in the last 10 days, use airnow_loadLatest().

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

Pre-processed AirNow exists for the following parameters:

  1. PM2.5

  2. PM2.5_nowcast

Usage

airnow_loadDaily(
  archiveBaseUrl = paste0("https://airfire-data-exports.s3.us-west-2.amazonaws.com/",
    "monitoring/v2"),
  archiveBaseDir = NULL,
  QC_negativeValues = c("zero", "na", "ignore"),
  parameterName = "PM2.5"
)

Arguments

archiveBaseUrl

Base URL for monitoring v2 data files.

archiveBaseDir

Local base directory for monitoring v2 data files.

QC_negativeValues

Type of QC to apply to negative values.

parameterName

One of the EPA AQS criteria parameter names.

Value

A mts_monitor object with AirNow data. (A list with meta and data dataframes.)

See Also

airnow_loadAnnual

airnow_loadLatest

airnow_loadMonthly

Examples

## Not run: 
library(AirMonitor)

# Fail gracefully if any resources are not available
try({

airnow_loadDaily() \
  monitor_filter(stateCode == "WA") \
  monitor_leaflet()

}, silent = FALSE)

## End(Not run)

AirMonitor documentation built on Sept. 27, 2024, 9:06 a.m.