rsaga.sink.removal {RSAGA} | R Documentation |
Remove sinks from a digital elevation model by deepening drainage routes or filling sinks.
rsaga.sink.removal(in.dem, in.sinkroute, out.dem, method = "fill", ...)
in.dem |
input: digital elevation model (DEM) as SAGA grid file
(default file extension: .sgrd ) |
in.sinkroute |
optional input: sink route grid file |
out.dem |
output: modified DEM |
method |
character string or numeric value specifying the algorithm
(partial string matching will be applied):
"deepen drainage route" (or 0): reduce the elevation of pixels
in order to achieve drainage out of the former sinks
"fill sinks" (or 1): fill sinks until none are left |
... |
optional arguments to be passed to rsaga.geoprocessor ,
including the env RSAGA geoprocessing environment |
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.
This function uses module 1 from SAGA library ta_preprocessor
.
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
rsaga.sink.route
, rsaga.fill.sinks
## Not run: rsaga.sink.route("dem","sinkroute") rsaga.sink.removal("dem","sinkroute","dem-preproc",method="deepen") ## End(Not run)