View source: R/wrcc_createMeta.R
wrcc_createMeta | R Documentation |
Assembles individual station metadata from a WRCC webservice into a standardized dataframe. Metdata columns include:
deviceDeploymentID
– unique identifier
deviceID
– device identifier
locationID
– location identifier
locationName
– English language name
longitude
– decimal degrees E
latitude
– decimal degrees N
elevation
– elevation of station in m
countryCode
– ISO 3166-1 alpha-2
stateCode
– ISO 3166-2 alpha-2
timezone
– Olson time zone
nwsID
– NWS station identifier
wrccID
– WRCC station identifier (in WRCC data)
nessID
– NESS station identifier (in WRCC data)
agencyName
– responsible agency (in WRCC data)
Because of the large number of web requests required to assemble this
metadata, it is recommended that the file be saved and reused by calling
wrcc_loadMeta()
.
wrcc_createMeta(
stateCode = NULL,
wrccIDs = NULL,
baseUrl = "https://raws.dri.edu/",
verbose = TRUE
)
stateCode |
Two character state code (will be downcased). |
wrccIDs |
Vector of wrccIDs to be used instead of |
baseUrl |
Base URL for data queries. |
verbose |
Logical flag controlling detailed progress statements. |
Dataframe of station metadata.
wrcc_loadMeta
setRawsDataDir
## Not run:
# Fail gracefully if any resources are not available
try({
library(RAWSmet)
wa_meta <- wrcc_createMeta(stateCode = 'WA', verbose = TRUE)
dplyr::glimpse(wa_meta, width = 75)
}, silent = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.