wsdi {ClimInd}R Documentation

Warm spell duration

Description

Number of days which are part of groups of at least 6 consecutive days when TX > 90th percentile. The 90th percentile is computed based on the time scale selected (month, season or year) not daily as ETCCDI does. If you want to compute daily you can use RClimDex package.

Usage

wsdi(data, data_names = NULL, time.scale = YEAR, na.rm = FALSE)

Arguments

data

daily maximum temperature, Celsius

data_names

names of each period of time

time.scale

month, season or year

na.rm

logical. Should missing values (including NaN) be removed?

Value

days

Examples

data(data_all)
wsdi(data=data_all$tx)

[Package ClimInd version 0.1-3 Index]