Prunes the outer reaches of an input vector stream network based on a threshold in the upstream channel length.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
streamsFile = wd + "streams.shp"
demFile = wd + "dem.dep"
outputFile = wd + "output.dep"
threshold = "100.0"
extendMainStem = "true"
args = [streamsFile, demFile, outputFile, threshold, extendMainStem]
pluginHost.runPlugin("PruneVectorStreamNetwork", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def streamsFile = wd + "streams.shp"
def demFile = wd + "dem.dep"
def outputFile = wd + "output.dep"
def threshold = "100.0"
def extendMainStem = "true"
String[] args = [streamsFile, demFile, outputFile, threshold, extendMainStem]
pluginHost.runPlugin("PruneVectorStreamNetwork", args, false)