Skip to main content

HydroSovereign AI Engine — Python package for hydrological analysis, satellite data, and water sovereignty assessment

Project description

HydroSovereign AI Engine (HSAE)

PyPI version DOI License: GPL v3 Python 3.9+

Author: Seifeldin M.G. Alkedir · ORCID: 0000-0003-0821-2991
Affiliation: University of Khartoum
DOI: 10.5281/zenodo.19180160


Overview

HydroSovereign AI Engine (HSAE) v6.5.0 is a Python package for:

  • Hydrological basin analysis — water balance, inflow, outflow, storage
  • Real satellite data ingestion — GPM IMERG, GRACE-FO, Sentinel-1/2, SMAP, GloFAS, ERA5
  • Water sovereignty assessment — Alkedir Transparency Deficit Index (ATDI)
  • Forensic hydrology — closure error, mass balance analysis
  • HBV rainfall-runoff modelling — calibration and simulation
  • AI ensemble forecasting — Random Forest, ensemble methods

Installation

pip install hydrosovereign

With optional dependencies:

pip install hydrosovereign[gee]      # Google Earth Engine support
pip install hydrosovereign[viz]      # Plotly + Folium visualizations
pip install hydrosovereign[all]      # All dependencies

Quick Start

import hydrosovereign as hsae

# Analyze a basin
result = hsae.analyze_basin(
    basin_id   = "GERD_ETH",
    start_date = "2024-01-01",
    end_date   = "2024-12-31",
)

print(result["nse"])      # Nash-Sutcliffe Efficiency
print(result["atdi"])     # Alkedir Transparency Deficit Index
print(result["volume"])   # Reservoir volume (BCM)
# Fetch real satellite data
from hydrosovereign.data import fetch_basin_forcing

forcing = fetch_basin_forcing("GERD_ETH", "2024-01-01", "2024-12-31")
print(forcing["gpm"]["mean_P"])    # GPM precipitation mm/day
print(forcing["grace"]["tws_cm"])  # GRACE-FO TWS anomaly
# HBV rainfall-runoff model
from hydrosovereign.models import HBVModel

model = HBVModel()
model.fit(P=forcing["P"], T=forcing["T"], Q_obs=forcing["Q"])
print(f"NSE = {model.nse:.3f}")

CLI

hydrosovereign analyze --basin GERD_ETH --year 2024
hydrosovereign fetch-gee --basin KAINJI_NGA --start 2023-01-01 --end 2023-12-31

Live Application

The full HSAE v6.01 Streamlit application:
🌐 https://hydrosovereign-ai-engine-hsae-v601-6euz2zxcmerkzxgordmvxf.streamlit.app

Citation

@software{alkedir2026hsae,
  author    = {Alkedir, Seifeldin M.G.},
  title     = {HydroSovereign AI Engine (HSAE) v6.5.0},
  year      = {2026},
  doi       = {10.5281/zenodo.19180160},
  url       = {https://github.com/saifeldinkhedir-coder/hydrosovereign},
  orcid     = {0000-0003-0821-2991},
}

License

GNU General Public License v3.0 — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydrosovereign-6.5.2.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydrosovereign-6.5.2-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

File details

Details for the file hydrosovereign-6.5.2.tar.gz.

File metadata

  • Download URL: hydrosovereign-6.5.2.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hydrosovereign-6.5.2.tar.gz
Algorithm Hash digest
SHA256 17f274661f7cc715f400dee93c1dc4a0202572171a716bb5b8735e4f38669005
MD5 61c1d6de259b388c0f37b3d34c027a95
BLAKE2b-256 ddc19f27167f733794f5c023d24e948a2a23272899e9f71d77f2d7561e738aef

See more details on using hashes here.

File details

Details for the file hydrosovereign-6.5.2-py3-none-any.whl.

File metadata

  • Download URL: hydrosovereign-6.5.2-py3-none-any.whl
  • Upload date:
  • Size: 68.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hydrosovereign-6.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8492c488b53ee6a5bbba90b400751b8af149066cecad6faae7676906161e7b52
MD5 bd2b8053fee6882f61d90d3d89f34099
BLAKE2b-256 b6a84709186b6afd2f3bc5d0f2318652bb9231dabd6506125a59fa119948d634

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page