A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

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

archiving observation transforms measur conversion optimize projection retry compose threads

Last synced: about 21 hours ago
JSON representation

Repository metadata

Calculate climate indicators based on xclim

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


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 544
Total Committers: 9
Avg Commits per committer: 60.444
Development Distribution Score (DDS): 0.261

Commits in past year: 63
Committers in past year: 4
Avg Commits per committer in past year: 15.75
Development Distribution Score (DDS) in past year: 0.54

Name Email Commits
Ludwig.Lierhammer l****r@h****e 402
pre-commit-ci[bot] 6****] 49
Lars Buntemeyer l****r@g****m 48
Ludwig.Lierhammer l****r@h****e 22
dependabot[bot] 4****] 10
SusannePfeifer007 1****7 7
Katharina Bülow k****w@h****e 4
Sonali Manimaran 4****i 1
Katharina Bülow g****7@l****e 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 16
Total pull requests: 84
Average time to close issues: 14 days
Average time to close pull requests: 7 days
Total issue authors: 6
Total pull request authors: 7
Average comments per issue: 3.25
Average comments per pull request: 0.42
Merged pull request: 75
Bot issues: 0
Bot pull requests: 50

Past year issues: 5
Past year pull requests: 46
Past year average time to close issues: 9 days
Past year average time to close pull requests: 7 days
Past year issue authors: 4
Past year pull request authors: 4
Past year average comments per issue: 2.0
Past year average comments per pull request: 0.11
Past year merged pull request: 40
Past year bot issues: 0
Past year bot pull requests: 34

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/climate-service-center/index_calculator

Top Issue Authors

  • KatharinaBuelow (5)
  • ludwiglierhammer (3)
  • larsbuntemeyer (3)
  • emsonali (2)
  • christinenam (2)
  • iremisikcetin (1)

Top Pull Request Authors

  • pre-commit-ci[bot] (38)
  • larsbuntemeyer (13)
  • ludwiglierhammer (13)
  • dependabot[bot] (12)
  • KatharinaBuelow (5)
  • emsonali (2)
  • SusannePfeifer007 (1)

Top Issue Labels

  • documentation (1)
  • invalid (1)
  • bug (1)

Top Pull Request Labels

  • dependencies (12)
  • test-build (2)

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • codecov/codecov-action v3 composite
  • mamba-org/provision-with-micromamba main composite
ci/requirements/requirements.txt pypi
  • dask >=2021.10.0
  • pint >=0.10
  • pyhomogenize >=0.2.9
  • xarray >=2022.3.0
  • xclim >=0.34.0
ci/requirements/requirements_dev.txt pypi
  • 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
setup.py pypi
ci/requirements/environment.yml pypi
  • pyhomogenize >=0.5.1

Score: 5.14166355650266