Skip to main content

SynHydro

Tests

SynHydro is a Python library for generating synthetic hydrologic timeseries using a unified, scikit-learn-style API. All generators share a common fit() and generate() workflow, and the library includes validation, drought analysis, plotting, and ensemble data management tools.

Installation

pip install synhydro

To install a specific tagged release directly from GitHub instead:

pip install git+https://github.com/TrevorJA/SynHydro.git@v0.1.0

Quick example

import synhydro

Q_daily = synhydro.load_example_data()
Q_monthly = Q_daily.resample("MS").sum()

gen = synhydro.KirschGenerator()
gen.fit(Q_monthly)
ensemble = gen.generate(n_realizations=50, n_years=30, seed=42)

Supported generators

Generators are classified into three bins by the mathematical character of their generative mechanism: parametric (sample from a fitted probability model), hybrid (combine a parametric structure with a non-parametric resampling step), and non-parametric (resample the historical record directly). See the Algorithms page for full descriptions.

Generator Class Frequency Sites Reference
ThomasFieringGenerator Parametric Monthly Single Thomas & Fiering (1962)
MatalasGenerator Parametric Monthly Multi Matalas (1967)
ARFIMAGenerator Parametric Monthly/Annual Single Hosking (1984)
SPARTAGenerator Parametric Monthly Multi Tsoukalas et al. (2018)
SMARTAGenerator Parametric Annual Multi Tsoukalas et al. (2018)
MultiSiteHMMGenerator Parametric Annual Multi Gold et al. (2024)
KirschGenerator Hybrid Weekly/Monthly Multi Kirsch et al. (2013)
WARMGenerator Hybrid Annual Single Nowak et al. (2011)
PhaseRandomizationGenerator Hybrid Daily Single Brunner et al. (2019)
MultisitePhaseRandomizationGenerator Hybrid Daily Multi Brunner & Gilleland (2020)
KNNBootstrapGenerator Non-parametric Monthly/Annual Multi Lall & Sharma (1996); Prairie et al. (2006, 2008)

Supported disaggregators

Disaggregator Direction Reference
NowakDisaggregator {Annual, Monthly, Weekly} to {Monthly, Weekly, Daily} Nowak et al. (2010)
ValenciaSchaakeDisaggregator Annual to Monthly Valencia & Schaake (1973)

Pre-built pipelines (KirschNowakPipeline, ThomasFieringNowakPipeline) chain generation and disaggregation in a single interface.

Contributing

SynHydro is under active development, and contributions are welcome. For bug reports, feature requests, or discussion of new methods, please open an issue or pull request on GitHub. See CONTRIBUTING.md for guidelines on adding new generators and the project's development practices.

Documentation

Full documentation including tutorials, algorithm descriptions, and API reference is available at the project website.

Citing SynHydro

DOI

The DOI badge and the version DOI below are filled in after the first release is archived on Zenodo. If you use SynHydro in your research, please cite it as:

Amestoy, T. (2026). SynHydro: Synthetic hydrologic timeseries generation
in Python (Version 0.1.0) [Computer software]. Zenodo.
https://doi.org/10.5281/zenodo.YYYYYYY
@software{amestoy_synhydro_2026,
  author    = {Amestoy, Trevor},
  title     = {{SynHydro}: Synthetic hydrologic timeseries generation in Python},
  version   = {0.1.0},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.YYYYYYY},
  url       = {https://github.com/TrevorJA/SynHydro}
}

Metadata

Release files for synhydro 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synhydro 0.1.0
File Size Uploaded Provenance Actions
synhydro-0.1.0.tar.gz 1.1 MB With provenance Details for synhydro-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synhydro 0.1.0
File Interpreter ABI Platform Actions
synhydro-0.1.0-py3-none-any.whl Python 3 none any Details for synhydro-0.1.0-py3-none-any.whl

Total release size: 2.0 MB

Release files / synhydro-0.1.0.tar.gz

Download URL synhydro-0.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ec4f13ea1c15d5440de372ca8f52d3810e165236b1ddb3f131b62527f71bf1a5
BLAKE2b-256 checksum
How to use checksums
07bcd34c1fee9e0eb24cd1b2ae24bed888ef1cfba45b0e62cbc4b1695688f712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / synhydro-0.1.0-py3-none-any.whl

Download URL synhydro-0.1.0-py3-none-any.whl
Size 914.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b1ea288600d9ba042376132dc61f4e4a22402a1dd90644b75db26a26abf3f67
BLAKE2b-256 checksum
How to use checksums
02629566e3764a2d785e1260e595f86b31f8bc1e9d0fdfe144e08c537b256dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Security for synhydro 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for synhydro-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page