View source: R/download_StreamStats.R
batch_StreamStats | R Documentation |
Takes sf point object and returns catchment characteristics and watershed boundary (sf). Uses geocode_rev to get the state identifier and computeChars and delineateWatershed to generate basin delineation(s) and characteristics, which use methods from \insertCiteries2017streamstatswildlandhydRo
batch_StreamStats(data, group, crs = 4326, parallel = FALSE)
data |
A |
group |
A vector to group by. |
crs |
A |
parallel |
|
Returns an sf (simple feature) object with associated basin characteristics.
## Not run:
# Bring in data
data <- tibble(Lat = c(48.30602, 48.62952, 48.14946),
Lon = c(-115.54327, -114.75546, -116.05935),
Site = c("Granite Creek", "Louis Creek", "WF Blue Creek"))
data <- data %>% sf::st_as_sf(coords = c('Lon', 'Lat')) %>% sf::st_set_crs(4326)
three_sites <- batch_StreamStats(data, group = 'Site',
crs = 4326)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.