Burn streams at roads

This tool decements (lowers) the elevations of pixels within an input digital elevation model (DEM) along an input vector stream network at the sites of roads. The user must specify the names of the input DEM, the streams and road network ShapeFiles, the output raster DEM, and the average road width, in pixels. The road width parameter is used to determine the length of channel along stream lines, at the junctions between streams and roads, that the burning (i.e. decrementing) operation occurs.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "DEM.dep"
streamsFile = wd + "streams.shp"
roadsFile = wd + "roads.shp"
outputFile = wd + "output.dep"
roadWidth = "20"
args = [inputFile, streamsFile, roadsFile, outputFile, roadWidth]
pluginHost.runPlugin("BurnStreamsAtRoads", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "DEM.dep"
def streamsFile = wd + "streams.shp"
def roadsFile = wd + "roads.shp"
def outputFile = wd + "output.dep"
def roadWidth = "20"
String[] args = [inputFile, streamsFile, roadsFile, outputFile, roadWidth]
pluginHost.runPlugin("BurnStreamsAtRoads", args, false)

Credits: