query_nam218: Run a query for NAM-218 datasets

Description Usage Arguments Value

View source: R/query.R

Description

Run a query for NAM-218 datasets

Usage

1
2
3
4
5
6
7
8
9
query_nam218(
  what = c("analysis", "forecast")[1],
  day = c("20060601", format(Sys.Date() - ifelse(what == "analysis", 4, 0), format =
    "%Y%m%d"))[1],
  ftime = c(NA, "0000", "0600", "1200", "1800")[1],
  ahead = c(NA, "000", "003", "006", "084")[1],
  form = c("uri", "node")[2],
  root_path = "https://www.ncei.noaa.gov/thredds/dodsC"
)

Arguments

what

character specifies 'analysis', 'analysis-historical' or 'forecast'

day

either POSIXct or an 8 character day (YYYYmmdd)

ftime

4 character forecast period time stamp ('0000', '0006', etc.) or NA

ahead

3 character cycle timestamp ('000' now cast, '003 three hours ahead, etc) or NA

form

character, either "uri" or "node"

root_path

charcater, used as the root path if form is 'uri'

Value

list of DatasetRefClass (possibly empty or NULL) or a character vector of URLs


BigelowLab/namanl documentation built on Nov. 15, 2021, 3:11 p.m.