river_to_SSN | R Documentation |
Transform a river
in a SpatialStreamNetwork
object.
river_to_SSN(river, ...)
river |
A |
... |
Further arguments to be passed to |
This is an alias to OCNet::OCN_to_SSN
.
A SpatialStreamNetwork
object if importToR
is TRUE
, otherwise NULL
.
fp <- system.file("extdata/wigger.tif", package="rivnet")
r <- extract_river(outlet=c(637478,237413),
DEM=fp)
r <- aggregate_river(r)
s <- river_to_SSN(r, level = "AG", obsSites = sample(r$AG$nNodes, 10),
path = paste(tempdir(),"/river.ssn", sep = ""), importToR = TRUE)
plot(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.