Skip to content

SPI time steps #573

Answered by jamaa
ClaudiaEPM asked this question in Q&A
Discussion options

You must be logged in to vote

In theory, the aggregation period period should always be before the date being considered. Otherwise you would never be able to calculate SPI for the current month (with future months yet unknown). I'm pretty sure climate_indices also works like this. Correspondingly, you will also get NaN values for the first few timesteps of the SPI time series, until the aggregation period is full.

So e.g. for a precipitation time series starting in January, when you calculate SPI.3M, the January and February values will both be NaN, and March will have the first real SPI value. This SPI value for March will account for the cumulative precipitation of Jan, Feb, March.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by monocongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants