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.0.tar.gz (65.4 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.0-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydrosovereign-6.5.0.tar.gz
  • Upload date:
  • Size: 65.4 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.0.tar.gz
Algorithm Hash digest
SHA256 e392fded9160b66c2b55fb9d0a6fe305780639aadedb23eaf7fd49f953206ab0
MD5 5288df9855e82b534b36365b83b7ea50
BLAKE2b-256 4eb10364b9fb7c1558c34513f656f80936eeb4220493b3d309e53e5537ab81cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydrosovereign-6.5.0-py3-none-any.whl
  • Upload date:
  • Size: 67.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb74e2d0061a33dfe1ad1b90626e9ee20f0ecf99993bb9b23f48da8ffd3bbe7
MD5 02da6f5053ff4e0b361ec4bbd6540318
BLAKE2b-256 e96153708f28d0821c507c7f1ff63348fdc49ecbb90982bf4ff637b21b14a785

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