findWaterbodies returns a SpatialPolgonsDataframe of all NHDwaterbodies within an AOI. Data comes from the USGS CIDA server and contain 23 attributes, perhaps most notably:

  • 'objectid' : integer Integer value that uniquely identifies the waterbody of each feature in the NHD

  • 'comid' : character The COMID draining into the feature

  • 'fdate': POSITct Date of last feature modification

  • 'gnis_id' : character Unique identifier assigned by GNIS

  • 'gnis_name' : character Proper name, term, or expression by which a particular geographic entity is known

  • 'meandepth' : numeric Mean depth of the waterbody

  • 'lakevolume' : numeric Total waterbody volume

  • 'maxdepth' : character Maximum depth of waterbody

  • 'meanused' : integer The average amount of water used


findWaterbodies(AOI = NULL, ids = FALSE)

Arguments

AOI

A Spatial* or simple features geometry, can be piped from getAOI

ids

If TRUE, a vector of waterbody IDs is added to retuned list (default = FALSE)

Value

a list() of minimum length 2: AOI and waterboies

Examples

# NOT RUN {
getAOI(clip = "Tuscaloosa") %>% findWaterbodies()
# }