Skip to content

avkoehl/headwaters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

headwaters

Fetch source data for a watershed from USGS services: the boundary, DEM, and NHD flowlines for a given HUC ID. Thin wrapper around the HyRiver stack (pygeohydro/pynhd/py3dep).

from headwaters import fetch_huc

dem, flowlines = fetch_huc(
    "180101080409", nhd_layer="medium", dem_resolution=30, crs="EPSG:3310"
)

DEM (hillshaded) and NHD flowlines for a HUC12

Flowlines whose upstream end sits on the watershed boundary are filtered out — they might be artifacts resulting from clipping to the watershed boundary

Regenerate: uv run --group example python examples/plot.py

About

Fetch dem and flowlines for huc basins from usgs

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages