Elevation relative to watershed minimum and maximum

This tool can be used to express the elevation of a grid cell in a digital elevation model (DEM) as a percentage of the relief between the watershed minimum and maximum values. The user must specify the names of DEM and watershed files.

NoData valued grid cells in the input DEM raster will be assigned NoData values in the output image. The output raster is of the float data type and continuous data scale.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
demFile = wd + "DEM.dep"
watershedFile = wd + "watershed.dep"
outputFile = wd + "output.dep"
args = [demFile, watershedFile, outputFile]
pluginHost.runPlugin("ElevRelativeToWatershedMinMax", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def demFile = wd + "DEM.dep"
def watershedFile = wd + "watershed.dep"
def outputFile = wd + "output.dep"
String[] args = [demFile, watershedFile, outputFile]
pluginHost.runPlugin("ElevRelativeToWatershedMinMax", args, false)

Credits: