griddap_season.Rd
griddap_season
uses the R program 'rerddap::griddap()' to extract environmental data
from an 'ERDDAP' server in an (time, z, y ,x) bounding box where time is restricted to a
given season of the year (see below). Arguments are the same in 'rerddap::griddap()'
except for the added 'season' parameter. 'read' and 'fmt' options are ignored.
Anything coercable to an object of class info. So the output of a
call to info
, or a datasetid, which will internally be passed
through info
Dimension arguments. See examples. Can be any 1 or more of the dimensions for the particular dataset - and the dimensions vary by dataset. For each dimension, pass in a vector of length two, with min and max value desired. at least 1 required.
(character) Fields to return, in a character vector.
(integer) How many values to get. 1 = get every value, 2 = get every other value, etc. Default: 1 (i.e., get every value)
(character) a character array with the times of the trajectory in the form c("MM-DD", "MM-DD")
(character) ignored
A URL for an ERDDAP server. Default:
https://upwell.pfeg.noaa.gov/erddap/ - See rerddap::eurl()
for
more information
ignored
ignored
Curl options passed on to verb-GET
An object of class griddap_csv
if csv chosen or
griddap_nc
if nc file format chosen.
wind_info <- rerddap::info('erdQMekm14day')
season <- c('03-01', '04-05')
season_extract <- griddap_season(wind_info,
time = c('2015-01-28','2017-01-01'),
latitude = c(20, 40),
longitude = c(220, 240),
fields = 'mod_current',
season = season
)
#> info() output passed to x; setting base url to: https://upwell.pfeg.noaa.gov/erddap
#> info() output passed to x; setting base url to: https://upwell.pfeg.noaa.gov/erddap
#> info() output passed to x; setting base url to: https://upwell.pfeg.noaa.gov/erddap
#> info() output passed to x; setting base url to: https://upwell.pfeg.noaa.gov/erddap