Loads WRCC station metadata for a given state from the
rawsDataDir
. If the data is not in this directory, this will download
and save the data.
wrcc_loadMeta(
stateCode = NULL,
newDownload = FALSE,
baseUrl = "https://raws.dri.edu/",
verbose = TRUE
)
Two character state code (will be downcased).
Logical flag stating whether or not to download and override existing data.
Base URL for data queries.
Logical flag controlling detailed progress statements.
Dataframe containing station metadata.
wrcc_createMeta
setRawsDataDir
if (FALSE) {
# Fail gracefully if any resources are not available
try({
# For creation of metadata
library(MazamaSpatialUtils)
setSpatialDataDir("~/Data/Spatial")
loadSpatialData("NaturalEarthAdm1.rda")
library(RAWSmet)
setRawsDataDir("~/Data/RAWS")
wa_meta <- wrcc_loadMeta(stateCode = "WA")
dplyr::glimpse(wa_meta, width = 80)
}, silent = FALSE)
}