residualDepth: Residual depths from a thalweg profile

Description Usage Arguments Details Value Examples

Description

Calculate residual pool depths from a thalweg profile containing distance depth and slope, treating every depth as a possible base depth.

Usage

1
residualDepth(d, y, s)

Arguments

d

a vector of distances along a thalweg profile

y

a vector of thalweg profile depth measurements

s

a site wide average slope of length 1

Details

The resulting residual depths are returned in the lower triangle of a n * n matrix, where n is the number of depths. The diagonal of the matrix represents the succesive base points. Each row after the diagonal gives the residual depths relative to the base point for that column. Any row with a residual depth > 0 represents a thalweg point that is in a pool. / /| / | / | /

Value

a n * n lower diagonal matrix containing the residual depths. Each column represents the residual depths calculated treating a different thalweg point as the base depth.

Examples

1
allResidualDepth(0:9, runif(10), .01)

jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.