Learn R Programming

LPM (version 3.2)

rain.adapt: Rainfall Adaptor

Description

Apply a corrective procedure to daily rainfall series to enforce actual caracteristics.

Usage

rain.adapt(x, a, ser)

Value

Corrected series

Arguments

x

Observed series

a

Univariate series to modify (simulated series)

ser

Series identification number

Author

Salvatore Grimaldi

Details

The no-rain frequency consequentally the total rainfall depth of the observed series are enforced on the synthetic series

References

Grimaldi S., F. Napolitano, L. Ubertini, 'A procedure to use linear parametric models for daily rainfall series simulation'

Examples

Run this code
##   rain=lpm(series.rainfall[,1],1,1,1,120,120)
##   rain.adapt(series.rainfall[,1],rain$sim[[1]],1)
##-- ==>  Apply rain adaptor to a simulated series with a ARMA(1,1) model

Run the code above in your browser using DataLab