FindUsgsStns: Discover USGS stations using huc8 code or lat/lon/radius.

Description Usage Arguments See Also Examples

View source: R/usgs_ingest.R

Description

FindUsgsStns wraps dataRetrieval::whatNWISsites with common options for finding USGS gauges. See the dataRetrieval package for more deails on what else could be passed or how this could be modified. One improvement here would be to order results by proximity to supplied lat/lon and filter to nClosest.

Usage

1
2
FindUsgsStns(stnLon = NULL, stnLat = NULL, within = NULL,
  huc8 = NULL, siteType = "ST", hasDataTypeCd = "iv")

Arguments

stnLon

optional

stnLat

optional

within

optional, goes with stnLon and stnLat and specifies a search radius in decimal degrees.

huc8

optional EIGHT digit HUC code.

siteType

the type of USGS site to look for.

hasDataTypeCd

the kind of data of interest (iv=instantaneous, dv=daily, etc.)

See Also

Other streamObs: GetSiteHuc, GetUsgsHucData, GetUsgsIvProduct, ImproveHucMeta, LoadMetaDB, PlotPrettyUsgs, PrettyUsgs, QueryHaveSite, QuerySiteData, QuerySiteInfo, QuerySiteName, QuerySiteProd, SaveHucData, [.prettyUsgs, subset.prettyUsgs

Examples

1
2
3
4
5
6
7
8
## Not run: 
stnDf <- FindUsgsStns(huc8='10190005')
stnDf <- FindUsgsStns(huc8=c('10190005','03160203'))
stnDf <- FindUsgsStns(stnLon=254.67374999999998408,stnLat=40.018666670000001773,within=.001)
stnDf <- FindUsgsStns(stnLon=c(254.67374999999998408,-87.747224700000004),
                      stnLat=c(40.018666670000001773, 31.864042489999999),within=.001)

## End(Not run) #dontrun

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.