View source: R/wrcc_loadMeta.R
wrcc_loadMeta | R Documentation |
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
)
stateCode |
Two character state code (will be downcased). |
newDownload |
Logical flag stating whether or not to download and override existing data. |
baseUrl |
Base URL for data queries. |
verbose |
Logical flag controlling detailed progress statements. |
Dataframe containing station metadata.
Program for Climate, Ecosystem and Fire Applications
wrcc_createMeta
setRawsDataDir
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.