xHydro

Effortlessly extract geospatial and watershed data from APIs, calibrate and execute hydrological models, perform optimal interpolation and frequency analysis on hydrological indicators, compute custom hydrological metrics, and analyze climate change impacts on hydrological data.
https://github.com/hydrologie/xhydro

Category: Hydrosphere
Sub Category: Freshwater and Hydrology

Keywords

hydrological-data-analysis hydrology hydrology-statistical

Keywords from Contributors

raven birdhouse pavics wps climate-analysis climate-science netcdf4 xclim anuclim icclim

Last synced: about 3 hours ago
JSON representation

Repository metadata

Hydrological analysis library built with xarray.

README.rst

          ======================================
xHydro |logo| |logo-light| |logo-dark|
======================================

+----------------------------+-----------------------------------------------------+
| Versions                   | |pypi| |conda|                                      |
+----------------------------+-----------------------------------------------------+
| Documentation and Support  | |docs| |versions|                                   |
+----------------------------+-----------------------------------------------------+
| Open Source                | |license| |ossf-score|                              |
+----------------------------+-----------------------------------------------------+
| Coding Standards           | |ruff| |prek| |pre-commit-ci| |zizmor|              |
+----------------------------+-----------------------------------------------------+
| Development Status         | |status| |build| |coveralls|                        |
+----------------------------+-----------------------------------------------------+

Hydrological analysis library built with xarray

* Free software: Apache-2.0
* Documentation: https://xhydro.readthedocs.io/en/latest/
* Version française: https://xhydro.readthedocs.io/fr/latest/

Features
--------

* Easily find and extract geospatial data from the Planetary Computer API and watershed boundaries from the HydroSHEDS API over any area of interest.
* Calibrate and execute Hydrotel and Raven-emulated hydrological models.
* Perform optimal interpolation on hydrological data (daily streamflow and indices).
* Compute hydrological indicators (e.g. n-day peak flow, annual maximum series, low flow, average flow, etc.) over custom date ranges.
* Perform frequency analyses on hydrological indicators using a variety of methods (e.g. Gumbel, GEV, etc.).
* Perform climate change impact analyses of hydrological data.

Credits
-------

This package was created with Cookiecutter_ and the `Ouranosinc/cookiecutter-pypackage`_ project template.

This logo was designed by Élyse Fournier (@elysefounier) and Louise Arnal (@lou-a), with inputs from the `xHydro` team.

.. _Cookiecutter: https://github.com/cookiecutter/cookiecutter
.. _`Ouranosinc/cookiecutter-pypackage`: https://github.com/Ouranosinc/cookiecutter-pypackage

.. |build| image:: https://github.com/hydrologie/xhydro/actions/workflows/main.yml/badge.svg
        :target: https://github.com/hydrologie/xhydro/actions
        :alt: Build Status

.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/xhydro.svg
        :target: https://anaconda.org/conda-forge/xhydro
        :alt: Conda-forge Build Version

.. |coveralls| image:: https://coveralls.io/repos/github/hydrologie/xhydro/badge.svg
        :target: https://coveralls.io/github/hydrologie/xhydro
        :alt: Coveralls

.. |docs| image:: https://readthedocs.org/projects/xhydro/badge/?version=latest
        :target: https://xhydro.readthedocs.io/en/latest/?version=latest
        :alt: Documentation Status

.. |license| image:: https://img.shields.io/github/license/hydrologie/xHydro.svg
        :target: https://github.com/hydrologie/xhydro/blob/main/LICENSE
        :alt: License

.. |logo| image:: https://raw.githubusercontent.com/hydrologie/xhydro/main/docs/logos/xhydro-logo-small-light.png
        :target: https://github.com/hydrologie/xhydro
        :alt: xHydro

.. |logo-light| image:: https://raw.githubusercontent.com/hydrologie/xhydro/main/docs/logos/empty.png
        :target: https://github.com/hydrologie/xhydro
        :alt:
        :class: xhydro-logo-small only-light-inline

.. |logo-dark| image:: https://raw.githubusercontent.com/hydrologie/xhydro/main/docs/logos/empty.png
        :target: https://github.com/hydrologie/xhydro
        :alt:
        :class: xhydro-logo-small only-dark-inline

..
    .. |mypy| image:: https://www.mypy-lang.org/static/mypy_badge.svg
            :target: https://mypy-lang.org/
            :alt: mypy

    .. |ossf-bp| image:: https://bestpractices.coreinfrastructure.org/projects/9945/badge
            :target: https://bestpractices.coreinfrastructure.org/projects/9945
            :alt: Open Source Security Foundation Best Practices

.. |ossf-score| image:: https://api.securityscorecards.dev/projects/github.com/hydrologie/xhydro/badge
        :target: https://securityscorecards.dev/viewer/?uri=github.com/hydrologie/xhydro
        :alt: OpenSSF Scorecard

.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/hydrologie/xHydro/main.svg
         :target: https://results.pre-commit.ci/latest/github/hydrologie/xHydro/main
         :alt: pre-commit.ci status

.. |prek| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json
        :target: https://github.com/j178/prek
        :alt: prek

.. |pypi| image:: https://img.shields.io/pypi/v/xhydro.svg
        :target: https://pypi.python.org/pypi/xhydro
        :alt: PyPI

.. |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

.. |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.

.. |versions| image:: https://img.shields.io/pypi/pyversions/xhydro.svg
        :target: https://pypi.python.org/pypi/xhydro
        :alt: Supported Python Versions

.. |zizmor| image:: https://img.shields.io/badge/%F0%9F%8C%88-zizmor-white?labelColor=white
        :target: https://zizmor.sh/
        :alt: zizmor

        

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit and templated with cookiecutter.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: "1.2.0"
title: "xHydro"
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: "software"
authors:
  - family-names: 'Fortier Filion'
    given-names: 'Thomas-Charles'
    email: 'tcff_hydro@outlook.com'
  - family-names: 'Rondeau-Genesse'
    given-names: 'Gabriel'
    email: 'rondeau-genesse.gabriel@ouranos.ca'
    orcid: "https://orcid.org/0000-0003-3389-9406"
  - family-names: 'Smith'
    given-names: 'Trevor James'
    email: 'smith.trevorj@ouranos.ca'
    orcid: "https://orcid.org/0000-0001-5393-8359"
  - family-name: 'Langlois'
    given-names: 'Sébastien'
  - family-names: 'Opina'
    given-names: 'Julián'
    orcid: "https://orcid.org/0000-0001-8582-3265"
  - family-names: 'Maarite'
    given-names: 'Kamil'
  - family-names: 'Arsenault'
    given-names: 'Richard'
    orcid: "https://orcid.org/0000-0003-2834-2750"
  - family-names: 'Gravel'
    given-names: 'Francis'
  - family-names: "Arnal"
    given-names: "Louise"
    orcid: "https://orcid.org/0000-0002-0208-2324"
  - family-names: 'Parent'
    given-names: 'Essi'
contact:
  - family-names: 'Fortier Filion'
    given-names: 'Thomas-Charles'
    email: 'tcff_hydro@outlook.com'
  - family-names: 'Rondeau-Genesse'
    given-names: 'Gabriel'
    email: 'rondeau-genesse.gabriel@ouranos.ca'
    orcid: "https://orcid.org/0000-0003-3389-9406"
repository-code: "https://github.com/hydrologie/xhydro"
abstract: "Hydrological analysis library built with xarray."
license: "Apache-2.0"
version: "0.9.1"

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 2,018
Total Committers: 23
Avg Commits per committer: 87.739
Development Distribution Score (DDS): 0.713

Commits in past year: 305
Committers in past year: 10
Avg Commits per committer in past year: 30.5
Development Distribution Score (DDS) in past year: 0.482

Name Email Commits
RondeauG r****l@o****a 579
Trevor James Smith 1****e 489
dependabot[bot] 4****] 171
TC-FF t****o@o****m 168
ospinajulian o****s@o****m 161
pre-commit-ci[bot] 6****] 107
richardarsenault r****t@e****a 62
sebastienlanglois s****s@p****a 52
Kamil Maarite k****e@p****a 44
e-larose e****r@g****m 43
bumpversion[bot] b****]@h****m 35
Thomas-Charles Fortier Filion f****s@m****a 28
Gabriel Rondeau r****u@h****a 26
Francis Gravel f****l@g****m 21
Essi Parent 9****f@r****m 7
lou-a l****l@h****r 6
jougla.renaud j****d@m****a 5
Antoine Lefebvre-Brossard a****b@p****m 4
ospinallano.julianandres o****s@m****a 3
Rondeau-Genesse g****1@o****a 3
elysefournier 4****r 2
update-github-actions[bot] b****]@o****a 1
RJougla r****a@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 11 days ago

Total issues: 42
Total pull requests: 358
Average time to close issues: about 2 months
Average time to close pull requests: 9 days
Total issue authors: 16
Total pull request authors: 17
Average comments per issue: 1.05
Average comments per pull request: 1.12
Merged pull request: 298
Bot issues: 3
Bot pull requests: 184

Past year issues: 1
Past year pull requests: 54
Past year average time to close issues: N/A
Past year average time to close pull requests: 3 days
Past year issue authors: 1
Past year pull request authors: 9
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.57
Past year merged pull request: 43
Past year bot issues: 0
Past year bot pull requests: 29

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/hydrologie/xhydro

Top Issue Authors

  • RondeauG (18)
  • TC-FF (4)
  • Zeitsperre (3)
  • ospinajulian (3)
  • sebastienlanglois (2)
  • Sci-pio (1)
  • EdouardMailhot (1)
  • matthieujbn (1)
  • essicolo (1)
  • e-larose (1)
  • juliettelavoie (1)
  • dependabot[bot] (1)
  • c-malenfant (1)
  • elysefournier (1)
  • richardarsenault (1)

Top Pull Request Authors

  • dependabot[bot] (161)
  • RondeauG (74)
  • Zeitsperre (44)
  • TC-FF (22)
  • pre-commit-ci[bot] (20)
  • richardarsenault (7)
  • ospinajulian (7)
  • sebastienlanglois (4)
  • lou-a (3)
  • antoinelb (2)
  • Sci-pio (1)
  • vinfort (1)
  • Mayetea (1)
  • Antoine-Lafrance (1)
  • e-larose (1)

Top Issue Labels

  • enhancement (16)
  • bug (14)
  • documentation (5)
  • dependencies (2)
  • python (1)
  • notebooks (1)

Top Pull Request Labels

  • approved (226)
  • CI (190)
  • dependencies (164)
  • github_actions (81)
  • python (80)
  • docs (59)
  • notebooks (49)
  • documentation (17)
  • enhancement (11)
  • bug (4)
  • wontfix (1)
  • good first issue (1)

Package metadata

proxy.golang.org: github.com/hydrologie/xhydro

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/hydrologie/xhydro#section-documentation
  • Licenses: apache-2.0
  • Latest release: v0.9.1 (published about 2 months ago)
  • Last Synced: 2026-11-26T18:31:05.339371Z (1 day ago)
  • Versions: 33
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 5.395%
    • Average: 5.576%
    • Dependent repos count: 5.758%
pypi.org: xhydro-temp

Hydrological analysis library built with xarray.

  • Homepage: https://xhydro.readthedocs.io/
  • Documentation: https://xhydro-temp.readthedocs.io/
  • Licenses: Apache Software License
  • Latest release: 0.3.8.dev4 (published over 2 years ago)
  • Last Synced: 2026-11-26T18:31:11.942304Z (1 day ago)
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 19 Last month
  • Rankings:
    • Dependent packages count: 10.685%
    • Average: 35.429%
    • Dependent repos count: 60.172%
  • Maintainers (1)
pypi.org: xhydro

Hydrological analysis library built with xarray.

  • Homepage: https://xhydro.readthedocs.io/
  • Documentation: https://xhydro.readthedocs.io/
  • Licenses: Apache-2.0
  • Latest release: 0.9.1 (published about 2 months ago)
  • Last Synced: 2026-11-26T18:31:11.939446Z (1 day ago)
  • Versions: 17
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 181 Last month
  • Rankings:
    • Dependent packages count: 7.49%
    • Average: 38.649%
    • Dependent repos count: 69.808%
  • Maintainers (2)

Dependencies

.github/workflows/bump-version.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/create-github-app-token bcd2ba49218906704ab6c1aa796996da409d3eb1 composite
  • actions/setup-python ece7cb06caefa5fff74198d8649806c4678c61a1 composite
  • ad-m/github-push-action 881a6320fdb16eb5318c5054f31c218aec2b324c composite
  • crazy-max/ghaction-import-gpg 2dc316deee8e90f13e1a351ab510b4d5bc0c82cd composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/cache-cleaner.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/auto-accept-ci-changes.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/create-github-app-token bcd2ba49218906704ab6c1aa796996da409d3eb1 composite
  • dependabot/fetch-metadata 25dd0e34f4fe68f24cc83900b1fe3fe149efef98 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/codeql.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • github/codeql-action/analyze 8aad20d150bbac5944a9f9d289da16a4b0d87c1e composite
  • github/codeql-action/init 8aad20d150bbac5944a9f9d289da16a4b0d87c1e composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
pyproject.toml pypi
  • cartopy >=0.23.0
  • clisops *
  • fastprogress <1.1
  • geopandas >=1.0
  • haversine >=2.8.1
  • matplotlib *
  • numpy >=1.25
  • odc-stac *
  • pandas >=2.2, !=3.0.4
  • planetary-computer *
  • pooch >=1.8.0
  • pystac >=1.12.0
  • pystac-client *
  • pyyaml >=6.0.2
  • rasterio *
  • rioxarray >=0.15.0
  • scikit-learn *
  • scipy >=1.12.0
  • shapely >=2.0
  • spotpy >=1.6.2
  • statsmodels >=0.14.0
  • tqdm *
  • xarray >=2023.11.0
  • xarray-spatial >=0.3.7
  • xclim *
  • xscen >=0.12.1,<0.16
  • xvec *
.github/workflows/dependency-review.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/dependency-review-action a1d282b36b6f3519aa1f3fc636f609c47dddb294 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/scorecard.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/upload-artifact 043fb46d1a93c77aae656e7c1c64a875d1fc6a0a composite
  • github/codeql-action/upload-sarif 8aad20d150bbac5944a9f9d289da16a4b0d87c1e composite
  • ossf/scorecard-action 4eaacf0543bb3f2c246792bd56e8cdeffafb205a composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/first-pull-request.yml actions
  • actions/github-script 3a2844b7e9c422d3c10d287c895573f7108da1b3 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/label-on-approval.yml actions
  • actions/github-script 3a2844b7e9c422d3c10d287c895573f7108da1b3 composite
  • peter-evans/create-or-update-comment e8674b075228eee787fea43ef493e45ece1004c9 composite
  • peter-evans/find-comment b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/main.yml actions
  • actions/cache 55cc8345863c7cc4c66a329aec7e433d2d1c52a9 composite
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/setup-python ece7cb06caefa5fff74198d8649806c4678c61a1 composite
  • coverallsapp/github-action 5cbfd81b66ca5d10c19b062c04de0199c215fb6e composite
  • mamba-org/setup-micromamba d7c9bd84e824b79d2af72a2d4196c7f4300d3476 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/label.yml actions
  • actions/labeler f27b608878404679385c85cfa523b85ccb86e213 composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
environment.yml conda
  • cartopy >=0.23.0
  • clisops
  • dask
  • dask-geopandas
  • fastprogress <1.1
  • geopandas >=1.0
  • haversine >=2.8.1
  • leafmap
  • mapclassify
  • matplotlib-base
  • numpy >=1.25
  • odc-stac
  • pandas >=2.2, !=3.0.4
  • pip >=26.0
  • planetary-computer
  • pooch >=1.8.0
  • pystac >=1.12.0
  • pystac-client
  • python >=3.10,<3.15
  • pyyaml >=6.0.2
  • rasterio
  • raven-hydro
  • ravenpy >=0.18.1
  • rioxarray >=0.15.0
  • scikit-learn
  • scipy >=1.12.0
  • shapely >=2.0
  • spotpy >=1.6.2
  • statsmodels >=0.14.0
  • tqdm
  • xarray >=2023.11.0
  • xarray-spatial >=0.3.7
  • xclim
  • xscen >=0.12.1,<0.16
  • xvec
.github/workflows/publish-pypi.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/setup-python ece7cb06caefa5fff74198d8649806c4678c61a1 composite
  • pypa/gh-action-pypi-publish cef221092ed1bacb1cc03d23a2d87d1d172e277b composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/tag-testpypi.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/setup-python ece7cb06caefa5fff74198d8649806c4678c61a1 composite
  • pypa/gh-action-pypi-publish cef221092ed1bacb1cc03d23a2d87d1d172e277b composite
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/workflows/workflow-warning.yml actions
  • step-security/harden-runner 9af89fc71515a100421586dfdb3dc9c984fbf411 composite
.github/requirements_ci.in pypi
  • bump-my-version ==1.4.1
  • deptry ==0.25.1
  • exceptiongroup ==1.3.1
  • flit ==3.12.0
  • pip ==26.2
  • pydantic ==2.13.4
  • pygments ==2.21.0
  • pylint ==4.0.7
  • tox ==4.60.0
  • tox-gh ==1.8.0
.github/requirements_ci.txt pypi
  • annotated-types ==0.7.0
  • anyio ==4.14.2
  • astroid ==4.0.2
  • bracex ==2.4
  • bump-my-version ==1.4.1
  • cachetools ==7.0.5
  • certifi ==2024.7.4
  • charset-normalizer ==3.3.2
  • click ==8.1.7
  • colorama ==0.4.6
  • deptry ==0.25.1
  • dill ==0.3.9
  • distlib ==0.3.8
  • docutils ==0.20.1
  • exceptiongroup ==1.3.1
  • filelock ==3.25.2
  • flit ==3.12.0
  • flit-core ==3.12.0
  • h11 ==0.16.0
  • httpcore2 ==2.12.0
  • httpx2 ==2.12.0
  • idna ==3.18
  • isort ==6.0.0
  • markdown-it-py ==3.0.0
  • mccabe ==0.7.0
  • mdurl ==0.1.2
  • packaging ==26.0
  • platformdirs ==4.9.4
  • pluggy ==1.6.0
  • prompt-toolkit ==3.0.36
  • pydantic ==2.13.4
  • pydantic-core ==2.46.4
  • pydantic-settings ==2.3.4
  • pygments ==2.21.0
  • pylint ==4.0.7
  • pyproject-api ==1.10.0
  • python-discovery ==1.6.0
  • python-dotenv ==1.2.2
  • questionary ==2.0.1
  • requests ==2.33.0
  • requirements-parser ==0.11.0
  • rich ==13.7.1
  • rich-click ==1.8.3
  • tomli ==2.4.0
  • tomli-w ==1.2.0
  • tomlkit ==0.13.0
  • tox ==4.60.0
  • tox-gh ==1.8.0
  • truststore ==0.10.4
  • types-setuptools ==75.8.0.20250210
  • typing-extensions ==4.15.0
  • typing-inspection ==0.4.2
  • urllib3 ==2.7.0
  • virtualenv ==21.2.0
  • wcmatch ==10.1
  • wcwidth ==0.6.0

Score: 12.805409021660529