-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I recently wanted to plot all the NHDPlus v2.1 flowlines that do not have catchment polygons, and needed to load in the flowline and catchment datasets to do that. I think it would be helpful to create a new column in the flowline data table with this information (no_catchment below). You could also list the polygon ID number instead of a binary TRUE/FALSE.
#flowlines
flines <- sf::st_read('NHDPlusV21_NationalData_Seamless_Geodatabase_Lower48_07/NHDPlusNationalData/NHDPlusV21_National_Seamless_Flattened_Lower48.gdb',
layer = 'NHDFlowline_Network')
#catchments
catchments <- sf::st_read('NHDPlusV21_NationalData_Seamless_Geodatabase_Lower48_07/NHDPlusNationalData/NHDPlusV21_National_Seamless_Flattened_Lower48.gdb',
layer = 'Catchment')
flines$no_catchment <- TRUE
flines[which(flines$COMID %in% catchments$FEATUREID), 'no_catchment'] <- FALSE
Metadata
Metadata
Assignees
Labels
No labels