Skip to main content

HydroSeason

Tests Docs Python License: MIT DOI

HydroSeason reads a monthly surface-water extent record (for example, from Digital Earth Australia Water Observations) and tells you whether the catchment's surface water rises and falls on a reliable annual cycle. If it does, you get per-year boundaries and rising and receding phases. If it doesn't, you get wet events and low-extent spells instead of a forced calendar.

Scope: HydroSeason measures surface-water extent. It does not estimate discharge, depth, volume, or groundwater.

Documentation: tayerthiaggo.github.io/hydroseason

What you get

HydroSeason report preview

One call writes a self-contained HTML report, four CSVs (_monthly, _hydro_years, _wet_event, _low_spells), and a run manifest that records the method version and input checksums.

Open a real report (no install needed):

Browse a complete output folder (no install needed): docs/examples/fitzroy-river-wa/ — the HTML report, the four CSVs (monthly, hydro years, wet events, low spells), and the run manifest.

Install

pip install hydroseason              # CSV input (pandas + numpy only)
pip install "hydroseason[raster]"    # + NetCDF/Zarr/xarray input and SILO rainfall
pip install "hydroseason[stac]"      # + fetch DEA Water Observations directly
pip install "hydroseason[all]"       # everything: all inputs, DEA fetch, rainfall

Python 3.10–3.13. Run hydroseason doctor to check which inputs your environment supports.

Quickstart

From a monthly extent CSV (date, extent_pct, optional invalid_pct):

from hydroseason import run_hydroseason

result = run_hydroseason(
    "monthly_extent.csv",
    output_dir="output/report",
    aoi_name="My AOI",
)
print(result.analysis.regime.regime)  # "seasonal", "aseasonal", or "insufficient_record"
print(result.analysis.route)          # "per_year_detection", "event_characterisation", ...
print(result.artifacts.html)

Or fetch DEA data for a polygon, from the command line:

hydroseason run --aoi catchment.geojson --aoi-name "My catchment" \
  --start-date 2005-01-01 --end-date 2025-12-01 \
  --output-dir output/report --cache-dir cache

The same function also takes NetCDF/Zarr rasters, optional rainfall, and — through run_hydroseason_many — many AOIs at once. See the Usage Guide and the notebooks.

How it works

  1. Screen — on a DEA fetch, one read of the all-time WOfS statistics checks the AOI holds recurrent water before any monthly data is downloaded.
  2. Test seasonality — circular Kuiper tests ask whether annual peaks and troughs recur in the same calendar months (at least five detectable years required).
  3. Route — a seasonal record with at least seven resolved cycles gets per-year boundaries, refined with a robust (Huber) profile fit. Anything else gets flood-event and low-spell analysis.
  4. Report — rainfall, if added, annotates the report but never changes the answer, which is decided from water alone.

Every run uses one frozen method, hydroseason-v0.3.0, recorded in the run manifest. Details: Methods Reference.

Case studies

Three reproducible studies on five Australian catchments (DEA 30 m, 2005–2025): the main workflow, resolution sensitivity, and rainfall context.

Citation

Please cite the software release (CITATION.cff):

@software{tayer_hydroseason,
  author  = {Tayer, Thiaggo C.},
  title   = {HydroSeason: Remote-sensing-first hydrological year and season detection},
  year    = {2026},
  url     = {https://github.com/tayerthiaggo/hydroseason},
  doi     = {10.5281/zenodo.21866898}
}

See Citation for version-specific DOIs.

License

MIT — see LICENSE.

Metadata

Release files for hydroseason 0.3.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 hydroseason 0.3.0
File Size Uploaded Provenance Actions
hydroseason-0.3.0.tar.gz 751.3 kB With provenance Details for hydroseason-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / hydroseason-0.3.0.tar.gz

Download URL hydroseason-0.3.0.tar.gz
Size 751.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77933235e25b32740f8aa437c725204c2d9c2933babbf9c368f28412e2d3a6a7
BLAKE2b-256 checksum
How to use checksums
46f8a5eadcaef7714e8d2a720c0da83e47ac04d59d516ce44f618a94dcd4a680
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 Nov 11, 2026.

Transparency log

Release files / hydroseason-0.3.0-py3-none-any.whl

Download URL hydroseason-0.3.0-py3-none-any.whl
Size 775.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de64c35b79d174521cee2789aea11118f2086af25c5b2be801b1d5de716ef844
BLAKE2b-256 checksum
How to use checksums
50f90c88f1e222e56d1bad3f111af82b278ad197da7c2a0025225377fe8ecc27
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 Nov 11, 2026.

Transparency log

Security for hydroseason 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hydroseason-0.3.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 Nov 11, 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.

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