riv2nodes: Obtain graph nodes from HydroSheds river network

Description Usage Arguments Value

View source: R/river_topology.r

Description

Extract the nodes of the HydroSheds river network.

Usage

1
riv2nodes(riv)

Arguments

riv

a sf dataframe with a topologicaly valid river network. Each linestrings is ordered from upstream (first point of the linestring) to downstream (last point of the linestring), just like in the HydroSheds dataset

Value

nodes a sf dataframe of points marking the nodes of the river network defined as the inlet of each river reach.


jmigueldelgado/a5udes documentation built on Dec. 21, 2021, 1:12 a.m.