Skip to contents

Start the process of building a CCIA dataset URL request. This function takes a relative URL (see ccia_dataset_urls()) and a given access type and creates a httr2::request()

Usage

ccia_create_dataset_request_url(
  dataset_relative_url,
  access_type = c("NetcdfSubset", "OPENDAP", "HTTPServer", "WMS", "WCS", "NCML", "UDDC",
    "ISO")
)

Arguments

dataset_relative_url

relative URL from the dataset download page. Loaded into R session with ccia_dataset_urls()

access_type

dataset type to download.

Value

An HTTP response: an S3 list with class httr2_request.

Details

There are two base URLs and internal URL paths depending on the dataset type (Projected change or Plausible future climate data and Threshold datasets). This function builds the URL given the dataset and access type https:////