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:

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

Quick Navigation

πŸ“Š Climate Indices

Learn about SPI and SPEI calculation, calibration, and interpretation.

SPI Guide | SPEI Guide

πŸ“ˆ Event Analysis

Master run theory for identifying and analyzing climate extremes.

Run Theory | Magnitude

🎨 Visualization

Create publication-quality plots and maps.

Visualization Guide

Getting Started

If you’re new to the package:

  1. Read Data Model & Outputs to confirm your data contract and understand return formats
  2. Start with the SPI Guide to understand basic index calculation
  3. Move to Run Theory to learn event analysis
  4. 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?

Back to top