erddapToEdinfo: Create an edinfo Object from an ERDDAP Dataset Id

Description Usage Arguments Value Author(s) Examples

View source: R/erddapToEdinfo.R

Description

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

Usage

1
2
3
4
5
erddapToEdinfo(
  dataset,
  baseurl = "https://upwell.pfeg.noaa.gov/erddap/",
  chooseVars = TRUE
)

Arguments

dataset

an ERDDAP dataset id, or the result from info

baseurl

the base URL of an ERDDAP server

chooseVars

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

Value

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

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

1
2
3
4
5
6
7
8
## 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/')

## End(Not run)

PAMmisc documentation built on Oct. 8, 2021, 9:08 a.m.