<< MakeStreamLines | Ordering streams and traversing networks | StrahlerOrdering >>

CLaRiNet 0.1 beta >> Ordering streams and traversing networks > SampleMainStream

# SampleMainStream

Samples tributaries along the mainstream of a catchment.

### Calling Sequence

    [ C , W ] = SampleMainStream ( handle_tree )

### Arguments

tree

  integer: handle of the cell tree defining the catchment whose mainstream will be followed.

C

  output: vector containing the outlet cells (record numbers) of all tributaries draining into the mainstream.

W

  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)`.

### Description

Samples tributaries along the mainstream of a catchment.

### Examples

### See Also

- CreateCellTree, XY2rec

### Authors

- Nicolas LE MOINE

<< MakeStreamLines | Ordering streams and traversing networks | StrahlerOrdering >>