Return terminal reaches from collection intersecting lake
Return terminal reaches from collection intersecting lake
In the case of a network query, a terminal reach is a stream flowline that has no downstream reaches in-network. In the case of a point query, a terminal reach is a flowline that exits the intersecting surface waterbody.
lon: numeric decimal degree longitude. optional. See Details section.
lat: numeric decimal degree latitude. optional. See Details section.
buffer_dist: numeric buffer around lat-lon point in dec. deg.
network: sf lines collection. optional. See Details section.
lakepoly: sf polygon. optional. See Details section.
lakewise: logical. If TRUE, return the terminal reaches of all lakes in the stream network rather than a single terminal reach of the focal lake.
lakesize_threshold: numeric above which to count as a lake (ha).
approve_all_dl: logical blanket approval to download all missing data. Defaults to TRUE if session is non-interactive.
temporary: logical set FALSE to save data to a persistent rappdirs location
...: parameters passed on to sf::st_read
Returns
An sf data frame with LINESTRING geometries
Details
There are multiple ways to execute terminal_reaches:
Only providing lon + lat arguments - this will query the corresponding lake polygon layer and find the terminal reach of the lake intersecting a buffer around the specified point.
Only providing a lake polygon - this is essentially the same as above except there is no preliminary lake polygon query.
Only providing a network of stream lines - this provides the most downstream reach irrespective of lakes.