Stream link average slope

This tool can be used to measure the average slope gradient of each link in a stream network. The user must specify the names of a stream link ID raster image, D8 pointer image, and a digital elevation model (DEM). The pointer image is used to traverse the stream network and should only be created using the D8 algorithm. Stream cells are designated in the stream link ID image as all positive, non-zero values. The tool will output a raster image as well as a text file specifying the slope gradient for each link. Gradients in the ouputs are presented as percents. If units of degrees are required, the appropriate conversion should be made. Background cells will be assigned the NoData value 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()
streamsID = wd + "stream ID.dep"
pointerFile = wd + "D8 pointer.dep"
demFile = wd + "DEM.dep"
outputFile = wd + "output.dep"
args = [streamsID, pointerFile, demFile, outputFile]
pluginHost.runPlugin("StreamLinkSlope", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def streamsID = wd + "stream ID.dep"
def pointerFile = wd + "D8 pointer.dep"
def demFile = wd + "DEM.dep"
def outputFile = wd + "output.dep"
String[] args = [streamsID, pointerFile, demFile, outputFile]
pluginHost.runPlugin("StreamLinkSlope", args, false)