Skip to content

BDMS 350: add groundwater_level_accuracy to observation model#314

Merged
chasetmartin merged 5 commits into
water-level-csvfrom
observation-field-updates
Dec 18, 2025
Merged

BDMS 350: add groundwater_level_accuracy to observation model#314
chasetmartin merged 5 commits into
water-level-csvfrom
observation-field-updates

Conversation

@jacob-a-brown

Copy link
Copy Markdown
Contributor

Why

This PR addresses the following problem / context:

  • When groundwater level observations are added to Ocotillo we need a way to track their accuracy, formerly known as DataQuality in NM_Aquifer
  • AMP requested that these value continue to be stored and retrievable, particularly because of their correspondence with USGS

How

Implementation summary - the following was changed / added / removed:

  • Updated the lexicon to call these data groundwater_level_accuracy instead of data_quality because every string describes the accuracy level. If, in the future, we want to change it into a numeric field we can certainly do that
  • Added groundwater_level_accuracy to the observation model and both the CreateGroundwaterLevelObservation and GroundwaterLevelObservationResponse schemas
  • Updated tests for this field
  • Updated the water level transfer script to map from WaterLevels.DataQuality to observation.groundwater_level_accurady

Notes

Any special considerations, workarounds, or follow-up work to note?

  • This update was instigated by the field data_quality in the water level upload
  • This PR is being opened into the water-level-csv because that is where the work is needed. Eventually, when ready, we'll open a PR from that branch into staging (then, as I wrote in Slack, this work will get applied to the well inventory csv upload if they contain water level data)

In NM_Aquifer these are strings describing the accuracy of the groundwater level measurement,
so the field has been renamed from data_quality to groundwater_level_accuracy for clarity.
…vel_accuracy

This is now included in both the creation and response of
groundwater level observations.
Comment thread transfers/waterlevels_transfer.py Outdated
Comment thread docker-compose.yml

@chasetmartin chasetmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the clarification

@chasetmartin chasetmartin merged commit c4dd1c9 into water-level-csv Dec 18, 2025
4 checks passed
@TylerAdamMartinez TylerAdamMartinez deleted the observation-field-updates branch February 26, 2026 18:28
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.

3 participants