connectCPP: Connect points in a watershed, accumulating a value as we go

View source: R/RcppExports.R

connectCPPR Documentation

Connect points in a watershed, accumulating a value as we go

Description

The values and ds pixels should match; i.e., values[i] is the value for pixel i, and dsPixel[i] is that pixel's downstream pixel

Usage

connectCPP(dsPixel, upstream, downstream, value)

Arguments

dsPixel

A vector of downstream pixels, diPixel[i] is downstream from pixel i

upstream

The id of the upstream point

downstream

The id of the downstream point

value

A vector of values to accumulate

Value

A list, the first entry is the connected pixels, the second the accumulation up to (but excluding) each pixel


mtalluto/WatershedTools documentation built on May 21, 2022, 7:49 p.m.