Deviation from mean elevation

This tool can be used to calculate the difference between the elevation of each grid cell and the mean elevation of the centering local neighbourhood, normalized by standard deviation. Therefore, this index of topographic residual is essentially equivalent to a local z-score. This attribute measures the relative topographic position as a fraction of local relief, and so is normalized to the local surface roughness.

The user must specify the name of the input digital elevation model (DEM), the name of the output file, and the size of the neighbourhood. Neighbourhood size is specified in map units, e.g. metres.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
neighbourhoodSize = "3"
args = [inputFile, outputFile, neighbourhoodSize]
pluginHost.runPlugin("DeviationFromMeanElevation", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
def neighbourhoodSize = "3"
String[] args = [inputFile, outputFile, neighbourhoodSize]
pluginHost.runPlugin("DeviationFromMeanElevation", args, false)

Credits: