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

Description Usage Arguments Value

View source: R/nam_cast.R

Description

As of 2020-05-18 the resources have been split into "model-nam218-old" and "model-nam218" 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
namcast_base_url(
  type = c("html", "thredds", "xml", "opendap")[2],
  threshold = namcast_threshold_date(),
  date = namcast_threshold_date() + c(-3, 0)
)

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.

Value

URL


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