View source: R/cefa_downloadData.R
cefa_downloadData | R Documentation |
Request data for a particular station. Data are returned as a single character string containing the RAWS output.
Station identifiers can be found at https://cefa.dri.edu/raws/RAWSfw13list.xlsx
and can be downloaded with cefa_createMeta
.
cefa_downloadData(nwsID = NULL, baseUrl = "https://cefa.dri.edu/raws/fw13/")
nwsID |
NWS RAWS station identifier. |
baseUrl |
Base URL for data queries. |
String containing RAWS data.
Program for Climate, Ecosystem and Fire Applications
## Not run:
# Fail gracefully if any resources are not available
try({
library(RAWSmet)
fileString <- cefa_downloadData(nwsID = 500742)
print(readr::read_lines(fileString)[1:10])
}, silent = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.