Advanced search for ERDDAP tabledep or griddap datasets
Usage
ed_search_adv(
query = NULL,
page = 1,
page_size = 1000,
protocol = NULL,
cdm_data_type = NULL,
institution = NULL,
ioos_category = NULL,
keywords = NULL,
long_name = NULL,
standard_name = NULL,
variableName = NULL,
maxLat = NULL,
minLon = NULL,
maxLon = NULL,
minLat = NULL,
minTime = NULL,
maxTime = NULL,
url = eurl(),
...
)
Arguments
- query
(character) Search terms
- page
(integer) Page number. Default: 1
- page_size
(integer) Results per page: Default: 1000
- protocol
(character) One of any (default), tabledep or griddap
- cdm_data_type
(character) One of grid, other, point, profile, timeseries, timeseriesprofile, trajectory, trajectoryprofile
- institution
(character) An institution. See the dataset
institutions
- ioos_category
(character) An ioos category See the dataset
ioos_categories
- keywords
(character) A keywords. See the dataset
keywords
- long_name
(character) A long name. See the dataset
longnames
- standard_name
(character) A standar dname. See the dataset
standardnames
- variableName
(character) A variable name. See the dataset
variablenames
- minLon, maxLon
(numeric) Minimum and maximum longitude. Some datasets have longitude values within -180 to 180, others use 0 to 360. If you specify min and max Longitude within -180 to 180 (or 0 to 360), ERDDAP will only find datasets that match the values you specify. Consider doing one search: longitude -180 to 360, or two searches: longitude -180 to 180, and 0 to 360.
- minLat, maxLat
(numeric) Minimum and maximum latitude, between -90 and 90
- minTime, maxTime
(numeric/character) Minimum and maximum time. Time string with the format "yyyy-MM-ddTHH:mm:ssZ, (e.g., 2009-01-21T23:00:00Z). If you specify something, you must include at least yyyy-MM-dd; you can omit Z, :ss, :mm, :HH, and T. Always use UTC (GMT/Zulu) time. Or specify the number of seconds since 1970-01-01T00:00:00Z.
- url
A URL for an ERDDAP server. Default: https://upwell.pfeg.noaa.gov/erddap/ - See
eurl()
for more information- ...
Curl options passed on to crul::verb-GET (must be named parameters)
Examples
if (FALSE) { # \dontrun{
ed_search_adv(query = 'temperature')
ed_search_adv(query = 'temperature', protocol = "griddap")
ed_search_adv(query = 'temperature', protocol = "tabledap")
ed_search_adv(maxLat = 63, minLon = -107, maxLon = -87, minLat = 50,
protocol = "griddap")
ed_search_adv(maxLat = 63, minLon = -107, maxLon = -87, minLat = 50,
protocol = "tabledap")
ed_search_adv(minTime = "2010-01-01T00:00:00Z",
maxTime="2010-02-01T00:00:00Z")
(out <- ed_search_adv(maxLat = 63, minLon = -107, maxLon = -87, minLat = 50,
minTime = "2010-01-01T00:00:00Z",
maxTime="2010-02-01T00:00:00Z"))
out$alldata[[1]]
ed_search_adv(variableName = 'upwelling')
ed_search_adv(query = 'upwelling', protocol = "tabledap")
# use a different URL
ed_search_adv(query = 'temperature', url = servers()$url[6])
} # }