Stream link classification

This tool identifies all interior and exterior links, and source, link, and sink nodes in a stream network. The user must specify the names of an input stream file, a pointer (flow direction) file and the output raster file. The pointer file should be derived using either the D8 or Rho8 flow pointer tools. Each feature is assigned the following identifier in the output image:

1 Exterior Link
2 Interior Link
3 Source Node (head water)
4 Link Node
5 Sink Node

See Also:

Scripting:

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

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

This is a Groovy script also using this tool:

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

Credits: