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 Oct. 22, 2019, 8:32 p.m.