Average upslope flowpath length

This tool calculates the average length of the flowpaths that run through each grid cell (in map horizontal units) in a flow pointer grid. The user must specify the name of a flow pointer grid derived using the D8 flow algorithm and the output raster image.

Three temporary images are created during the operation of this tool. Each of the temporary images should be automatically deleted upon successful completion. NoData valued grid cells in the input pointer image will be assigned NoData values in the output image. The output raster is of the float data type and continuous data scale.

See Also:


The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
pointerFile = wd + "D8 pointer.dep"
outputFile = wd + "output.dep"
args = [pointerFile, outputFile]
pluginHost.runPlugin("AverageUpslopeFlowpathLength", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def pointerFile = wd + "D8 pointer.dep"
def outputFile = wd + "output.dep"
String[] args = [pointerFile, outputFile]
pluginHost.runPlugin("AverageUpslopeFlowpathLength", args, false)