spi calculations
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
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.