find_wx_stns: Find nearest ASOS weather station by geographic location (USA...

Description Usage Arguments Examples

View source: R/find_wx_stns.R

Description

The returned station abbreviations (FAA station identifiers) can then be passed to get_wx, get_wx_ACIS, or get_ACIS_meta

Usage

1
2
find_wx_stns(lon = NULL, lat = NULL, address = NULL, asos_only = FALSE,
  n_stns = 5, id_only = TRUE, plot = FALSE)

Arguments

lon

numeric scalar of position longitude (decimal degrees; WGS84)

lat

numeric scalar of position latitude (decimal degrees; WGS84)

address

character scalar of a street address or place name (e.g. "Mattamuskeet NWR" or "135 Phoenix Rd, Athens, GA"); overrides lat and lon if specified. See example

asos_only

logical (default = FALSE); return only ASOS stations? Primarily used in conjunction with get_wx

n_stns

how many nearest stations to return?

id_only

logical; return only station abbreviations or station info too?

plot

logical; generate plot showing station positions relative to input location (default FALSE)

Examples

1
2
3
4
5
6
7
8
find_wx_stns(-83, 34)
find_wx_stns(-83, 34, id_only = FALSE)
## Not run: 
find_wx_stns(address = "Mattamuskeet NWR", id_only = FALSE, plot = TRUE)
# Return only ASOS stations...
find_wx_stns(address = "Mattamuskeet NWR", asos_only = TRUE, plot = TRUE)

## End(Not run)

adamdsmith/nrsmisc documentation built on Aug. 13, 2019, 2:14 p.m.