upstream | R Documentation |
Simple topology analysis Simple functions for extracting information from river topologies
.upstream(Tx, j) .downstream(Tx, i) .headwater(Tx) .outlet(Tx) .is_headwater(Tx) .is_outlet(Tx) .upstream_r(i, x, Tx)
Tx |
A (pixel or reach) topology |
i, j |
Focal node |
x |
A stream raster stack (as produced by |
upstream/downstream take a single node as input, and return the up- or downstream node. Outlets/headwaters analyzes the entire toplogy and finds nodes that have no downstream or upstream neighbours.
The id (corresponding to dims of Tx) of the desired node(s)
For .upstream_r
, A named2-column matrix, 'to' is the downstream reach (i.e., i) and
'from' contains ids of the reach(es) upstream of i; or NULL if there are none
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.