namanl_base_url: Retrieve the base url for either HTML, XML or OPENDAP...

Description Usage Arguments Value

View source: R/nam_anl.R

Description

As of 2020-05-18 the resources have been split into "model-namanl-old" and "model-namanl" with 2 days missing (2020-05-16 and 2020-05-17). I wish they had simply made the catalog have a year-level instead of an arbitrary threshold.

Usage

1
2
3
4
5
6
namanl_base_url(
  type = c("html", "thredds", "xml", "opendap")[2],
  threshold = namanl_threshold_date(),
  date = threshold - c(3, 0),
  base_uri = c("https://www.ncdc.noaa.gov", "https://www.ncei.noaa.gov")[2]
)

Arguments

type

character, one of the following

  • html - to get a URL for the human readable catalog page

  • thredds - to get the URL for the XML catalog page - this is the default

  • xml - same as thredds to get the URL for the XML catalog page

  • opendap - to get the URL to the opendap (grib2) resource

threshold

Date or cast-able as Date, inclusive threshold identifies start of 'recent' records

date

night Date or cast-able to Date, the date(s) to search for. The default is a 2 element vector with the last 'old' and first 'recent' dates.

base_uri

character

Value

URL


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