Find ridges

This tool can be used to identify ridge cells in a digital elevation model (DEM). Ridge cells are those that have lower neighbours either to the north and south or the east and west. Line thinning can optionally be used to create single-cell wide ridge networks.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
demFile = wd + "DEM.dep"
outputFile = wd + "output.dep"
lineThinning = "true"
args = [demFile, outputFile, lineThinning]
pluginHost.runPlugin("FindRidges", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def demFile = wd + "DEM.dep"
def outputFile = wd + "output.dep"
def lineThinning = "true"
String[] args = [demFile, outputFile, lineThinning]
pluginHost.runPlugin("FindRidges", args, false)

Credits: