MazamaSpatialUtils (version 0.6.4)

getHUC: Return HUCs at specified locations

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

getHUC(lon, lat, dataset = "WBDHU10_02", HUCs = NULL,
  allData = FALSE)

Arguments

lon

vector of longitudes in decimal degrees

lat

vector of latitudes in decimal degrees

dataset

name of spatial dataset to use

HUCs

vector of Hydrologic Unit Codes

allData

logical specifying whether a full dataframe should be returned

Value

Vector of HUC identifiers.

See Also

getSpatialData