This tool calculates the maximum 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.
A temporary image is created during the operation of this tool. This 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.
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("MaxUpslopeFlowpathLength", 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("MaxUpslopeFlowpathLength", args, false)