Prune a river network at specified reaches.
# S3 method for rivernet
prune(net,reach.up=numeric(0),reach.dn=numeric(0),verbose=TRUE)
Returns pruned object of class "rivernet".
Object of class "rivernet" e.g. read by the function rivernet.read
.
Numerical vector of reach indices from which to prune all upstream reaches (the indicated reaches to prune from will be kept in the pruned network). Note that you can get reach indices from coordinates with the function getreachind.rivernet
.
Numerical vector of reach indices from which to prune all downstream reaches and branches from downstream reaches (the indicated reaches to prune from will be kept in the pruned network). Note that you can get reach indices from coordinates with the function getreachind.rivernet
.
Logical argument to specify whether there should be (minimal) output over what has been done.
rivernet.read
, rivernet.write
,
upstreamconnectivity.rivernet
, adjacentreaches.rivernet
,
utility
.