smooth_dem: Smooth Raster Layer

Description Usage Arguments Value Examples

View source: R/smooth_raster.R

Description

Wrapper function for image.smooth.

Usage

1
smooth_dem(x, theta)

Arguments

x

RasterLayer. Single Layer.

...

Arguments passed on to fields::image.smooth

theta

the bandwidth or scale parameter.

Value

RasterLayer

Examples

1
2
3
4
5
r <- raster()
r[] <- seq(1, ncell(r)) + rnorm(ncell(r), 20000, 10000)
plot(r)
r.smoothed <- smooth_dem(r, 10)
plot(r.smoothed)

GastonMauroDiaz/rdemtools documentation built on Sept. 30, 2018, 8:22 p.m.