Return HUCs at Specified Locations

Share:

Description

Uses spatial comparison to determine which HUC polygons the locations fall into and returns the HUC identifier strings for those polygons.

If allData=TRUE, additional data is returned.

Usage

1
getHUC(lon, lat, SPDF, HUCs = NULL, allData = FALSE)

Arguments

lon

vector of longitudes in decimal degrees

lat

vector of latitudes in decimal degrees

SPDF

spatial polygons dataset of HUCs

HUCs

vector of Hydrologic Unit Codes

allData

logical specifying whether to return a full dataframe

Value

Vector of HUC identifiers.

See Also

getSpatialData

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.