Calculates the distance of each pixel from the outlet, measured along the drainage directions. By aggregating the matrix so obtained, we
get the so called width function. It can evaluate the distance as a projection of the plan or the real distance (3d mode).
The program can work in three different ways:
- calculate the distance (projected on the plane) from the outlet in pixel number (pMode = 0)
- calculate the distance (projected on the plane) from the outlet in meters on the plane (pMode = 1)
- calculate the distance (in 3d) from the outlet in meters in 3d (pMode = 1 and the inPit map not null)
Inputs
- The GridCoverage containing the matrix of the drainage directions (obtained with [Markoutlets]);
- The GridCoverage of elevations (obtained with [Pitfiller]) if it run in 3d mode;
Output
- The GridCoverage containing the matrix of the distances.
References
- [Bibliography#15, 15] P. D’Odorico, 2003
- [Bibliography#16, 16] M. Kirkby, 1986