Assigns numbers to the network's links.
It can be used by Hillslope2ChannelAttribute to label the hillslope flowing into the link with the same number. This module can run in three different modes:

Inputs



Output



Notes

The algorithm start from the channel heads which are numbered first. Then, starting again from each source, the drainage direction are followed till a junction is found. If the link downhill the junction was already numbered, a new source is chosen. Otherwise the network is scanned downstream ad a new number is attributed to the link's pixels.