View source: R/RSAGA-modules.R
rsaga.sink.route | R Documentation |
Sink drainage route detection.
rsaga.sink.route(in.dem, out.sinkroute, threshold, thrsheight = 100, ...)
in.dem |
input: digital elevation model (DEM) as SAGA grid file (default file extension: |
out.sinkroute |
output: sink route grid file: non-sinks obtain a value of 0, sinks are assigned an integer between 0 and 8 indicating the direction to which flow from this sink should be routed |
threshold |
logical: use a threshold value? |
thrsheight |
numeric: threshold value (default: |
... |
optional arguments to be passed to |
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.
I assume that flow directions are coded as 0 = north, 1 = northeast, 2 = east, ..., 7 = northwest, as in rsaga.fill.sinks()
.
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
rsaga.sink.removal()
## Not run: rsaga.sink.route("dem","sinkroute") rsaga.sink.removal("dem","sinkroute","dem-preproc",method="deepen") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.