Stream Slope (Continuous)

This tool can be used to estimate the channel of stream grid cells contained within a raster stream network.


See Also:


Scripting:

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

wd = pluginHost.getWorkingDirectory()
streams = wd + "streams.dep"
demFile = wd + "DEM.dep"
pointerFile = wd + "D8 pointer.dep"
outputFile = wd + "output.dep"
useNoData = "false"
args = [streams, demFile, pointerFile, outputFile, useNoData]
pluginHost.runPlugin("StreanSlopeContinuous", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def streams = wd + "streams.dep"
def demFile = wd + "DEM.dep"
def pointerFile = wd + "D8 pointer.dep"
def outputFile = wd + "output.dep"
def useNoData = "true"
String[] args = [streams, demFile, pointerFile, outputFile, useNoData]
pluginHost.runPlugin("StreanSlopeContinuous", args, false)


Credits: