Skip to content

Conversation

@ehinman
Copy link
Collaborator

@ehinman ehinman commented Sep 19, 2025

This PR will add access to the new water data APIs via the waterdata module.

9/26/25: Added some updates to the README.md about the new module and API keys. Ready for testing and review.

EOD 9/25/25: qualifier is a tricky argument and product owner suggests against using it as an argument unless you're really confident and restrictive about what you want: it can be a list of multiple qualifiers and if you just pick one qualifier value, it will only match rows with JUST that one. Default is to return a geopandas dataframe when geometry are returned, but because geopandas is an optional dependency, functions will return pandas dataframes if geopandas is not available. Unit tests have been created, with opportunities for more. I'd say the functions are ready for testing. I need to add in some info on the new functions in the README, etc.

9/25/25: POST calls using the CQL2 query language appear to be working, and documentation for the functions has been added. I'm noticing some inconsistencies in some of the input parameters like qualifier that still need to be addressed/parsed. I also need to create unit tests and I'd like to have the functions return a geopandas dataframe when skipGeometry=False.

9/19/25: It is currently a work in progress that appears to work for GET calls in which the user requests one parameter (e.g. one site, one pcode, etc.) at a time. Still working out the POST calls in which a user may request multiple parameters (e.g. data from multiple sites, with multiple pcodes), which requires the use of the CQL2 query language. Stay tuned.

@agilmore2
Copy link

agilmore2 commented Sep 25, 2025 via email

@agilmore2
Copy link

agilmore2 commented Sep 25, 2025 via email

@ehinman
Copy link
Collaborator Author

ehinman commented Nov 24, 2025

I think this is ready to merge into develop. Do you agree/approve @thodson-usgs and @jzemmels?

@ehinman ehinman marked this pull request as ready for review November 24, 2025 19:57
@ehinman ehinman changed the base branch from develop to main November 24, 2025 20:21
Copy link
Collaborator

@thodson-usgs thodson-usgs left a comment

Choose a reason for hiding this comment

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

I had two suggestions, but I approve these changes. Nice work.

@ehinman ehinman merged commit 693588f into DOI-USGS:main Nov 25, 2025
25 of 28 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.

5 participants