get_wx_ACIS: Retrieve meteorological data from the Applied Climate...

Description Usage Arguments Examples

View source: R/get_wx_ACIS.R

Description

SHubbard, K. G., A. T. DeGaetano, and K. D. Robbins. 2004. A modern Applied Climate

Usage

1
2
get_wx_ACIS(stn = NULL, start = Sys.Date(), end = start,
  elems = c("maxt", "mint", "avgt", "pcpn", "snow", "snwd"))

Arguments

stn

scalar of station identification code for which to retrieve meteorological data. Several options are available, such as WBAN, COOP, FAA, WMO, ICAO, and GHCN. find_wx_stns returns one of the FAA, WBAN, or COOP code, depending on the station. See the Required parameters documentation for the ACIS web server for details. (http://www.rcc-acis.org/docs_webservices.html)

start

character or Date scalar of start date ("YYYY-MM-DD")

end

character or Date scalar of end date ("YYYY-MM-DD"); optional (defaults to same day as start)

elems

character vector of meteorological elements to retrieve. Default is to retrieve daily maximum, minimum, and average temperatures, precipitation and snowfall totals, and snow depth. See ACIS_elems or the Optional parameters documentation for the ACIS web server for additional details and options (http://www.rcc-acis.org/docs_webservices.html). Custom cooling, heating, and growing degree days, water equivalent of snow depth, and pan evaporation not currently supported.

Examples

1
2
3
4
5
6
7
# Atlanta Hartsfield-Jackson airport
# Use default code returned by function; in this case the FAA code
(atl_def <- find_wx_stns(-84.430876, 33.640139, n_stns = 1))
atl <- get_wx_ACIS("ATL", start = "2017-04-01", end = "2017-04-30")
# Use WMO code
atl2 <- get_wx_ACIS("72219", start = "2017-04-01", end = "2017-04-30")
identical(atl, atl2)

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