Calculates for each hillslope pixel its distance from the river networks, following the steepest descent (i.e. the drainage directions). It can evaluate the distance a projection of the plan or the real distance (3d mode).



Inputs

  1. The !GridCoverage containing the drainage directions, obtained with [Markoutlets];
  2. The !GridCoverage containing the network, obtained with [ExtractNetwork];
  3. The !GridCoverage containing the elevation, obteined with [Pitfiller];


Output

  1. The !GridCoverage containing the distance of every point from the river network;


Notes

The program can work in three different ways:
  1. calculate the distance (projected on the plane) from the outlet in pixel number (pMode = 0)
  2. calculate the distance (projected on the plane) from the outlet in meters on the plane (pMode = 1 and inPit null)
  3. calculate the distance (in 3d) from the outlet in meters in 3d (pMode = 1 and the inPit map not null)


References