index_calculator

Calculate climate indicators based on xclim

https://github.com/climate-service-center/index_calculator

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

climate-analysis climate-science dask python xarray xclim

Keywords from Contributors

energy-system-model mesh anuclim icclim netcdf4 regionalization energy-system exoplanet standardization interactive
Last synced: 6 months ago · JSON representation

Repository

Calculate climate indicators based on xclim

Basic Info
Statistics
  • Stars: 7
  • Watchers: 3
  • Forks: 6
  • Open Issues: 10
  • Releases: 0
Topics
climate-analysis climate-science dask python xarray xclim
Created almost 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Authors Zenodo

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

  • Name: GERICS
  • Login: climate-service-center
  • Kind: organization
  • Location: Germany

Climate Service Center Germany

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Delete event: 15
  • Issue comment event: 1
  • Push event: 40
  • Pull request event: 34
  • Fork event: 1
  • Create event: 13
Last Year
  • Issues event: 1
  • Watch event: 2
  • Delete event: 15
  • Issue comment event: 1
  • Push event: 40
  • Pull request event: 34
  • Fork event: 1
  • Create event: 13

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 549
  • Total Committers: 9
  • Avg Commits per committer: 61.0
  • Development Distribution Score (DDS): 0.268
Past Year
  • Commits: 24
  • Committers: 3
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.292
Top Committers
Name Email Commits
Ludwig.Lierhammer l****r@h****e 402
pre-commit-ci[bot] 6****] 52
Lars Buntemeyer l****r@g****m 49
Ludwig.Lierhammer l****r@h****e 22
dependabot[bot] 4****] 11
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 (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 13
  • Total pull requests: 84
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 10 days
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 2.69
  • Average comments per pull request: 0.14
  • Merged pull requests: 64
  • Bot issues: 1
  • Bot pull requests: 61
Past Year
  • Issues: 1
  • Pull requests: 39
  • Average time to close issues: about 14 hours
  • Average time to close pull requests: 24 days
  • Issue authors: 1
  • Pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.05
  • Merged pull requests: 24
  • Bot issues: 1
  • Bot pull requests: 35
Top Authors
Issue Authors
  • KatharinaBuelow (5)
  • larsbuntemeyer (3)
  • ludwiglierhammer (2)
  • emsonali (1)
  • iremisikcetin (1)
  • pre-commit-ci[bot] (1)
Pull Request Authors
  • pre-commit-ci[bot] (44)
  • dependabot[bot] (24)
  • larsbuntemeyer (17)
  • KatharinaBuelow (4)
  • emsonali (1)
  • ludwiglierhammer (1)
Top Labels
Issue Labels
invalid (1) bug (1)
Pull Request Labels
dependencies (24) test-build (2)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 36
proxy.golang.org: github.com/climate-service-center/index_calculator
  • Versions: 36
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago