Standard deviation of elevation

This tool can be used to calculate the standard deviation of elevations within a moving window of a specified size passed over an input DEM. This is a common measure of local surface roughness. The local neighbourhood (window size) is defined as a rectangular area of a user-specified dimension surrounding each grid cell. Grid cells containing NoData values in 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.

References:

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"
decimalPlaces = "2"
args = [demFile, outputFile, neighbourhoodSize, decimalPlaces]
pluginHost.runPlugin("StandardDeviationOfElevation", 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"
def decimalPlaces = "2"
String[] args = [demFile, outputFile, neighbourhoodSize, decimalPlaces]
pluginHost.runPlugin("StandardDeviationOfElevation", args, false)

Credits: