Skip to contents

Spatially smooth dem by (window) filtering

Usage

smooth_dem(dem, method = "median", window = 5)

Arguments

dem

raster data of dem

method

smoothing function to be used, e.g. "median", as accepted by terra::focal()

window

size of smoothing kernel

Value

filtered dem