Skip to contents

Transform a river in a SpatialStreamNetwork object.

Usage

river_to_SSN(river, ...)

Arguments

river

A river object.

...

Further arguments to be passed to OCN_to_SSN.

Value

A SpatialStreamNetwork object if importToR is TRUE, otherwise NULL.

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)
# }
}