scalar {hydromad} | R Documentation |
Simple constant runoff proportion: a constant fraction of rainfall reaches the stream.
scalar.sim(DATA, scale, return_state = FALSE)
DATA |
time-series-like object with a column P (precipitation). |
scale |
fraction of rainfall that becomes effective.
If this parameter is set to |
return_state |
ignored. |
the simulated effective rainfall, a time series of the same length as the input series.
Felix Andrews felix@nfrac.org
hydromad(sma = "scalar")
to work with models as objects (recommended).
## 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))