# Any Julia package to compute the Standardized Precipitation Index (SPI)?

**URL:** <https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286>\
**Category:** Geo\
**Tags:** question, climate\
**Created:** [October 6, 2021, 9:21am UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286 "2021-10-06T09:21:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [October 6, 2021, 9:21am UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286/1 "2021-10-06T09:21:55Z")

</div>

Any package in Julia to compute the [Standardized Precipitation Index (SPI)](https://edo.jrc.ec.europa.eu/documents/factsheets/factsheet_spi.pdf) ?  
I had a (quick) look at [ClimateTools.jl](https://github.com/JuliaClimate/ClimateTools.jl) but couldn’t find it there…

---

<div class="post-metadata">

**Author:** ![DrPapa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drpapa/32/6835_2.png) [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Post date:** [October 6, 2021, 12:25pm UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286/2 "2021-10-06T12:25:55Z")

</div>

I don’t know the answer, but I find that searching [JuliaHub](https://juliahub.com/ui/Home) is good way to find packages. You can search both docs and source code for all registered packages.

---

<div class="post-metadata">

**Author:** ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Post date:** [October 6, 2021, 12:33pm UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286/3 "2021-10-06T12:33:26Z")

</div>

Indeed, it is not implemented in ClimateTools. We have the “Drought Index” (`drought_dc` function). [https://github.com/JuliaClimate/ClimateTools.jl/blob/e48a9ec46b673dd9101527beb690ab50fabf9863/src/indicators.jl#L190](https://github.com/JuliaClimate/ClimateTools.jl/blob/e48a9ec46b673dd9101527beb690ab50fabf9863/src/indicators.jl#L190)

Back then, I simply used [https://github.com/monocongo/climate\_indices](https://github.com/monocongo/climate_indices) for my need as I did not had enough time to code it in Julia.
