Reduces short-scale variation in an input DEM using a modified Sun et al. (2007) algorithm.
wbt_feature_preserving_smoothing(
dem,
output,
filter = 11,
norm_diff = 15,
num_iter = 3,
max_diff = 0.5,
zfactor = NULL,
wd = NULL,
verbose_mode = FALSE,
compress_rasters = FALSE,
command_only = FALSE
)
Returns the tool text outputs.
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).
Optional multiplier for when the vertical and horizontal units are not the same.
Changes the working directory.
Sets verbose mode. If verbose mode is FALSE
, tools will not print output messages.
Sets the flag used by 'WhiteboxTools' to determine whether to use compression for output rasters.
Return command that would be executed by system()
rather than running tool.