BL.acc {BLRPM}R Documentation

Accumulation of a precipitation stepfunction

Description

BL.acc accumulates the BLRPM stepfunction for a given accumulation time t.acc at a given accumulation level acc.val. An offse can be defined. The unit is typically hours.

Usage

BL.acc(sfn, t.acc = 240, acc.val = 1, offset = 0)

Arguments

sfn

stepfunction of precipitation

t.acc

value specifiying the length of accumulated time series [h]

acc.val

value specifying the accumulation level [h]

offset

value specifying the offset of the accumulated time series [h]

Value

p.acc data.frame

Author(s)

Christoph Ritschel christoph.ritschel@met.fu-berlin.de

Examples

lambda <- 4/240
gamma <- 1/10
beta <- 0.3
eta <- 2
mux <- 4
t.sim <- 240
t.acc <- t.sim
acc.val <- 1
offset <- 0

simulation <- BL.sim(lambda,gamma,beta,eta,mux,t.sim)
sfn <- BL.stepfun(simulation$cells)
ts <- BL.acc(sfn,t.acc,acc.val,offset)

[Package BLRPM version 1.0 Index]