Skip to content

Add Switzerland fetcher#92

Open
thiagovmdon wants to merge 2 commits intomainfrom
switzerland
Open

Add Switzerland fetcher#92
thiagovmdon wants to merge 2 commits intomainfrom
switzerland

Conversation

@thiagovmdon
Copy link
Copy Markdown
Collaborator

Summary

This PR adds support for Switzerland to RivRetrieve Python.

It includes:

  • a new SwitzerlandFetcher
  • integration into rivretrieve/__init__.py
  • documentation page for Switzerland
  • cached station metadata
  • example usage scripts
  • tests and sample fixtures

Implementation details

  • Metadata is retrieved from the public station endpoint:
    https://api.existenz.ch/apiv1/hydro/locations
  • The main source website is:
    https://api.existenz.ch/#hydro
  • For historical time series retrieval, the implementation uses the archive backend linked from the same source.
  • Supported variables are:
    • discharge
    • stage
    • water temperature
  • Both instantaneous values and daily means are supported.

Notes

  • Cached metadata file currently contains 246 Swiss stations.
  • Added a plotting example for quick manual verification of historical data.

@thiagovmdon thiagovmdon requested a review from kratzert as a code owner March 11, 2026 17:21
@thiagovmdon thiagovmdon force-pushed the switzerland branch 2 times, most recently from ec5fb67 to 6b68ab8 Compare March 25, 2026 07:57
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