Reduces short-scale variation in an input DEM while preserving breaks-in-slope and small drainage features using a modified Sun et al. (2007) algorithm.
drainage_preserving_smoothing(dem, output, filter = 11, norm_diff = 15,
num_iter = 10, max_diff = 2, reduction = 80, dfm = 0.15,
zfactor = 1, verbose_mode = FALSE)
Input raster DEM file.
Output raster file.
Size of the filter kernel.
Maximum difference in normal vectors, in degrees.
Number of iterations.
Maximum allowable absolute elevation change (optional).
Maximum Amount to reduce the threshold angle by (0 = full smoothing; 100 = no smoothing).
Difference from median threshold (in z-units), determines when a location is low-lying.
Optional multiplier for when the vertical and horizontal units are not the same.
Sets verbose mode. If verbose mode is False, tools will not print output messages.
Returns the tool text outputs.