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

Description Usage Arguments Value Author(s) Examples

View source: R/edinfoToURL.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
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 Oct. 8, 2021, 9:08 a.m.