wrcc_downloadData: Download Data from WRCC

Description Usage Arguments Value References Examples

View source: R/wrcc_downloadData.R

Description

Request data from a particular station for the desired time period. Data are returned as a single character string containing the WRCC output.

Monitor unitIDs can be found at http://www.wrcc.dri.edu/cgi-bin/smoke.pl.

Usage

1
2
3
4
wrcc_downloadData(startdate = strftime(lubridate::now(), "%Y010101", tz
  = "UTC"), enddate = strftime(lubridate::now(), "%Y%m%d23", tz =
  "UTC"), unitID = NULL,
  baseUrl = "https://wrcc.dri.edu/cgi-bin/wea_list2.pl")

Arguments

startdate

desired start date (integer or character representing YYYYMMDD[HH])

enddate

desired end date (integer or character representing YYYYMMDD[HH])

unitID

station identifier (will be upcased)

baseUrl

base URL for data queries

Value

String containing WRCC output.

References

Fire Cache Smoke Monitoring Archive

Examples

1
2
3
4
5
## Not run: 
fileString <- wrcc_downloadData(20150701, 20150930, unitID='SM16')
df <- wrcc_parseData(fileString)

## End(Not run)

MazamaScience/PWFSLSmoke documentation built on March 17, 2019, 9:27 p.m.