<< FillAccumulationMap | Ordering streams and traversing networks | FindNetworkTransition >>

CLaRiNet 0.1 beta >> Ordering streams and traversing networks > FillDistanceMap

# FillDistanceMap

Computes along-stream distances to an outlet

### Calling Sequence

    FillDistanceMap ( handle_fdr , handle_dst , outlet [, INLETS] )

### Arguments

handle_fdr

  integer: handle on a flow direction grid

handle_dst

  integer: handle on the raster that will receive the computed along-stream distances to the outlet. This raster is not created by the function, it must exists before and can be created with functions such as `CreateFloatRaster` or `CreateConstantRaster`

outlet

  integer: ID of the outlet pixel, as returned by `XY2rec`

outlet

  By default, the function computes the along-stream distance to the outlet pixel for all pixels upstream this outlet. If you want to exclude some subcatchments you can provide an additional argument which is a vector of inlet IDs. The recursive distance calculation will not go further upstream whenever one of these inlets is met.

### Description

Computes along-stream distances to an outlet and writes the computed values to a raster.

### Examples

### References

### See Also

- XY2rec, CreateFloatRaster, CreateConstantRaster

### Authors

- Nicolas LE MOINE

<< FillAccumulationMap | Ordering streams and traversing networks | FindNetworkTransition >>