Trace downslope flowpaths

This tool can be used to mark the flowpath initiated from user-specified locations downslope and terminating at either the grid's edge or a grid cell with undefined flow direction. The user must input the name of a D8 flow pointer grid and an input file indicating the location of one or more initiation areas (seed points). The seed point file can either be a raster file or a vector file of the POINT shapetype.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
pointerFile = wd + "D8Pointer.dep"
seedFile = wd + "seed.shp"
outputFile = wd + "output.dep"
isBackgroundNodata = "true"
args = [leftInputFile, rightinputFile, outputFile, isBackgroundNodata]
pluginHost.runPlugin("TraceDownslopeFlowpaths", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def pointerFile = wd + "D8Pointer.dep"
def seedFile = wd + "seed.dep"
def outputFile = wd + "output.dep"
def isBackgroundNodata = "true"
args = [leftInputFile, rightinputFile, outputFile, isBackgroundNodata]
pluginHost.runPlugin("TraceDownslopeFlowpaths", args, false)

Credits: