extract_reach: Find pixel IDs matching reach i

View source: R/topology.r

extract_reachR Documentation

Find pixel IDs matching reach i

Description

Find pixel IDs matching reach i

Usage

extract_reach(i, x, Tp, sorted = FALSE)

Arguments

i

Reach number to extract

x

Raster stream stack

Tp

optional Topology, only needed for sorting

sorted

Logical, should the ids be returned sorted from upstream to down?

Value

A vector of pixel ids #' @examples data(kamp_dem) kamp = delineate(kamp_dem, outlet = NA) Tp = pixel_topology(kamp) extract_reach(5, kamp$stream, Tp)


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