mean_roughness: Mean Roughness

mean_roughnessR Documentation

Mean Roughness

Description

Calculates the mean roughness of a CSarbitrary object for a given set of water levels, based on Einstein (1934).

Usage

mean_roughness(object, h)

Arguments

object

A CSarbitrary object.

h

A numeric vector of water levels [m].

Value

A numeric vector representing the mean roughness for the given water levels.

Examples

# Example usage:
x <- c(0, 4, 9, 13)
z <- c(2, 0, 0, 2)
cs <- CSarbitrary(x = x, z = z, xb_l = 4, xb_r = 9, kSt_B = 35,
                  kSt_l = 45, kSt_r = 45)
h_levels <- c(1, 2)  # water levels
mean_roughness(cs, h_levels)

hydReng documentation built on April 4, 2025, 1:57 a.m.