edinfoToURL: Create a URL for Downloading Data from a edinfo Object

View source: R/edinfoToURL.R

edinfoToURLR Documentation

Create a URL for Downloading Data from a edinfo Object

Description

Creates a properly formatted URL (see formatURL) from a datalist either from the package's recommended sources or an ERDDAP dataset id

Usage

edinfoToURL(edinfo, ranges)

Arguments

edinfo

a edinfo class object, either from getEdinfo or created by erddapToEdinfo

ranges

list of ranges for Longitude, Latitude, and UTC. Must be a named list with a vector of min/max values for each of the three dimensions

Value

a properly formatted URL that can be used to download environmental data

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

sstEdi <- getEdinfo()[['jplMURSST41']]
# select all variables for download
sstEdi <- varSelect(sstEdi, TRUE)
edinfoToURL(sstEdi, ranges = list(Latitude = c(32, 33),
                                  Longitude = c(-118, -117),
                                  UTC = as.POSIXct(c('2000-01-01 00:00:00',
                                                     '2000-01-02 00:00:00'), tz='UTC')))

PAMmisc documentation built on June 22, 2024, 9:37 a.m.