Learn R Programming

PAMmisc (version 1.12.3)

erddapToEdinfo: 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 = c("https://upwell.pfeg.noaa.gov/erddap/",
    "https://coastwatch.pfeg.noaa.gov/erddap/", "https://www.ncei.noaa.gov/erddap/",
    "https://erddap.sensors.ioos.us/erddap"),
  chooseVars = TRUE
)

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

Value

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

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

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code
if (FALSE) {
# 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')
}

Run the code above in your browser using DataLab