calc_spi: spi calculations

Description Usage Arguments

Description

spi calculations

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
calc_spi(
  temp = NULL,
  date_factor,
  param = FALSE,
  timescale,
  ref,
  distribution,
  NAmaxAgg = 20,
  iformat,
  limit = 4
)

Arguments

temp

vector of daily precipitation data to calculate SPI

date_factor

factors of dates

timescale

Integer. Timescale for monthly SPI calculation. The timescale is the window length (in month) of a backward looking running mean. Default = 6.

ref

Vector with start and end year for reference period. If no reference period is specified, the full period is used as reference period.

distribution

A character string naming a distribution of package stats (see for example GammaDist). For more information on the choice of the distribution, see section Details. Default = "gamma".

NAmaxAgg

number of days to check for <<mcdd>>

limit

Truncate SPI values that are larger than a given threshold, as values larger than 4 are not reasonable. Default = 4. The truncation can be disabled by setting limit = Inf.

forecast

logical; Returns SPI parameters of historical timeseries to transform forecast data. Default = FALSE


Climandes/ClimIndVis documentation built on Oct. 24, 2021, 10:52 a.m.