User Guide
Complete Guide to SPI, SPEI, and Run Theory
Overview
This user guide provides comprehensive documentation for using the precip-index package to calculate climate indices and analyze extreme events.
Contents
Climate Indices
Learn how to calculate and interpret standardized indices:
- SPI - Standardized Precipitation Index
- Precipitation-based dry/wet monitoring
- Multiple time scales (1, 3, 6, 12, 24 months)
- Distribution fitting and calibration
- SPEI - Standardized Precipitation Evapotranspiration Index
- Water balance approach (precipitation - PET)
- Temperature-inclusive dry/wet assessment
- PET calculation methods
Analysis Methods
Understand the analytical framework:
- Run Theory for Climate Extremes
- Event identification methodology
- Duration, magnitude, intensity, peak
- Time-series monitoring
- Gridded period statistics
- Magnitude Types Explained
- Cumulative (monotonic) magnitude
- Instantaneous (variable) magnitude
- When to use each type
- Visualization Guide
- 11-category WMO color scheme
- Event timeline plots
- Spatial statistics maps
- Publication-quality figures
Getting Started
If youβre new to the package:
- Read Data Model & Outputs to confirm your data contract and understand return formats
- Start with the SPI Guide to understand basic index calculation
- Move to Run Theory to learn event analysis
- Explore Visualization to create plots
For hands-on learning, try the Tutorials.
Key Concepts
Standardized Indices
Both SPI and SPEI transform precipitation (and evapotranspiration) data into standardized values that represent probability of occurrence:
- Positive values: Wetter than normal
- Negative values: Drier than normal
- Magnitude: Severity of the condition
Bidirectional Analysis
This package treats dry and wet extremes equally:
- Droughts: Use negative thresholds (e.g., -1.2)
- Wet events/Floods: Use positive thresholds (e.g., +1.2)
- Same functions: Consistent methodology for both
Time Scales
Different time scales capture different aspects of dry/wet conditions:
- 1-3 months: Meteorological/agricultural
- 6-9 months: Agricultural/hydrological
- 12-24 months: Hydrological/socio-economic
Support
Need help?
- Check the Tutorials for step-by-step examples
- Review the Technical Documentation for detailed API
- Open an issue on GitHub