siteByPixel: Compute a site by pixel accumulation matrix

View source: R/watershed.r

siteByPixelR Documentation

Compute a site by pixel accumulation matrix

Description

The default behavior computes distance, where positive numbers indicate downstream distances and negative numbers indicate upstream distances. Other variables can also be used, but in all cases the values will be summed to compute the 'distance'

Usage

siteByPixel(ws, x, variable = "length")

Arguments

ws

A Watershed

x

A vector of pixel ids from which to compute the distance

variable

The variable to use for the distance

Details

Upstream distances do NOT include intermediate pixels; they only include pixels in 'x'

Value

A matrix with dimensions 'length(x)' by 'nrow(ws)'


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