scalar {hydromad}R Documentation

Simple constant runoff proportion

Description

Simple constant runoff proportion: a constant fraction of rainfall reaches the stream.

Usage

scalar.sim(DATA, scale, return_state = FALSE)

Arguments

DATA

time-series-like object with a column P (precipitation).

scale

fraction of rainfall that becomes effective. If this parameter is set to NA (as it is by default) in hydromad it will be set by mass balance calculation.

return_state

ignored.

Value

the simulated effective rainfall, a time series of the same length as the input series.

Author(s)

Felix Andrews felix@nfrac.org

See Also

hydromad(sma = "scalar") to work with models as objects (recommended).

Examples

## view default parameter ranges:
str(hydromad.options("scalar"))

data(HydroTestData)
mod0 <- hydromad(HydroTestData, sma = "scalar", routing = "expuh")
mod0

## simulate with some arbitrary parameter values
testQ <- predict(update(mod0, scale = 0.5, tau_s = 10))
xyplot(cbind(HydroTestData[,1:2], scalar.Q = testQ))
[Package hydromad version 0.9-18 Index]