Transform river into SSN object
river_to_SSN.Rd
Transform a river
in a SpatialStreamNetwork
object.
Details
This is an alias to OCNet::OCN_to_SSN
.
Examples
if (FALSE) { # interactive() && traudem::can_register_taudem()
# \donttest{
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)
# }
}