Skip to content

Add a national water budget page from official sources - #17

Merged
jonashertner merged 3 commits into
mainfrom
water-budget
Oct 10, 2026
Merged

jonashertner merged 3 commits into
mainfrom
water-budget

Conversation

@jonashertner

Copy link
Copy Markdown
Owner

Adds budget.html (en, de, fr, it, rm): a national water budget for Switzerland built only from official sources.

  • Current conditions: monthly outflow against the long-term mean, groundwater and lake level classes, the weekly drought index by region, reservoir fill and glacier loss.
  • Annual balance: precipitation, evaporation, outflow and storage change from BAFU's national table, for the latest year (2024), the 1991–2020 normal and 12 catchments.
  • Stores: groundwater, lakes, glacier ice, soil and reservoirs, each with its size and source.
  • Use: public drinking-water supply (BFS from SVGW) and the other uses that have figures.

build/19-budget.mjs and build/20-conditions.mjs run in the weekly refresh. verify-site checks the balance closure and data freshness. Vintage records the three new sources.

Known caveats: the de/fr/it/rm text is machine-drafted (Romansh needs review); GLAMOS licence terms conflict; BAFU's balance table states no terms; the drought index is partly modelled.

🤖 Generated with Claude Code

The new budget page (budget.html, five languages) shows:
- Switzerland's annual water balance from BAFU's national table:
  precipitation, evaporation, outflow and storage change, for the
  latest year, the 1991-2020 normal and 12 catchments;
- the stores: groundwater, lakes, glacier ice, soil and reservoirs;
- drinking-water supply and other uses (BFS from SVGW);
- current conditions: monthly outflow against the mean, groundwater
  and lake classes, the weekly drought index by region, reservoir fill
  and glacier loss.

build/19-budget.mjs and build/20-conditions.mjs fetch the official
files and run in the weekly refresh. verify-site checks the balance
closure and data freshness. Vintage records the three new sources.
The method page and the navigation link to the new page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonashertner
jonashertner enabled auto-merge (squash) October 10, 2026 18:09
Jonas Hertner and others added 2 commits October 10, 2026 20:13
A new page's canonical URL returns 404 until the page deploys, and
deploy waits on this check, so no new page could ship. verify-site
already checks the canonicals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonashertner
jonashertner merged commit d2bcb0c into main Oct 10, 2026
3 checks passed
@jonashertner
jonashertner deleted the water-budget branch October 10, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant