batch_StreamStats: Download Multiple Stream Stats Locations

View source: R/download_StreamStats.R

batch_StreamStatsR Documentation

Download Multiple Stream Stats Locations

Description

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

Usage

batch_StreamStats(data, group, crs = 4326, parallel = FALSE)

Arguments

data

A data.frame with lon,lat variables. optional

group

A vector to group by. optional

crs

A numeric crs value

parallel

logical indicating whether to use future_map().

Value

Returns an sf (simple feature) object with associated basin characteristics.

References

\insertAllCited

Examples

## 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)

joshualerickson/wildlandhydRo documentation built on Feb. 12, 2024, 6:40 p.m.