R code to extract hydrologic unit code numbers (HUC) from the USGS Watershed Boundary Dataset (WBD).
Code is in file WBD-Get-v2.R WBD_National_GDB.xml contains the metadata for the version of the dataset pulled (rolling date, see below).
HUCxList.csv are the resulting data pulled from the WBD by this code (Using WBD version of September 10, 2024) at the x HUC level, where x is one of {2,4,6,8,10,12,14,16}.