Published July 29, 2025 | Journal article | Version v1 | https://doi.org/10.21105/joss.08454

SPEI: A Python package for calculating and visualizing drought indices

Authors/Creators

  • 1. Department of Water Management, Faculty of Civil Engineering and Geosciences, Delft University of Technology, Delft, South Holland, The Netherlands
  • 2. Artesia B.V., Schoonhoven, South Holland, The Netherlands

Files

joss.08454.pdf

Files (2.4 MB)

Name Size Download all
md5:852222f6db2d91a4442552049146b76d
971.2 kB Preview Download
md5:e63625fac23d49824f0e041e46d9a743
1.4 MB Preview Download

Additional details

Dates

Issued
July 29, 2025

References

  1. Vonk, M. A. (2025). SPEI: A Python package for calculating and visualizing drought indices (Version v0.8.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.16441123
  2. Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., … Vázquez-Baeza, Y. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
  3. McKinney, W. (2010). Data Structures for Statistical Computing in Python. Proceedings of the Python in Science Conference, 56–61. https://doi.org/10.25080/majora-92bf1922-00a
  4. The pandas development team. (2026). pandas-dev/pandas: Pandas (Version v3.1.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.3509134
  5. Hunter, J. D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3), 90–95. https://doi.org/10.1109/mcse.2007.55
  6. Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., … Oliphant, T. E. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
  7. McKee, T. B., Doesken, N. J., & Kleist, J. (1993). The relationship of drought frequency and duration to time scales. In Proceedings of the Eighth Conference on Applied Climatology (pp. 179–184). American Meteorological Society.
  8. Lloyd‐Hughes, B., & Saunders, M. A. (2002). A drought climatology for Europe. International Journal of Climatology, 22(13), 1571–1592. https://doi.org/10.1002/joc.846
  9. Vicente-Serrano, S. M., Beguería, S., & López-Moreno, J. I. (2010). A Multiscalar Drought Index Sensitive to Global Warming: The Standardized Precipitation Evapotranspiration Index. Journal of Climate, 23(7), 1696–1718. https://doi.org/10.1175/2009jcli2909.1
  10. Bloomfield, J. P., & Marchant, B. P. (2013). Analysis of groundwater drought building on the standardised precipitation index approach. Hydrology and Earth System Sciences, 17(12), 4769–4787. https://doi.org/10.5194/hess-17-4769-2013
  11. Vicente-Serrano, S. M., López-Moreno, J. I., Beguería, S., Lorenzo-Lacruz, J., Azorin-Molina, C., & Morán-Tejeda, E. (2012). Accurate Computation of a Streamflow Drought Index. Journal of Hydrologic Engineering, 17(2), 318–332. https://doi.org/10.1061/(asce)he.1943-5584.0000433
  12. Sheffield, J., Goteti, G., Wen, F., & Wood, E. F. (2004). A simulated soil moisture based drought analysis for the United States. Journal of Geophysical Research: Atmospheres, 109(D24), Article 2004JD005182. https://doi.org/10.1029/2004jd005182
  13. Segura‐Barrero, R., Lauvaux, T., Lian, J., Ciais, P., Badia, A., Ventura, S., Bazzi, H., Abbessi, E., Fu, Z., Xiao, J., Li, X., & Villalba, G. (2025). Heat and Drought Events Alter Biogenic Capacity to Balance CO2 Budget in South‐Western Europe. Global Biogeochemical Cycles, 39(1), Article e2024GB008163. https://doi.org/10.1029/2024gb008163
  14. Adla, S., Šaponjić, A., Tyagi, A., Nagi, A., Pastore, P., & Pande, S. (2024). Steering agricultural interventions towards sustained irrigation adoption by farmers: socio-psychological analysis of irrigation practices in Maharashtra, India. Hydrological Sciences Journal, 1–18. https://doi.org/10.1080/02626667.2024.2376709
  15. van Mourik, J., Ruijsch, D., van der Wiel, K., Hazeleger, W., & Wanders, N. (2025). Regional drivers and characteristics of multi-year droughts. Weather and Climate Extremes, 48, Article 100748. https://doi.org/10.1016/j.wace.2025.100748
  16. Panigrahi, S., & Vidyarthi, V. K. (2025). Assessing the Suitability of SPI and SPEI in Steppe Hot and Arid Climatic Zones in India. In Water Science and Technology Library (pp. 201–216). Springer Nature Switzerland. https://doi.org/10.1007/978-3-031-80520-2_12
  17. Vonk, M. A. (2026). SPEI: A Python package for calculating and visualizing drought indices (Version v0.8.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.10816740
  18. Alexander, L., Donat, M., Bador, M., Herold, N., Vazquez-Aguirre, J. L., Dunn, R., Nguyen, P. L., Isphording, R., & Singh, Y. (2025). Climdex: Climate extremes indices. https://www.climdex.org
  19. Thom, H. C. S. (1966). Some methods of climatological analysis (WMO Technical Note No. 81). World Meteorological Organization. https://library.wmo.int/idurl/4/59838
  20. Svoboda, M., Hayes, M., & Wood, D. A. (2012). Standardized Precipitation Index User Guide (WMO Technical Document No. 1090). World Meteorological Organization. https://library.wmo.int/idurl/4/39629
  21. Sheffield, J., & Wood, E. F. (2012). Drought (0th ed.). Routledge. https://doi.org/10.4324/9781849775250
  22. Dracup, J. A., Lee, K. S., & Paulson, E. G. (1980). On the definition of droughts. Water Resources Research, 16(2), 297–302. https://doi.org/10.1029/wr016i002p00297
  23. Van Loon, A. F. (2015). Hydrological drought explained. WIREs Water, 2(4), 359–392. https://doi.org/10.1002/wat2.1085
  24. Edwards, D. C., & McKee, T. B. (1997). Characteristics of 20th century drought in the United States at multiple time scales (Climatology Report No. 97-2). Colorado State University, Department of Atmospheric Science.
  25. van Rooy, M. P. (1965). A rainfall anomaly index independent of time and space. Notos, 14, 43–48.

1–25 of 27

Citations

  1. Fuentes, I., Osorio, V., Jordan, C., & Vervoort, R. W. (2026). Drought propagation and recovery dynamics across hydroclimatic pathways: Predictors and timescale dependence in Chile. Journal of Hydrology: Regional Studies, 67, 103797. https://doi.org/10.1016/j.ejrh.2026.103797
  2. Hwang, J., & Lee, K.-K. (2026). Characterizing spatiotemporal groundwater level variability using feature-based time-series clustering and standardized drought indices: Implications for data-driven regional groundwater drought management. Groundwater for Sustainable Development, 35, Article 101707. https://doi.org/10.1016/j.gsd.2026.101707
  3. Worden, S., Fu, R., Bloom, A. A., Bauters, M., Verbeeck, H., Fatoyinbo, T., Hubau, W., Koutika, L., Kengdo, S. K., Maes, S. L., Medjibe, V., Russo, N. J., Saatchi, S., Sagang, L. B., Smith, T. B., Sonwa, D. J., Boeckx, P., & Ordway, E. M. (2026). Congo Basin Carbon Cycle Responses to Global Change. Global Change Biology, 32(1), Article e70688. https://doi.org/10.1111/gcb.70688
  4. Andrade, F. M., Molowny‐Horas, R., & Fernández‐Martínez, M. (2026). Silent Alarms? Unveiling Destabilization Risk in Terrestrial Ecosystem Carbon Fluxes. Global Change Biology, 32(10), Article e71100. https://doi.org/10.1111/gcb.71100
  5. Garcia, D., Simão, D., Rolim, J., Santos, J. A., & Paredes, P. (2026). Seasonal Forecasts as a Tool for Agricultural Drought Early Warning in Portugal. Climate, 14(11), 239. https://doi.org/10.3390/cli14110239
  6. Lekarkar, K., Rakovec, O., Kumar, R., Dondeyne, S., & van Griensven, A. (2026). Reconstructed soil moisture droughts in Belgium reveal 2011–2020 was the driest decade since 1970. Hydrology and Earth System Sciences, 30(9), 2817–2835. https://doi.org/10.5194/hess-30-2817-2026
  7. Patidar, R., Pingale, S. M., Khare, D., & Choudhary, S. (2025). Assessing Spatio‐Temporal Meteorological Drought Dynamics Across Indian Agro‐Climatic Zones: A Long‐Term Perspective. International Journal of Climatology, 45(16). https://doi.org/10.1002/joc.70146
  8. Ashcroft, L., Ritman, M., Bridgman, H., Thornton, K., Di Gravio, G., Oates, W., Belfield, R., & Belfield, E. (2025). A climatology of meteorological droughts in New England, Australia, 1880–2022. Journal of Southern Hemisphere Earth Systems Science, 75(3). https://doi.org/10.1071/es25013
  9. Compaoré, C., Somda, W., Kébré, M. B., & Koalaga, Z. (2025). Spatial Analysis of Historical and Near-Future Droughts using the SPI and SPEI Indices in the Competence Area of the Nakanbé Water Agency in Burkina Faso (1981–2050). 2025 IEEE Multi-conference on Natural and Engineering Sciences for Sahel's Sustainable Development (MNE3SD), 1–10. https://doi.org/10.1109/mne3sd67637.2025.11323240