Skip to main content

hydrosensenet

An Open-Source Python Package for Optimal Hydrological Monitoring Network Design

⚠️ In active development

Installation

Requires Python >= 3.9.

pip install hydrosensenet

# With optional extras:
pip install "hydrosensenet[viz]"   # map plotting (matplotlib, cartopy)
pip install "hydrosensenet[nwm]"   # NWM streamflow download stack (fsspec, dask, pynhd, ...)

The core install covers network design, evaluation, and I/O. NetworkDesignResult.plot() and the NWM download utilities tell you which extra to install if it is missing.

Development

git clone https://github.com/future-water/hydrosensenet.git
cd hydrosensenet
pip install -e ".[dev]"   # editable install with tests, linting, build tooling
pytest                    # run the test suite

Quick Start

Examples

Basic Usage

Try it immediately on the bundled sample basin (368 reaches of the lower Colorado River, Texas — NWM v3.0 daily streamflow):

from hydrosensenet import SensorNetworkDesigner, load_example_basin

streamflow_df, locations_gdf = load_example_basin()
designer = SensorNetworkDesigner(streamflow_df, locations_gdf)
result = designer.design_network(n_sensors=20)
result.print_summary()

Or with your own data:

from hydrosensenet import SensorNetworkDesigner
from hydrosensenet.io import load_streamflow
import geopandas as gpd

# Load data
streamflow_df = load_streamflow("streamflow_2000.parquet")
locations_gdf = gpd.read_file("gauges.geojson")

# Design network
designer = SensorNetworkDesigner(
    streamflow_data=streamflow_df.values,
    locations=locations_gdf,
    location_labels=list(streamflow_df.columns)
)
result = designer.design_network(n_sensors=50, evaluate=True)
result.print_summary()

Metadata

Release files for hydrosensenet 0.2.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 hydrosensenet 0.2.0
File Size Uploaded Provenance Actions
hydrosensenet-0.2.0.tar.gz 68.1 kB With provenance Details for hydrosensenet-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 127.6 kB

Release files / hydrosensenet-0.2.0.tar.gz

Download URL hydrosensenet-0.2.0.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae82bd85d97e841446c7827d8683e558e80e55dfe6490aab2942e64d3bf1d3b6
BLAKE2b-256 checksum
How to use checksums
e624a7b010b2d734d72fd3329e67b487889289ff24b3d1e256efccbcf6cc8aed
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 Jul 30, 2026.

Transparency log

Release files / hydrosensenet-0.2.0-py3-none-any.whl

Download URL hydrosensenet-0.2.0-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68d4c80ee9e324d317cdf2e0ada3535e89bcfd8f3fa507893a3d09336ee05c96
BLAKE2b-256 checksum
How to use checksums
b6a772085c728d15d88d35b085a7a47fb24484dad065260d6157023c760c0ac8
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 Jul 30, 2026.

Transparency log

Security for hydrosensenet 0.2.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 hydrosensenet-0.2.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 Jul 30, 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.2.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