findGAGESII: Find GAGESII points and basins

Description Usage Arguments Value Author(s) Examples

View source: R/findGAGESII.R

Description

The 'Geospatial Attributes of Gages for Evaluating Streamflow, version II' (GAGESII) provides geospatial data and classifications for 9,322 stream gages maintained by the U.S. Geological Survey (USGS). findGAGESII returns a SpatialPointsDataFrame* of GAGESII outlets within an AOI. Data comes from the USGS CIDA server and contains the following attributes:

If basins = TRUE a SpatialPolygonsDataFrame of the gage drainage basin will also be appended to the returned list and contain the following attributes:

Usage

1
findGAGESII(AOI = NULL, basins = FALSE, ids = FALSE)

Arguments

AOI

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

basins

If TRUE, returns a list of GAGESII basin in addition

ids

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

Value

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

Author(s)

Mike Johnson

Examples

1
2
3
4
5
6
7
8
## Not run: 
#Get GAGESII outlets for AOI
bas = getAOI(clip = list("UCSB", 10, 10)) %>%  findGAGESII()

#Get GAGESII outlets and basins for AOI
bas = getAOI(clip = list("UCSB", 10, 10)) %>%  findGAGESII(basins = TRUE)

## End(Not run)

mikejohnson51/HydroData documentation built on May 29, 2019, 2:34 p.m.