azavea / noaa-hydro-data

NOAA Phase 2 Hydrological Data Processing
11 stars 3 forks source link

Task 3-2: Develop National Water Boundary Dataset Library for Python #36

Closed lewfish closed 2 years ago

lewfish commented 2 years ago

Similar to Task 3-1, Azavea will develop a data access and representation library for the National Water Boundary Dataset that simplifies the process of securing and querying the data in the Python Notebook environment.

rajadain commented 2 years ago

HyRiver can query the WaterData web service, which has support for querying HUC-8s and HUC-12s. No support for other levels of hydrologic units, unfortunately. But this may be enough.

Demo: https://gist.github.com/rajadain/34887c5f0564715acedfb437fc260342

rajadain commented 2 years ago

HyRiver is a wrapper around existing web services, and uses the USGS Labs Geoserver which only has HUC8 and HUC12 support. However, there is a National Map ArcGIS Online instance that supports HUC2 all the way to HUC16, which we could add support for in HyRiver, which would be a useful contribution. We should talk to Taher and other maintainers before we begin that process.

rajadain commented 2 years ago

HyRiver actually does have support for WBD via PyGeoHydro: https://github.com/hyriver/pygeohydro/blob/8985dee33f392367b4ec737cb689c97f7b51b128/pygeohydro/pygeohydro.py#L990