Skip to content

Remove waterwatch module#228

Merged
thodson-usgs merged 1 commit intoDOI-USGS:mainfrom
thodson-usgs:remove-waterwatch
Apr 13, 2026
Merged

Remove waterwatch module#228
thodson-usgs merged 1 commit intoDOI-USGS:mainfrom
thodson-usgs:remove-waterwatch

Conversation

@thodson-usgs
Copy link
Copy Markdown
Collaborator

@thodson-usgs thodson-usgs commented Apr 13, 2026

Summary

Closes #137.

The WaterWatch web service has been shut down. https://waterwatch.usgs.gov/webservices/floodstage now returns a 301 redirect to a retirement blog post (waterdata.usgs.gov/blog/wdfn-stats-delivery/) serving HTML — get_flood_stage() would fail with a JSON parse error or TooManyRedirects. Confirmed live at time of this PR.

Changes:

  • Delete dataretrieval/waterwatch.py
  • Remove from dataretrieval.waterwatch import * from dataretrieval/__init__.py

No documentation references were found (confirmed by @lstanish-usgs in the issue). No tests existed for this module.

Test plan

  • Endpoint manually confirmed dead — 301 → HTML retirement page, no JSON data
  • Full test suite passes (116/116) with no regressions

🤖 Generated with Claude Code

The WaterWatch web service was shut down and get_flood_stage() no longer
works. Remove waterwatch.py and its import from __init__.py.

Closes DOI-USGS#137.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thodson-usgs thodson-usgs marked this pull request as ready for review April 13, 2026 22:31
@thodson-usgs thodson-usgs merged commit c4d0f84 into DOI-USGS:main Apr 13, 2026
8 checks passed
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.

decommission waterwatch.py

1 participant