simple.precipitation.intensity.index: Simple Precipitation Intensity Index

Description Usage Arguments Details Value Examples

View source: R/climdex.r

Description

This function implements the ETCCDI Simple Precipitation Intensity Index.

Usage

1
simple.precipitation.intensity.index(daily.prec, date.factor)

Arguments

daily.prec

Data to compute index on.

date.factor

Date factor to split by.

Details

The simple precipitation intensity index is computed by taking the sum of precipitation in wet days (days with >1mm of precipitation), and dividing that by the number of wet days in the period. This gives the mean precipitation in wet days.

Value

The mean precipitation in wet days for each period (as defined by date.factor).

Examples

1
2
3
prec.dat <- c(0.1, 3.0, 4.3, 0.9, 1.3, 6.0, 0, 0, 4.0, 1)
phony.date.factor <- factor(rep(1:2, each=5))
sdii <- simple.precipitation.intensity.index(prec.dat, phony.date.factor)

Example output

Loading required package: PCICt

climdex.pcic documentation built on March 26, 2020, 7:17 p.m.