PWFSLSmoke (version 1.2.117)

airnow_downloadHourlyData: Download hourly data from AirNow

Description

The https://airnowtech.org site provides both air pollution monitoring data as well as monitoring site location metadata. This function retrieves a single, hourly data file and returns it as a dataframe which includes a monitor's site name and parameters monitored.

Usage

airnow_downloadHourlyData(
  datestamp = strftime(lubridate::now(tzone = "UTC"), "%Y%m%d00", tz = "UTC"),
  baseUrl = "https://files.airnowtech.org/airnow"
)

Arguments

datestamp

Integer or character representing YYYYMMDDHH.

baseUrl

Base URL for archived hourly data.

Value

Dataframe of AirNow hourly data.

See Also

airnow_createDataDataframes

airnow_downloadParseData

Examples

Run this code
# NOT RUN {
# Fail gracefully if any resources are not available
try({

df <- airnow_downloadHourlyData(2018070112)

}, silent = FALSE)
# }

Run the code above in your browser using DataLab