upstreamconnectivity.rivernet {rivernet} | R Documentation |
Calculates connectivity from outlet to upstream reaches
Description
Calculates connectivity from the outlet to upstream reaches, in particular to stream order 1 reaches. Criteria can be provided for reaches as well as nodes.
Usage
## S3 method for class 'rivernet'
upstreamconnectivity(x,crit.reach,crit.node,thresh.length=0,...)
Arguments
x |
Object of class "rivernet" e.g. read by the function |
crit.reach |
Logical vector of the same length as the number of reaches. Indicates whether the reach can be counted as connecting between adjacent reaches. |
crit.node |
Logical vector of the same length as the number of (internal) nodes of the river network. Indicates wheter the node can be counted as connecting between adjacent reaches (e.g. small drop height that allows for fish migration). |
thresh.length |
Threshold lenght below which a reach (or a sequence of reaches) can be accepted as connecting even if their criterion |
... |
. |
Value
List with the following entries:
paths.reachable
: List of numeric vectors specifying the indices of the reaches of a reachable path. Note that this is a subset of the reaches given in the same component of the element paths
of the river network.
firstorder.reachable
: Vector of logicals indicating if the corresponding paths given above reach first order rivers.
fract.firstorder.reachable
: fraction of first order segments that can be reached (under the conditions specified by crit.reach
, crit.node
and thresh.length
).
streamorder.reachable
: vector of reachable rivers of order 1, 2, etc.
See Also
rivernet.read
, mean.rivernet
, adjacentreaches.rivernet
,
utility
.