Skip to content

Releases: DOI-USGS/dataretrieval-python

v1.1.4

07 May 01:39
18f831f

Choose a tag to compare

v1.1.4 is a feature-and-cleanup release on the waterdata module: five new public getters that bring Python toward parity with the R dataRetrieval package, the formal start of the nwis deprecation (each function now emits a per-call DeprecationWarning naming its waterdata.* replacement; module removal scheduled on or after 2027-05-06), and a long tail of bug fixes across waterdata, nldi, wqp, and the shared utilities. Closes #270.

New waterdata getters

  • Add waterdata.get_peaks for the annual peak-streamflow OGC collection by @thodson-usgs in #267
  • Add waterdata.get_ratings for USGS stage-discharge ratings via STAC by @thodson-usgs in #269
  • Add waterdata.get_field_measurements_metadata by @thodson-usgs in #268
  • Add waterdata.get_combined_metadata for combined location + time-series inventory by @thodson-usgs in #264
  • Add waterdata.get_samples_summary for per-location sample inventory by @thodson-usgs in #262
  • Add waterdata.get_nearest_continuous helper by @thodson-usgs in #239
  • Add CQL filter / filter_lang passthrough to OGC waterdata getters by @thodson-usgs in #238
  • Isolate the filter feature behind a clean rollback flag; flag lex-comparison pitfall by @thodson-usgs in #240

Deprecations and removals

Bug fixes

  • Fix _arrange_cols: stop mutating the caller's properties list by @thodson-usgs in #254
  • waterdata.get_stats_data: preserve geometry across continuation pages by @thodson-usgs in #255
  • Fix _format_api_dates: parse ISO 8601 datetimes by @thodson-usgs in #247
  • Fix nldi: validate data source on every call, not just cache-miss by @thodson-usgs in #246
  • nldi: fix several user-visible bugs in get_features, get_flowlines, search by @thodson-usgs in #252
  • nldi: raise ValueError (not TypeError) for invalid navigation mode by @thodson-usgs in #258
  • Polish wqp.py: silence prints, fix exception shape, fix typos by @thodson-usgs in #256
  • Fix wqp.get_results: preserve user-supplied WQX3.0 dataProfile by @thodson-usgs in #250
  • Fix get_reference_table: propagate limit to query args by @thodson-usgs in #248
  • Make _handle_stats_nesting tolerant of missing drop columns by @thodson-usgs in #257
  • Fix IndexError in _read_rdb when NWIS returns no data rows by @thodson-usgs in #227

Docs and hygiene

New Contributors

  • @Copilot made their first contribution in #235

Full Changelog: v1.1.3...v1.1.4

v1.1.3

09 Apr 23:08
0aec2c8

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.2...v1.1.3

v1.1.2

26 Jan 20:22
dc9b614

Choose a tag to compare

What's Changed

  • Restrict pandas 3.0.0 by @nodohs in #212 : <3.0.0 is fine, but we also want to specify that pandas should be at least 2.+. In a future release, we may include 3.0.0 as well, but this is a quick fix to get the new features available on conda-forge.

New Contributors

Full Changelog: v1.1.1...v1.1.2

v1.1.1

22 Jan 17:58
6328e09

Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

26 Nov 21:18
2ff0d91

Choose a tag to compare

🎊 New waterdata module added 🎊

This module provides access to USGS's modernized Water Data APIs, serving information such as monitoring location info, daily values, field measurements, timeseries metadata, latest continuous and daily data values, discrete water quality data, and more. Please give the new functions a try and provide feedback via issues.

What's Changed

  • Fix gwlevels pcode by @ehinman in #180
  • Remove qwdata documentation, tests, etc. and replace with waterdata.get_samples() by @ehinman in #178
  • Add waterdata infrastructure by @ehinman in #183
  • Fix pathing so new waterdata documentation is available by @ehinman in #189
  • Another attempt to fix documentation issues by @ehinman in #190
  • Get rid of NLDI import by @ehinman in #191
  • Combine two lines of strings by @ehinman in #192

Full Changelog: v1.0.12...v1.1.0

v1.0.12

06 May 22:39
4b3a3e8

Choose a tag to compare

What's Changed

  • Add new module samples.py that introduces the new get_usgs_samples() and get_codes() functions by @ehinman and @thodson-usgs in #173

Full Changelog: v1.0.11...v1.0.12

v1.0.11

25 Oct 17:35
3ba0c83

Choose a tag to compare

Warning

v1.0.10 assigned the incorrect datum to gage location data (#169).
The default datum has been changed to EPSG:4269 (NAD 83), even though some gages still use other datums.

What's Changed

New Contributors

Full Changelog: v1.0.10...v1.0.11

v1.0.10

05 Aug 19:40
d3865a2

Choose a tag to compare

What's Changed

  • update(nldi.py): Add CRS information to GeoDataFame objects by @jlarsen-usgs in #142
  • Remove coveralls link by @thodson-usgs in #145
  • feat(geopandas support): return GeoDataFrame if geopandas is installed by @jlarsen-usgs in #143
  • Adjust gwlevels URL services by @ehinman in #147 - adjusted due to discontinuation of GW levels RDB/WaterML2 endpoints, which caused breaking changes to the gwlevels service. See Water Data for the Nation blog post for more information.

New Contributors

Full Changelog: v1.0.9...v1.0.10

v1.0.9

10 Jun 17:11
3ae36b3

Choose a tag to compare

What's Changed

This release adds some links to the REST doc and a convenience dictionary of state FIPS codes.

Full Changelog: v1.0.8...v1.0.9

v1.0.8

01 May 16:52
e8b508b

Choose a tag to compare

What's Changed

Package for Python 3.12

Full Changelog: v1.0.7...v1.0.8