Skip to content

98 watershed

image image image

Retrieving watershed boundaries from the National Hydrography Dataset (NHD)

Uncomment the following line to install leafmap if needed.

1
# %pip install -U leafmap
1
import leafmap
1
point_geometry = {"x": -114.452985, "y": 36.13323}
1
2
gdf = leafmap.get_wbd(point_geometry, digit=8, return_geometry=True)
gdf.explore()
1
bbox_geometry = {"xmin": -115.0954, "ymin": 36.1000, "xmax": -114.6658, "ymax": 36.1986}
1
2
gdf = leafmap.get_wbd(bbox_geometry, digit=8, return_geometry=True)
gdf.explore()
1
2
3
huc_id = "10160002"
gdf = leafmap.get_wbd(searchText=huc_id, digit=8)
gdf.explore()
1
2
gdf = leafmap.get_wbd(searchText=huc_id, digit=10)
gdf.explore()