spei.rai module¶
- spei.rai.mrai(series: Series, sf: float = 1.7) Series ¶
Calculate the Modified Rainfall Anomaly Index (MRAI) for a given time series of precipitation data.
- Parameters:
series (pd.Series) – A pandas Series containing precipitation data.
sf (float) – Scaling factor for the MRAI calculation. Default is 1.7.
- Returns:
A pandas Series containing the MRAI values.
- Return type:
pd.Series
References
Hänsel, S., Schucknecht, A. and Matschullat J. The Modified Rainfall Anomaly Index (mRAI) — is this an alternative to the Standardised Precipitation Index (SPI) in evaluating future extreme precipitation characteristics? Theoretical and Applied Climatology. 2015.
- spei.rai.rai(series: Series) Series ¶
Calculate the Rainfall Anomaly Index (RAI) for a given time series of precipitation data.
- Parameters:
series (pd.Series) – A pandas Series containing precipitation data.
- Returns:
A pandas Series containing the RAI values.
- Return type:
pd.Series
References
van Rooy, M.P. A Rainfall Anomaly Index Independent of Time and Space. Notos. 1965.