Skip to main content

Community reference implementations of climate index algorithms in Python. Including Palmers (PDSI, scPDSI, PHDI, and Z-Index), SPI, SPEI, PET, and PNP.

Project description

Build Status Coverage Status Codacy Badge Code style: black License

Climate Indices in Python

This project contains Python implementations of various climate index algorithms which provide a geographical and temporal picture of the severity of precipitation and temperature anomalies useful for climate monitoring and research.

The following indices are provided:

  • SPI, Standardized Precipitation Index, utilizing both gamma and Pearson Type III distributions
  • SPEI, Standardized Precipitation Evapotranspiration Index, utilizing both gamma and Pearson Type III distributions
  • PET, Potential Evapotranspiration, utilizing either Thornthwaite or Hargreaves equations
  • PDSI, Palmer Drought Severity Index
  • scPDSI, Self-calibrated Palmer Drought Severity Index
  • PHDI, Palmer Hydrological Drought Index
  • Z-Index, Palmer moisture anomaly index (Z-index)
  • PMDI, Palmer Modified Drought Index
  • PNP, Percentage of Normal Precipitation

This Python implementation of the above climate index algorithms is being developed with the following goals in mind:

  • to provide an open source software package to compute a suite of climate indices commonly used for climate monitoring, with well documented code that is faithful to the relevant literature and which produces scientifically verifiable results
  • to provide a central, open location for participation and collaboration for researchers, developers, and users of climate indices
  • to facilitate standardization and consensus on best-of-breed climate index algorithms and corresponding compliant implementations in Python
  • to provide transparency into the operational code used for climate monitoring activities at NCEI/NOAA, and consequent reproducibility of published datasets computed from this package
  • to incorporate modern software engineering principles and programming best practices

This is a developmental/forked version of code that is originally developed and maintained by NIDIS/NCEI/NOAA. The official release version is available at drought.gov.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climate_indices-1.0.2.tar.gz (69.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

climate_indices-1.0.2-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file climate_indices-1.0.2.tar.gz.

File metadata

  • Download URL: climate_indices-1.0.2.tar.gz
  • Upload date:
  • Size: 69.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for climate_indices-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c9b16d44018f897335001d204ba12b27795afcf430a41eb894fdfab4e6856b0c
MD5 cd675e0fe99ab63d36a8b9962b915705
BLAKE2b-256 b0e89ce55a62522e5f7569bda6f685c7dabe842c5080ec1b8801181e3e47d451

See more details on using hashes here.

File details

Details for the file climate_indices-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: climate_indices-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for climate_indices-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0809488cc02eeb011938ca4315735e44329c750fb428d76db7777e23c21e9e06
MD5 b0720a63ff28ecdcb14eef761ad34b58
BLAKE2b-256 0f00371839d6d04cdd009c8b83aff7cb6f9b302e47ee9c55408d8bf6827f310f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page