getNearby: Filter environmental monitoring stations by POI

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getNearby.R

Description

Return metadata of environmental monitoring stations nearby a specific environmental station (see siteID) or near a a Latitude/Longitude pair (see lat,lon).

Usage

1
getNearby(siteID, lat, lon, radius, ...)

Arguments

siteID

(character) in the form of: [NETWORK]:[ID]. Environmental monitoring network to use as your Point of Interest (POI). Required if lat & lon are missing.

lat

(numeric) Latitude of (POI). lat and lon are required if siteID is missing.

lon

(numeric) Longitude of POI. lat and lon are required if siteID is missing.

radius

(numeric) Search radius outward from POI for finding environmental monitoring stations. Defined in kilometers (km); Required

...

auto-populates when called from siteFinder() wrapper

Value

A list comprising metadata of environmental monitoring stations located within radius from the user-entered siteID or Lat/Lon POI.

Author(s)

Josh Roberti [email protected]

See Also

siteFinder mapSiteFinder metScanR_DB

Examples

1
2
3
4
5
6
## Not run: 
#returns metadata from all sites within 50 km of NEON site 'CPER'
  getNearby(siteID="NEON:CPER", radius=50)
#return metadata of sites within 10 km of Lat=41.7821 & Lon = -71.4204 (Cranston, RI, USA)
  getNearby(lat=41.7821, lon = -71.4204, radius=10)
## End(Not run)

metScanR documentation built on March 19, 2018, 9:04 a.m.