You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add waterdata.get_peaks for the annual peak-streamflow OGC collection
Wraps the new /ogcapi/v0/collections/peaks collection. Returns the
annual peak record for a monitoring location — one row per (location,
parameter, water year) — which is the standard input to flood-
frequency analysis (log-Pearson Type III etc).
The collection covers stage (parameter 00065) and discharge (00060);
typical streamgages have a series for each.
Implementation reuses the existing get_ogc_data infrastructure:
- service = "peaks"
- output_id = "peak_id" (the API's `id` field is renamed for users,
matching the project's other get_* functions)
R has no equivalent yet; the docstring was written from scratch
following the project's existing get_* style.
Two live tests cover the happy path (single-site, both parameters
present) and a water-year filter.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
**05/06/2026:** Added `waterdata.get_peaks(...)` — wraps the new OGC `peaks` collection, returning the annual peak streamflow / stage record for a monitoring location (one row per water year, per parameter). Standard input to flood-frequency analysis. Supports calendar/water-year filters and the usual location/parameter/CQL knobs shared with the other OGC getters.
2
+
1
3
**05/05/2026:** Added `waterdata.get_samples_summary(monitoringLocationIdentifier=...)` — wraps the Samples database `/summary/{id}` endpoint, returning per-characteristic result and activity counts plus first / most recent activity dates for a single monitoring location. Useful for taking inventory of available discrete-sample data before pulling observations with `get_samples`.
2
4
3
5
**05/01/2026:** The `nadp` module is now deprecated. Calling any of `get_annual_MDN_map`, `get_annual_NTN_map`, or `get_zip` will emit a `DeprecationWarning`. The module is scheduled for removal on or after **2026-11-01**. NADP is not a USGS data source; users should retrieve NADP data directly from https://nadp.slh.wisc.edu/.
0 commit comments