rsaga.close.gaps {RSAGA}R Documentation

SAGA Module Close Gaps

Description

Close (Interpolate) Gaps

Usage

rsaga.close.gaps(in.dem, out.dem, threshold = 0.1, ...)

Arguments

in.dem input: digital elevation model (DEM) as SAGA grid file (default file extension: .sgrd)
out.dem output: DEM grid file without no-data values (gaps). Existing files will be overwritten!
threshold tension threshold for adjusting the interpolator (default: 0.1)
... optional arguments to be passed to rsaga.geoprocessor, including the env RSAGA geoprocessing environment

Details

Larger tension thresholds can be used to reduce overshoots and undershoots in the surfaces used to fill (interpolate) the gaps.

Value

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 (default) a character vector with the module's console output.

Note

This function uses module 7 from the SAGA library grid_tools.

Author(s)

Alexander Brenning (R interface), Olaf Conrad (SAGA module)

See Also

rsaga.geoprocessor, rsaga.env

Examples

## Not run: 
# using SAGA grids:
rsaga.close.gaps("rawdem.sgrd","dem.sgrd")
# using ASCII grids:
rsaga.esri.wrapper(rsaga.close.gaps,in.dem="rawdem",out.dem="dem")
## End(Not run)

[Package RSAGA version 0.9-1 Index]