Arranges a channel network enumeration starting from the identification of the branch according to Hack. The main stream is of order 1 and its tributaries of order 2 and so on, the sub-tributaries are of order 3 and so on.
The model can run in two different modes:

Inputs



Output



Notes

The Hack order corresponds (one to one) to the old Horton's network enumeration.
To run the model it is necessary that the outlet pixel presents a drainage direction value equal to 10. If there is not such identification, the program will not work correctly.