Computes along-stream distances to an outlet
FillDistanceMap ( handle_fdr , handle_dst , outlet [, INLETS] )
integer: handle on a flow direction grid
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
integer: ID of the outlet pixel, as returned by XY2rec
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.
Computes along-stream distances to an outlet and writes the computed values to a raster.