powered by
Apply a smoothing, sharpening or edge filter to a SAGA grid.
rsaga.filter.simple( in.grid, out.grid, mode = "circle", method = c("smooth", "sharpen", "edge"), radius, env = rsaga.env(), ... )
The type of object returned depends on the intern argument passed to the rsaga.geoprocessor(). For intern=FALSE it is a numerical error code (0: success), or otherwise (the default) a character vector with the module's console output.
intern
rsaga.geoprocessor()
intern=FALSE
input: SAGA grid file (default file extension: .sgrd)
.sgrd
output: SAGA grid file
character or numeric: shape of moving window, either "square" (=0) or "circle" (=1, default)
"square"
"circle"
character or numeric: "smooth" (=0), "sharpen" (=1), or "edge" (=2)
"smooth"
"sharpen"
"edge"
positive integer: radius of moving window
list, setting up a SAGA geoprocessing environment as created by rsaga.env()
rsaga.env()
optional arguments to be passed to rsaga.geoprocessor(), including the env RSAGA geoprocessing environment
env
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
rsaga.filter.gauss()
if (FALSE) rsaga.filter.simple("dem","dem-smooth",radius=4)
Run the code above in your browser using DataLab