xclim
Climate indices and bias adjustment on xarray — the operational-grade library for climate-data engineering.
Reference Python implementations of SPI, SPEI and Palmer indices for drought monitoring.
Install
pip install climate-indicesThe climate_indices package provides carefully validated Python implementations of the standard drought indices — SPI and SPEI (with proper distribution fitting), PET methods, PNP and the Palmer suite — designed for both single-station series and gridded NetCDF processing from the command line.
Drought indices are easy to implement subtly wrongly (fitting, calibration periods, zero-precipitation handling); this package exists so agencies and researchers converge on defensible numbers. It has been used in NOAA and NIDIS-adjacent monitoring contexts, which is exactly the pedigree a compliance-facing drought study wants.
Ranked by the topics, categories and workflow stages they share with climate_indices.
Climate indices and bias adjustment on xarray — the operational-grade library for climate-data engineering.
The reference R implementation of SPEI and SPI from the index's own authors.
ECMWF's hourly global reanalysis — the default gap-free climate forcing record for ungauged catchments worldwide.
The longest satellite soil moisture record available — merged active+passive retrievals back to 1978, free, no login.
Planetary-scale geospatial analysis in the cloud — the data catalogue and compute behind modern water remote sensing.
Neyman-Scott stochastic rainfall generation in Python — synthetic series and disaggregation, single or multi-site.