connect: Returns all points in the watershed connecting two points

View source: R/topology.r

connectR Documentation

Returns all points in the watershed connecting two points

Description

This is a simple wrapper to accumulate that only returns the pixels

Usage

connect(ws, upstream, downstream = Inf)

Arguments

ws

Watershed object

upstream

ID number of upstream point; if Inf ALL upstream pixels will be returned

downstream

ID of downstream point; if Inf ALL downstream pixels will be returned

Value

A vector of pixel ids


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