Samples tributaries along the mainstream of a catchment.
[ C , W ] = SampleMainStream ( handle_tree )
integer: handle of the cell tree defining the catchment whose mainstream will be followed.
output: vector containing the outlet cells (record numbers) of all tributaries draining into the mainstream.
output : vector having the same size as C
, giving the total upstream weight of the corresponding catchments. W(i)
is the total upstream weight of the catchment above cell C(i)
.
Samples tributaries along the mainstream of a catchment.