Elevation relative to min and max

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 DEM minimum and maximum values.

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"
outputFile = wd + "output.dep"
args = [demFile, outputFile]
pluginHost.runPlugin("ElevRelativeToMinMax", 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"
String[] args = [demFile, outputFile]
pluginHost.runPlugin("ElevRelativeToMinMax", args, false)

Credits: