Skip to contents

Creates a linear storage curve with a given slope and intercept, viz. \(\text{Volume} = \text{slope} \times \text{Level} + \text{intercept}\).

Usage

linear_storage_curve(intercept, slope)

Arguments

intercept

a number. Intercept of the linear storage curve.

slope

a number. Slope of the linear storage curve

Value

A function with signature function(level), whose argument is assumed to be a numeric vector, that computes volumes from lake levels according to the prescribed linear relationship.

Details

The handling of units of measurement is left to the user.

Author

Pablo Amador Crespo, Valerio Gherardi