q_from_flow: Compute discharge from flow measurements

View source: R/hydrology.r

q_from_flowR Documentation

Compute discharge from flow measurements

Description

Compute discharge from flow measurements

Usage

q_from_flow(
  depth,
  velocity,
  flowID = rep(1, length(depth)),
  width,
  widthID = rep(1, length(width)),
  na.rm = FALSE
)

Arguments

depth

a vector of depth measurements

velocity

a vector of velocity measurements

flowID

a vector of IDs (e.g., site numbers) corresponding to depth/velocity measurements

width

a vector of stream widths

widthID

a vector of IDs for width measurements to match to flowID

na.rm

should NAs be removed before computation?

Value

A data.table giving discharge by ID


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