Difference from mean elevation

This tool can be used to calculate the difference in between the elevation of each grid cell in an input DEM and the average elevation in the local neighbourhood. The local neighbourhood is defined as a circular area of a user-specified dimension surrounding each grid cell.

Grid cells containing NoData values in any of the input images are assigned the NoData value in the output raster. 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"
neighbourhoodSize = "5"
args = [demFile, outputFile, neighbourhoodSize]
pluginHost.runPlugin("DifferenceFromMeanElevation", 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 neighbourhoodSize = "5"
String[] args = [demFile, outputFile, neighbourhoodSize]
pluginHost.runPlugin("DifferenceFromMeanElevation", args, false)

Credits: