rai: Calculate Rainfall Anomaly Index (RAI)

Description Usage Arguments Value Author(s) References See Also Examples

Description

Calculate RAI and the drought specifications with the length, the drought type and the intensity

Usage

1
rai(monthly_data, time_step = 12)

Arguments

monthly_data

[zoo] rainfall monthly data in zoo class with date in %Y-%m-%d

time_step

[numeric] default = 12, time step to sum monthly precipitation (1, 3, 6, 9, 12, 24 and 48)

Value

List that contains

Author(s)

Florine Garcia (florine.garcia@gmail.com)

Pierre L'Hermite (pierrelhermite@yahoo.fr)

References

Van Rooy, M. P. (1965). A rainfall anomaly index independent of time and space. Notos, 14, 43–48.

See Also

plot_trend plot the index

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Loading data
data("dailyPrec_bv1")

## Index
result <- rai(dailyPrec, time_step = 12)

## Plot index
plot_trend(result$rai, trend = TRUE, data_kind = "RAI",
name = PluvioData$PluvioName, axis_name_x = "Date",
axis_name_y = RAI [], midvalue = 0)

flogrc/piflow documentation built on May 24, 2019, 7:34 a.m.