View source: R/erddapToEdinfo.R
erddapToEdinfo | R Documentation |
Creates an edinfo object that can be used to create a URL for downloading environmental data using edinfoToURL
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 )
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 |
an edinfo list object that can be used to download environmental data
Taiki Sakai taiki.sakai@noaa.gov
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.