Python index-calculator is an xclim wrapperto calculate climate indices from CMORized netCDF files.
Project description
index_calculator
Python index_calculator is an xclim wrapper to calculate climate indices from CMORized netCDF files.
Free software: MIT license
Documentation: https://index-calculator.readthedocs.io.
Features
Calculate climate indices via xclim.
Write standardized netCDF attributes.
Write on disk with a project-specific output file name.
Installation
You can install the package directly with pip:
pip install index_calculator
If you want to contribute, I recommend cloning the repository and installing the package in development mode, e.g.
git clone https://github.com/ludwiglierhammer/index_calculator
cd index_calculator
pip install -e .
This will install the package but you can still edit it and you don’t need the package in your PYTHONPATH
Requirements
python3.6 or higher
numpy
pandas
xarray
xclim
Contact
In cases of any problems, needs or wishes do not hesitate to contact:
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2022-03-08)
First release on PyPI.
0.2.0 (2022-07-07)
documentation on readthedocs
tests
new cli arguments added
0.2.1 (2022-07-12)
install data and tables via pip
0.3.0 (2022-07-19)
new indices implemented * CD: number of cold and dry days * CHDYYx: Maximum number of consecutive heat days * CSDI: Cold spell duration index * CW: Number of cold and wet days * DTR: Mean of daily temperature range * GD: Number of growing degree days * GDYYx: Number of consecutive growing degree days * HD17: Number of heating degree days * PRCPTOT: Total precipitation amount * RDYYp: Number of wet days with precip over percentile * RYYpTOT: Precipitation fraction with precip over percentile * TG10p: Fraction of days with mean temperature under 10th percentile * TG90p: Fraction of days with mean temperature under 90th percentile * TX10p: Fraction of days with maximum temperature under 10th percentile * TX90p: Fraction of days with maximum temperature under 90th percentile * TN10p: Fraction of days with minimum temperature under 10th percentile * TN90p: Fraction of days with minimum temperature under 90th percentile * WD: Number of warm and dry days * WSDI: Warm spell duration index * WW: Number of warm and wet days
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for index_calculator-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2b54b8a95f4d47ac5d398d4aafd141b52fbc009767f75cb8ed64aa9dbd91d5 |
|
MD5 | d7e38469487c6a6b1976e866acce0468 |
|
BLAKE2b-256 | 0c536a2b67765cd3837b8ff4b0769e6affe2c351169683c990e03200ed04797e |