Skip to main content

Package for calculating meteorological indices

Project description

DDC Meteorological Indices

This is the Danube Data Cube Meteorological Indices library, a python implementation for calculating common meteorological indices, utilizing data cubes.

The following indices are available:

  • 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
  • PDSI, Palmer Drought Severity Index
  • PNI, Percentage of Normal Precipitation Index

Installation

$ pip install ddc-indices

Example

$ python

# Calculating the Standardized Precipitation Index (SPI)
>>> import xarray as xr
>>> from ddc_indices import DdcIndices
>>> from ddc_indices import SpiConfig

# import my dataset containing precipitation data
>>> dataset = xr.open_zarr('path_to_zarr')
>>> config = SpiConfig(variables={'prec': 'prec'}, periodicity='daily')
>>> spi = DdcIndices().initialize(dataset, config)
>>> spi.compute()
>>> spi.index

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

ddc-indices-0.5.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

ddc_indices-0.5.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file ddc-indices-0.5.2.tar.gz.

File metadata

  • Download URL: ddc-indices-0.5.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for ddc-indices-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ddad2fc1dc4005ba9ce86888833c0aa5dc5481ee5288ae470ca2f70d182fcbd1
MD5 362e120177c0b7f55c9f7d765fa8238b
BLAKE2b-256 284af27dbd25ec9e50ac830eb31142113380099841e28b02eb94375c2ac76213

See more details on using hashes here.

File details

Details for the file ddc_indices-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ddc_indices-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for ddc_indices-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 539fc476ef17ea91cce1e803b2553c64f0315df5eb504b562fa32b2761e69196
MD5 464bac94b6eb41f0840fedbebf968d00
BLAKE2b-256 8d6aed9925bd95c99cee4723dcf708fb3f3b7ffb56d46d20181046565d25dbb9

See more details on using hashes here.

Supported by

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