ddc-indices-0.5.2
توضیحات
Package for calculating meteorological indices
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ddc-indices-0.5.2 |
| نام | ddc-indices |
| نسخه کتابخانه | 0.5.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Balint Alfoldy <balint.alfoldy@lechnerkozpont.hu> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ddc-indices/ |
| مجوز | - |
# 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
```
نیازمندی
| مقدار | نام |
|---|---|
| >=6.0.0 | importlib-metadata |
| >=3.6.2 | matplotlib |
| >=1.10.0 | pydantic |
| >=1.9.1 | scipy |
| >=2023.1.0 | xarray |
| >=2.13.6 | zarr |
| >=2023.1.1 | dask |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl ddc-indices-0.5.2:
pip install ddc-indices-0.5.2.whl
نصب پکیج tar.gz ddc-indices-0.5.2:
pip install ddc-indices-0.5.2.tar.gz