This tool is intended to be used to remove short-scale variation in a fine-resolution LiDAR digital elevation model (DEM). It works by removing peaks and depressions of a specified size in a de-trended version of the DEM. Experiements have shown that this method can be very effective at smoothing LiDAR DEMs without significantly affecting short-scale linear features that are salient for modelling surface drainage. The user must specify the names of the input and output raster files, the neighbourhood size (in cells) which determines the spatial scale of undesirable surface roughness, whether or not to remove only the peaks, whether or not to output a hillshade raster in addition to the de-noised DEM, and the number of significant decimal places. The number of significant decimal places is a parameter that is used in the creation of an integral image, which is used in DEM de-trending, in order to reduce the potential for numerical overflow errors.
The following is an example of a Python script using this tool:
wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
neighbourhoodSize = "5"
peaksOnly = "false"
outputHillshade = "true"
decimalPlaces = "2"
args = [inputFile, outputFile, neighbourhoodSize, peaksOnly, outputHillshade, decimalPlaces]
pluginHost.runPlugin("DenoiseDEM", 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 = "7"
def peaksOnly = "false"
def outputHillshade = "true"
def decimalPlaces = "2"
String[] args = [inputFile, outputFile, neighbourhoodSize, peaksOnly, outputHillshade, decimalPlaces]
pluginHost.runPlugin("DenoiseDEM", args, false)