Repository navigation
Releases
Release 1.4.0: fill to spillway or capacity, exponent bounded below at 1, figures and documentation aligned with the manuscript, residual diagnostics
Added
- Level-wise and two-segment residual statistics in
validation/goodness_of_fit.csv, stated in the report. - Leave-one-out shares at half and tenth pool, the sediment budget at the survey date and median band widths by curve source in the report, with the settings key
bathymetry_survey_date. - Drop-one sweep in the full-pool area regression diagnostics.
- Reservoir geometry diagram in the method documentation.
- Agent-ready layer (
eaves.agent.info,eaves.agent.mcp_server) and its tests. - JSON twin of the domain characterization, panel p6 for the GRDL comparison, principal components in the clustering diagnostic, rank correlation of the exponent.
test/test_loo_regionalization.pychecks the fold rule of the leave-one-out evaluation.
Changed
- Zenodo identifiers are the concept DOIs of the software and of the dataset.
- The fill ends at the spillway elevation or at the catalog capacity, whichever it reaches first.
- The exponent is bounded below at 1 with no upper bound.
- The river direction is read on the reach part nearest the dam and the snap distance is measured on the ground.
- The Saudi Arabian catalog rerun on the revised method.
- Figures 1, 4 and 5 reworked, panel numbering follows the manuscript, one layout for every panel.
- Panel s1 shows the principal components as panel b and the leave-one-out sweep as panel c.
- Panels s2 and s3 name the illustrative area fraction and show 10th to 90th percentile intervals.
- One source label for regionalized dams, one definition of the trusted set, one dam-row stand-in.
- The DEM-error Monte Carlo and panel s4 follow the capacity and regionalization rules.
pyproject.tomlholds the pytest configuration and the environment file pins the versions that produced the outputs.- The README, the documentation pages, the data dictionary, the report prose and the code text follow the manuscript wording.
Removed
- The metadata table and the eleven raw series of the water-extent folder.
- The low-spillway substitute of the flood fill.
- Placement overrides, parameters that no call passes, arguments and values that nothing reads.
Fixed
- The leave-one-out evaluation and the clustering baseline apply the training rule of the regional exponent, from the regionalization helpers that the report and panels s1 and s4 share.
- The leave-one-out table, the clustering table (column
n_training), panels p4 and s1, the report and the domain statistics follow, with the regionalized parameters unchanged. - Report wording of the exponent spread and of the training set, the settings check of the command line, the encoding and error stream of the MCP server, documentation pages and data dictionary rows.
- A dam has at most one check plot.
- Report volume error, panel labels and shaded-band captions.
- The void guard of the flood fill sees the gaps that terrain encloses.
Full details in CHANGELOG.md.
Release 1.3.2: construction years for 20 dams, a downstream-pool rule, depth in the EAV tables
Version 1.3.2 adds construction years, a placement rule and a column.
- Construction years of 20 dams of the Saudi Arabian catalog. The catalog gains the year of 20 dams that had none, the year in which satellite imagery shows the finished dam (2009 to 2025). All 20 postdate the SRTM acquisition. One historical dam stays without a year. The training set grows from 199 to 216 dams, the regional exponent moves from 1.5345 to 1.5291, and
candbof the 207 regionalized dams follow. The parameters of the 319 SRTM-derived dams stay as they are. The sediment budget covers 525 dams in place of 505. - Rule against a pool downstream of the dam. Every placement stage rejects a pool that the river reach and the terrain slope both place downstream of the dam cell. On the Saudi Arabian catalog the flood fill of one dam changes (
id_030038), whose parameters become regionalized. depth_min every EAV table, the water depth above the bottom of the fill, besideelevation_m. Every other column keeps its values.
See the changelog for the full list.
Release 1.3.1: summary holds every dam, parameters follow from the summary
A follow-up to 1.3.0. eaves_summary.csv now holds every dam of eaves_params.csv, so the two tables go together dam for dam.
Changed
eaves_summary.csvholds all 526 dams. The 23 dams without a flood fill gain a row with their catalog attributes, coordinates, topographic features, upstream area, sediment yield, evaporation and sediment risk. The cells of their fill and of their fit are empty, and the 503 existing rows keep every value.failed_dams.csvlists the failures as before.- The regionalization reads every dam from the summary, so the parameters follow from the released table alone, and the full run,
--plot-onlyand--onlywrite the same tables. The coefficientcof 4 dams without a flood fill changes in its fourth significant digit (id_030039,id_080026,id_090008,id_130016). - The construction-year breakdown, the dam height statistics and the sediment budget of the report span all 526 dams. The sediment budget covers 505 dams in place of 483, with a median predicted capacity loss of 44.4% and 151 dams at full siltation. The statistics of the fill and of the fit keep to the 503 dams with a flood fill.
Fixed
- A single-dam
--onlyrun keepseaves_params.csvcomplete. It removed every other dam without a flood fill from the table. --plot-onlykeeps the summary as written. It wrote the construction years as floats and moved two columns.
Added
- Tests for the summary rows of dams without a flood fill, for the reruns through
--plot-onlyand--only, and for the span of the sediment budget.
Release 1.3.0: corrected dam coordinates, drainage rule, fixed-precision tables
A methodological update on top of 1.2.1. The curves of the 526 Saudi Arabian dams are regenerated on a catalog with corrected coordinates, with 320 SRTM-derived and 206 regionalized curves. Baish keeps its curve.
Changed
- Every catalog coordinate was checked against satellite imagery. In all, 28 coordinates moved onto the wall (by 12 m to 4.8 km), 6 entries with no wall at the coordinate are typed
subsurfaceand excluded, and 6 dams with a confirmed wall return to the catalog. - River parts follow the channel and carry an equal share of the reach length and unit-catchment area. The network is closed upstream of the country border, and zero-length reaches are dropped.
- A flood fill is accepted only when it drains out through the wall (
eaves.pipeline.drainage). A fill on the downstream side of the wall is rejected. - Stage 4 moves the wall along the snapped river in both directions and replaces the earlier fill only when the volume lies closer to the catalog capacity.
placement_upstream_shift_mis positive upstream and negative downstream. - The run is faster with identical results. The flood fill is read as a labeled component, the workers receive the river network once, and the sensitivity sweep runs in parallel.
- Every output table is written at a fixed precision: four significant digits and never fewer than two decimals, with four decimals for
capacity_mcmand the exponentb. - The sensitivity sweep covers the two calibrated constants of the drainage rule, and the validation step writes the A_cap regression diagnostics.
- The regionalization trains on 199 dams, its exponent is 1.53, and the leave-one-out volume at full pool falls within a factor of 2 for 185 of them (93%) and within a factor of 3 for all.
- The documentation, the generated report, the code comments and the docstrings follow one writing style.
Added
- The regression fixture ships the SRTM GL1 elevation around its 15 dams (17 files, about 6 MB) with its build script, so the regression test runs with the tracked settings alone.
- Tests for the preprocessing, the drainage rule and the table precision.
Fixed
- Hali dam height (
id_020019), 87 m to 57 m. - The report quotes the exponent assigned to the regionalized dams and reads the band floors and anchor spreads from the run. Its dam count adds the dams without a fill, and a second pass of the report step keeps the summary as written.
- The arrows of the check plots point downstream.
failed_dams.csvwrites the construction year as an integer.- The DEM error panel leaves out every dam with fewer than 10 valid realizations, in place of one dam named by its identifier.
Release 1.2.1: Qanuna name fix, failure-record coordinates, docs restructure
A maintenance release on top of 1.2.0. No methodological change — the curves,
parameters, and validation are identical to 1.2.0.
Changed
- Corrected dam name
id_020023Qununa → Qanuna across the catalog, caches,
and released CSVs (label only, no recomputation; Arabic name unchanged). - README slimmed to overview, quickstart, and links, with a new
documentation/folder (method, structure, outputs, data dependencies,
usage). Em-dashes and stray semicolons cleaned repo-wide.
Added
latitude/longitudeinfailed_dams.csv, so all 526 cataloged dams —
including the 22 without a recovered footprint — carry coordinates.
Removed
- Output panel PDFs are no longer tracked (PNGs remain; PDFs regenerate
locally and ship with the manuscript).
Post-release maintenance (same v1.2.1, tag re-pointed)
- Corrected the Baish bathymetry filename (
baysh_area_elev_vol.csv→baish_area_elev_vol.csv) and its references inksa.jsonand the data dictionary. - Made
region/ksa/ksa.jsonportable — repo-internal paths are now relative and external dataset paths are placeholders. - Renamed internal identifiers
_BAYSH_ID/_load_baysh→_BAISH_ID/_load_baish(no behavior change). - Added Zenodo DOIs and completed author/ORCID metadata in
CITATION.cff.
Release 1.2.0: post-2000 training set, design-sourced Baish capacity, conservative uncertainty floor
Training and provenance release. All outputs regenerated end to end.
- Post-2000 training set. Regionalization, b_sigma, and the LOO
validation now train only on the 200 trusted dams that postdate the
February 2000 SRTM acquisition. Headline improves to 92%/99% within
factor 2/3 (bias +6%, relRMSE 47%); deployed regionalized b = 1.56. - New flags.
pre_srtm(178 dams) andunknown_year(21) mark curves
describing the as-of-2000 surface; both groups are excluded from training. - Baish capacity from design documentation (198.072 MCM at the maximum
water level); the fill recovers it within 1.6%. - Conservative uncertainty floor. The catalog-capacity term is estimated
from uncapped fills only (cap-censoring removed): SRTM band floor +39%/-28%. - Also: log-log anchor stats fixed to log10,
construction_yearin
failed_dams.csv,in_trainingin goodness_of_fit.csv,documentation/
folder with a slim README, open-axes figure style.
Downstream note: all 204 regionalized (c, b) rows and Baish changed —
consumers of eaves_params.csv (e.g. RUSH) should re-pull.
Release 1.1.0: delivered-yield sediment budget, clamped-c re-solve, S4/S5 validation panels
This release corrects two issues that affected released values, completes the
validation panel set, and ships the data dictionary with the release CSVs. All
outputs were regenerated in a full Saudi-domain rerun (526 dams: 322
SRTM-derived, 204 regionalized).
Corrections to released data
- Sediment budget no longer double-counts delivery. The
sed_yield_t_ha_yr
input is delivered sediment yield at the reservoir inlet — Dash et al.
(2025) compute it at the source as RUSLE gross erosion × the Boyce (1974)
delivery ratio — so the budget's additional Vanoni SDR was removed.
predicted_silt_fractionandsediment_riskare recomputed: median
predicted capacity loss rises from 13.7% to 47.5%, and the fully-silted
count from 44 to 149. The corrected budget lands within ~1.6× of the 2025
Baish sonar loss (previously ~10× under) and implies a ~32% national
capacity loss, matching the estimate published with the same yields.
--sediment-sdrremains available as a constant factor for regions whose
yield input is gross erosion. - Clamped exponents re-solve c through the full-pool anchor. The released
bis clamped to [1.1, 2.0]; previously the rawcwas kept, so the 39
clamped SRTM-derived curves missed their own full-pool volume by factors of
0.004–11. Each now reproduces V(A_DEM) = V_SRTM exactly. All other
eaves_params.csvrows are bit-identical to 1.0.1. - Panel S3 uncertainty band now carries the catalog-capacity floor
(σ_logVcap), matching the releasedvalidation/v_uncertainty.csv— the
SRTM-derived tier does not vanish at the anchor.
Added
- Panel S4 — DEM vertical-error Monte-Carlo (32 dams, spatially correlated
SRTM perturbations), withvalidation/dem_error_montecarlo.csv. - Panel S5 — placement-constant sensitivity sweep, with
validation/sensitivity_sweep.csv. DATA_DICTIONARY.mdshipped alongside the release CSVs;
goodness_of_fit.csvandacap_regression_diagnostics.csvadded to the
validation suite; Baish sonar bathymetry included as input;
test_sediment.pylocks the delivered-yield budget.- LICENSE-DATA — code under Apache-2.0, data release under CC BY 4.0.
Changed
- The catalog-capacity cap on the flood fill is disclosed explicitly in the
report and data dictionary. - Report pinned to reference year 2026; software-versions table removed.
- Code hygiene: one-line comments, module overview docstrings, US English.
Release 1.0.1: construction-year handling + uncertainty tests
Point release on top of v1.0.0. No change to EAV parameters (c, b) —
verified bit-identical across all 526 KSA dams.
Changed
- Missing construction years are no longer fabricated as 2001. Dams with
no catalogue year are left unknown (nullableInt32, blank in
eaves_summary.csv) instead of a sentinel. This also fixes a circular bug:
the flat-water check was gated onis_pre2000, so unknown-year dams were
never tested for impoundment and were labelled "full" by omission. The
detector now runs for unknown-year dams too, letting the SRTM surface decide
full vs partial. Diagnostic: 0/18 missing-year SRTM dams show a flat-water
signature, so all are genuine bare-valley captures. - Domain characterization keeps unknown-year dams visible via an
n_year_unknowncount and a "Year unknown" era-breakdown row. Only
age-dependent statistics (era assignment, sediment budget) exclude them,
since computing those without a build year would require fabricating one.
Added
test_curves_helpers.py— construction-year parsing, with an explicit guard
that a missing year never returns the old 2001 sentinel.test_uncertainty.py— unit coverage for the uncertainty module
(compute_b_sigma, anchor back-solve, V-band algebra) backing panel S3.curves._parse_construction_year()extracted as a directly testable helper.
Tests
76 pass (was 53). Fixture goldens refreshed (eaves_summary.csv only).
Full changelog: CHANGELOG.md · compare v1.0.0...v1.0.1
Release v1.0.0: first tagged release
First production tag. EAV curve assignment for SRTM-derived reservoir
bathymetry, now powering downstream simulation in RUSH.
Highlights
- Multi-feature LR anchor for A_cap (replaces single-feature log-log).
LOO accuracy on trusted dams: 89% within 2×, 1σ = 0.18 dex, median
bias 0.03 dex. - Per-dam V uncertainty propagated from a population-level
b_sigma(0.265 dex). Neweaves.postprocess.uncertaintymodule +
CLI; output atvalidation/v_uncertainty.csv. - Three supplementary panels (S1 clustering, S2 threshold sweep,
S3 uncertainty band). All panels render as PNG + vector PDF. - 5-step orchestrator
run_all.sh: pipeline → validation →
uncertainty → panels → report. - Report reproducibility footer lists numpy/scipy/sklearn/etc. versions.
Pipeline schema (lean)
eaves_params.csv → dam_id, dam_name, capacity_mcm, c, b, source.
Per-dam confidence metrics now live in validation/v_uncertainty.csv.
Tests
19 new unit tests (panel helpers), regression goldens refreshed,
52 fast + 1 slow test passing.
Known limitations
- One dam (Shahdan) on the log-log fallback (NaN
valley_ratio). - Bathymetric ground truth limited to Baish (id_120000) regionally.
Full changelog: CHANGELOG.md