Add waterdata.get_field_measurements_metadata#268
Merged
thodson-usgs merged 1 commit intoDOI-USGS:mainfrom May 6, 2026
Merged
Conversation
Collaborator
Author
|
Tracked in the v1.1.4 release-staging issue: #270. |
Wraps the OGC /collections/field-measurements-metadata collection.
Returns one row per (location, parameter) field-measurement series
describing its period of record, units, etc., without the underlying
observations. Discrete-measurement analogue to
get_time_series_metadata.
Mirrors R's read_waterdata_field_meta in DOI-USGS/dataRetrieval, with
the same output_id ("field_series_id") and parameter list. Body is the
standard service-agnostic dispatch through get_ogc_data, with no new
infrastructure required.
Two live tests cover the single-site happy path and the multi-site
POST path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27d1aee to
75ba16c
Compare
ldecicco-USGS
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a thin wrapper around the OGC
/collections/field-measurements-metadatacollection. Returns one row per (location, parameter) field-measurement series describing its period of record, units, etc., without the underlying observations — that's whatget_field_measurementsis for.Discrete-measurement analogue to
get_time_series_metadata(which describes daily / continuous series). Primary use case is inventory queries: "what field-measurement parameters does this site have, and over what date range?"Implementation
Mirrors R's
read_waterdata_field_meta, with the sameoutput_id("field_series_id") and parameter list. Body is the standard service-agnostic dispatch throughget_ogc_data— no new infrastructure required.Live API examples (verified)
Test plan
test_get_field_measurements_metadata— single-site happy path; assertsfield_series_id,begin,endcolumns.test_get_field_measurements_metadata_multi_site— exercises the multi-site POST path.api.waterdata.usgs.gov.Related
Part of the v1.1.4 release-staging series; will be linked from a tracking issue.