erddapToEdinfo: Create an edinfo Object from an ERDDAP Dataset Id

View source: R/erddapToEdinfo.R

erddapToEdinfoR Documentation

Create an edinfo Object from an ERDDAP Dataset Id

Description

Creates an edinfo object that can be used to create a URL for downloading environmental data using edinfoToURL

Usage

erddapToEdinfo(
  dataset,
  baseurl = "https://upwell.pfeg.noaa.gov/erddap/",
  chooseVars = TRUE
)

hycomToEdinfo(
  dataset = "GLBy0.08/expt_93.0",
  baseurl = "https://ncss.hycom.org/thredds/ncss/",
  chooseVars = TRUE
)

Arguments

dataset

an ERDDAP or HYCOM dataset id, or the result from info

baseurl

the base URL of an ERDDAP/HYCOM server

chooseVars

logical flag whether or not to select which variables you want now or character vector naming variables to select

Value

an edinfo list object that can be used to download environmental data

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

## Not run: 
# examples not run because they require internet connection
sstEdi <- erddapToEdinfo('jplMURSST41')
# dataset from a diferent erddap server
sshEdi <- erddapToEdinfo('hawaii_soest_2ee3_0bfa_a8d6',
                          baseurl = 'http://apdrc.soest.hawaii.edu/erddap/')
# THese work the same - erddap function will pass to hycom if appears to be hycom dataset
hycomEdi <- hycomToEdinfo('GLBy0.08/expt_93.0')
hycomEdi <- erddapToEdinfo('GLBy0.08/expt_93.0')

## End(Not run)


PAMmisc documentation built on Aug. 17, 2023, 1:06 a.m.