edinfoToURL {PAMmisc} | R 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')))
[Package PAMmisc version 1.12.1 Index]