RHMS (version 1.1)

loss: Excess rainfall computation

Description

this function provides parametric methods (e.g. 'horton' and 'SCS') to compute loss and direct runoff depth

Usage

loss(precipitation,lossParams=list(f0,f1,k,CN),
simulation=c(interval=3600,period=NA),lossMethod)

Arguments

precipitation

a vector of precipitation time series(mm)

lossParams

a list: list of parameters associated to the selcted type of 'lossMethod': 'CN' for 'SCS' and 'f0', 'f1', 'k' for 'horton'

simulation

a vector of simulation interval (in second) and time steps (an integer)

lossMethod

a string including the type of lossMethod: 'SCS' and 'horton'

Value

a dataframe: including precipitation, loss, and exess rainfall depth

See Also

createSubbasin

Examples

Run this code
# NOT RUN {
precipitation<-sin(seq(0.1,pi-0.1,length.out=10))*30
lossParams<-list(f0=20,f1=5,k=2,CN=65)
simulation<-c(interval=3600,period=NA)
lossMethod<-c("horton","SCS")
Horton_loss<-loss(precipitation,lossParams,simulation,lossMethod[1])
SCS_loss<-loss(precipitation,lossParams,simulation,lossMethod[2])
# }

Run the code above in your browser using DataLab