Builds the streamlines (set of polylines) of a drainage network with a specified support threshold area
[ STREAMS , downStream , downCell ] = MakeStreamLines ( handle_tree , threshold )
integer: handle of the cell tree defining the catchment whose flowlines are to be built.
Support area (i.e. minimum weight) defining the first-order streams.
output: object of type list
containing the streamlines. STREAMS(i)
is a vector containing the cells (recor numbers) of streamline i, sorted downstream to upstream.
output: vector of length length(STREAMS)
indicating the outlet stream of each stream. Stream STREAMS(i)
drains into stream STREAMS(downStream(i))
.
output: vector of length length(STREAMS)
indicating the outlet cell of each steam. The most downstream cell of stream i, STREAMS(i)(1)
, drains into cell downCell(i)
(this cell belongs to stream STREAMS(downStream(i))
).
Builds the streamlines (set of polylines) of a drainage network with a specified support threshold area, as well as the topology between thoses streams.