QuerySiteName: Find the name (site id) for a given site (name) in the local...

Description Usage Arguments Value See Also Examples

View source: R/usgs_ingest.R

Description

QuerySiteName returns the name (site id) for a given site ID (name) in the local database.

Usage

1
2
3
4
QuerySiteName(site, path = ".",
  retSiteId = tryCatch(is.na(as.numeric(site)), warning = function(w) TRUE,
  error = function(e) TRUE),
  metaDBFileName = "usgsDataRetrieval.metaDatabase.RData")

Arguments

site

Character USGS site number or name.

path

Character The path to the database.

retSiteId

Logical return ID (name if FALSE) This is only exposed in case there are issues, should work by default.

metaDBFileName

Character The name of the metadata file.

Value

Character Site name or number.

See Also

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

Examples

1
2
3
4
5
## Not run: 
QuerySiteName('06730500', '~/streamflow/OBS/')
QuerySiteName('BOULDER CREEK AT MOUTH NEAR LONGMONT, CO', '~/streamflow/OBS/')

## End(Not run)

mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.