Marks all the outlets of the considered region on the drainage directions map with the conventional value 10. In fact some applications in JGrassTools request that the outlets are specified explicitly.

Inputs



Output



Notes

The program works following the drainage directions until it finds a value that is not a drainage direction. Then it marks the point directly upriver as outlet.