getHUC: Return HUCs at Specified Locations

Description Usage Arguments Value See Also

View source: R/getHUC.R

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 a full dataframe should be returned

Value

Vector of HUC identifiers.

See Also

getSpatialData


MazamaSpatialUtils documentation built on Aug. 4, 2017, 1:01 a.m.