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/")

Arguments

nwsID

NWS RAWS station identifier.

baseUrl

Base URL for data queries.

Value

String containing RAWS data.

Examples

if (FALSE) {
# 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)
}