index_calculator
Calculate climate indicators with standardized project-specific attributes.
https://github.com/climate-service-center/index_calculator
Category: Climate Change
Sub Category: Climate Data Processing and Analysis
Keywords
climate-analysis climate-science dask python xarray xclim
Keywords from Contributors
cf-conventions
Last synced: about 13 hours ago
JSON representation
Repository metadata
Calculate climate indicators based on xclim
- Host: GitHub
- URL: https://github.com/climate-service-center/index_calculator
- Owner: climate-service-center
- License: mit
- Created: 2022-03-08T08:13:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-12-22T17:46:38.000Z (3 days ago)
- Last Synced: 2025-12-22T23:41:23.060Z (3 days ago)
- Topics: climate-analysis, climate-science, dask, python, xarray, xclim
- Language: Python
- Homepage: https://index-calculator.readthedocs.io
- Size: 113 MB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 8
- Releases: 37
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
- Zenodo: .zenodo.json
README.rst
============================================================================================
Calculate climate indicators with standardized project-specific attributes: index_calculator
============================================================================================
+----------------------------+-----------------------------------------------------+
| Versions | |pypi| |versions| |
+----------------------------+-----------------------------------------------------+
| Documentation and Support | |docs| |
+----------------------------+-----------------------------------------------------+
| Open Source | |license| |zenodo| |
+----------------------------+-----------------------------------------------------+
| Coding Standards | |black| |ruff| |pre-commit| |security| |fossa| |
+----------------------------+-----------------------------------------------------+
| Development Status | |status| |build| |coveralls| |
+----------------------------+-----------------------------------------------------+
Python index_calculator is an xclim wrapper to calculate climate indicators from CMORized netCDF files.
Documentation
-------------
The official documentation is at 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.
Available projects
------------------
You can calculate climate indicators using index_calculator with the projects listed in the table below.
+--------------------+--------------+
| CMIP | CMIP5, CMIP6 |
+--------------------+--------------+
| CORDEX | CORDEX |
+--------------------+--------------+
| Observational data | E-OBS, HYRAS |
+--------------------+--------------+
| Reanalysis data | ERA5 |
+--------------------+--------------+
Installation
------------
You can install the package directly with pip:
.. code-block:: console
pip install index_calculator
If you want to contribute, we recommend cloning the repository, setup a conda environmant and installing the package in development mode, e.g.
.. code-block:: console
git clone https://github.com/climate-service-center/index_calculator
cd index_calculator
conda env create -f ci/requirements/environment.yml
conda activate xcalc-tests
pip install -e . --no-deps
This will install the package but you can still edit it and you don't need the package in your :code:`PYTHONPATH`
Requirements
------------
* python3.6 or higher
* xclim
* numpy
* pandas
* xarray
* cf_xarray
* cftime
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _xclim: https://xclim.readthedocs.io/en/latest/
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. |pypi| image:: https://img.shields.io/pypi/v/index_calculator.svg
:target: https://pypi.python.org/pypi/index_calculator
:alt: Python Package Index Build
.. |docs| image:: https://readthedocs.org/projects/index_calculator/badge/?version=latest
:target: https://index-calculator.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status
.. |versions| image:: https://img.shields.io/pypi/pyversions/index_calculator.svg
:target: https://pypi.python.org/pypi/index_calculator
:alt: Supported Python Versions
.. |license| image:: https://img.shields.io/github/license/ludwiglierhammer/index_calculator.svg
:target: https://github.com/ludwiglierhammer/index_calculator/blob/master/LICENSE
:alt: License
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Python Black
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff
.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/climate-service-center/index_calculator/main.svg
:target: https://results.pre-commit.ci/latest/github/climate-service-center/index_calculator/main
:alt: pre-commit.ci status
.. |fossa| image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2Fludwiglierhammer%2Findex_calculator.svg?type=shield
:target: https://app.fossa.com/projects/git%2Bgithub.com%2Fludwiglierhammer%2Findex_calculator?ref=badge_shield
:alt: FOSSA
.. |security| image:: https://www.bestpractices.dev/projects/8143/badge
:target: https://www.bestpractices.dev/projects/8143
:alt: Open Source Security Foundation
.. |status| image:: https://www.repostatus.org/badges/latest/active.svg
:target: https://www.repostatus.org/#active
:alt: Project Status: Active – The project has reached a stable, usable state and is being actively developed.
.. |build| image:: https://github.com/ludwiglierhammer/index_calculator/actions/workflows/ci.yml/badge.svg
:target: https://github.com/ludwiglierhammer/index_calculator/actions/workflows/ci.yml
:alt: Build Status
.. |coveralls| image:: https://codecov.io/gh/ludwiglierhammer/index_calculator/branch/master/graph/badge.svg
:target: https://codecov.io/gh/ludwiglierhammer/index_calculator
:alt: Coveralls
.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7762679.svg
:target: https://doi.org/10.5281/zenodo.7762679
:alt: DOI
Owner metadata
- Name: GERICS
- Login: climate-service-center
- Email:
- Kind: organization
- Description: Climate Service Center Germany
- Website: www.gerics.de
- Location: Germany
- Twitter: GERICS_Germany
- Company:
- Icon url: https://avatars.githubusercontent.com/u/154221270?v=4
- Repositories: 2
- Last ynced at: 2023-12-22T06:07:56.339Z
- Profile URL: https://github.com/climate-service-center
GitHub Events
Total
- Create event: 20
- Release event: 1
- Issues event: 1
- Watch event: 2
- Delete event: 21
- Issue comment event: 2
- Push event: 56
- Pull request event: 47
- Fork event: 1
Last Year
- Create event: 12
- Release event: 1
- Issues event: 1
- Watch event: 1
- Delete event: 14
- Issue comment event: 2
- Push event: 46
- Pull request event: 31
- Fork event: 1
Committers metadata
Last synced: 2 days ago
Total Commits: 579
Total Committers: 9
Avg Commits per committer: 64.333
Development Distribution Score (DDS): 0.306
Commits in past year: 41
Committers in past year: 4
Avg Commits per committer in past year: 10.25
Development Distribution Score (DDS) in past year: 0.634
| Name | Commits | |
|---|---|---|
| Ludwig.Lierhammer | l****r@h****e | 402 |
| Lars Buntemeyer | l****r@g****m | 61 |
| pre-commit-ci[bot] | 6****] | 60 |
| Ludwig.Lierhammer | l****r@h****e | 22 |
| dependabot[bot] | 4****] | 17 |
| Katharina Bülow | k****w@h****e | 8 |
| SusannePfeifer007 | 1****7 | 7 |
| Sonali Manimaran | 4****i | 1 |
| Katharina Bülow | g****7@l****e | 1 |
Committer domains:
- hereon.de: 2
- levante5.lvt.dkrz.de: 1
- hzg.de: 1
Issue and Pull Request metadata
Last synced: 3 days ago
Total issues: 13
Total pull requests: 105
Average time to close issues: 3 months
Average time to close pull requests: 11 days
Total issue authors: 6
Total pull request authors: 6
Average comments per issue: 2.92
Average comments per pull request: 0.11
Merged pull request: 79
Bot issues: 1
Bot pull requests: 76
Past year issues: 0
Past year pull requests: 33
Past year average time to close issues: N/A
Past year average time to close pull requests: about 1 month
Past year issue authors: 0
Past year pull request authors: 4
Past year average comments per issue: 0
Past year average comments per pull request: 0.03
Past year merged pull request: 17
Past year bot issues: 0
Past year bot pull requests: 23
Top Issue Authors
- KatharinaBuelow (5)
- larsbuntemeyer (3)
- ludwiglierhammer (2)
- emsonali (1)
- iremisikcetin (1)
- pre-commit-ci[bot] (1)
Top Pull Request Authors
- pre-commit-ci[bot] (49)
- dependabot[bot] (27)
- larsbuntemeyer (22)
- KatharinaBuelow (5)
- emsonali (1)
- ludwiglierhammer (1)
Top Issue Labels
- invalid (1)
- bug (1)
Top Pull Request Labels
- dependencies (27)
- github_actions (4)
- test-build (2)
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 37
proxy.golang.org: github.com/climate-service-center/index_calculator
- Homepage:
- Documentation: https://pkg.go.dev/github.com/climate-service-center/index_calculator#section-documentation
- Licenses: mit
- Latest release: v0.13.0 (published 4 months ago)
- Last Synced: 2025-12-22T22:33:53.481Z (3 days ago)
- Versions: 37
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.401%
- Average: 5.583%
- Dependent repos count: 5.764%
Dependencies
- actions/checkout v3 composite
- codecov/codecov-action v3 composite
- mamba-org/provision-with-micromamba main composite
- dask >=2021.10.0
- pint >=0.10
- pyhomogenize >=0.2.9
- xarray >=2022.3.0
- xclim >=0.34.0
- Sphinx ==1.8.5 development
- bump2version ==0.5.11 development
- coverage ==4.5.4 development
- flake8 ==3.7.8 development
- pip ==19.2.3 development
- tox ==3.14.0 development
- twine ==1.14.0 development
- watchdog ==0.9.0 development
- wheel ==0.33.6 development
- pyhomogenize >=0.5.1
Score: -Infinity