Description Usage Arguments Value References Examples
View source: R/wrcc_downloadData.R
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 https://wrcc.dri.edu/cgi-bin/smoke.pl.
1 2 3 4 5 6 | wrcc_downloadData(
startdate = strftime(lubridate::now(tzone = "UTC"), "%Y010101", tz = "UTC"),
enddate = strftime(lubridate::now(tzone = "UTC"), "%Y%m%d23", tz = "UTC"),
unitID = NULL,
baseUrl = "https://wrcc.dri.edu/cgi-bin/wea_list2.pl"
)
|
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 |
String containing WRCC output.
Fire Cache Smoke Monitoring Archive
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Fail gracefully if any resources are not available
try({
fileString <- wrcc_downloadData(20150701, 20150930, unitID = 'SM16')
df <- wrcc_parseData(fileString)
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.