upstream: Simple topology analysis Simple functions for extracting...

upstreamR Documentation

Simple topology analysis Simple functions for extracting information from river topologies

Description

Simple topology analysis Simple functions for extracting information from river topologies

Usage

.upstream(Tx, j)

.downstream(Tx, i)

.headwater(Tx)

.outlet(Tx)

.is_headwater(Tx)

.is_outlet(Tx)

.upstream_r(i, x, Tx)

Arguments

Tx

A (pixel or reach) topology

i, j

Focal node

x

A stream raster stack (as produced by delineate())

Details

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.

Value

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


flee-group/watershed documentation built on July 25, 2022, 12:46 p.m.