get_nldi_basin: Get NLDI Basin Boundary

Description Usage Arguments Details Value Examples

View source: R/get_nldi.R

Description

Get a basin boundary for a given NLDI feature.

Usage

1
get_nldi_basin(nldi_feature)

Arguments

nldi_feature

list with names 'featureSource' and 'featureID' where 'featureSource' is derived from the "source" column of the response of dataRetrieval::get_nldi_sources() and the 'featureSource' is a known identifier from the specified 'featureSource'.

Details

Only resolves to the nearest NHDPlus catchment divide. See: https://waterdata.usgs.gov/blog/nldi-intro/ for more info on the nldi.

Value

sf data.frame with result basin boundary

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(sf)
library(dplyr)

nldi_nwis <- list(featureSource = "nwissite", featureID = "USGS-05428500")

basin <- get_nldi_basin(nldi_feature = nldi_nwis)

basin %>%
 st_geometry() %>%
 plot()

basin

nhdplusTools documentation built on June 23, 2021, 9:07 a.m.