get_wb_outlet | R Documentation |
Get Waterbody Outlet
get_wb_outlet(lake_id, network)
lake_id |
integer COMID (or character permanent identifier for hi res) of lake. |
network |
data.frame of network features containing wbareacomi, and Hydroseq |
sf data.frame with single record of network COMID associated with most-downstream reach in the NHD Waterbody
source(system.file("extdata/sample_data.R", package = "nhdplusTools"))
fline <- sf::read_sf(sample_data, "NHDFlowline_Network")
wtbdy <- sf::read_sf(sample_data, "NHDWaterbody")
lake_COMID <- wtbdy$COMID[wtbdy$GNIS_NAME=='Lake Mendota 254']
get_wb_outlet(13293262, fline)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.