Given an ERDDAP dataset info object, return a vector of all available values in given dimension.

ed_dim(ed, dim)

Arguments

dim

dimension to extract

ed_info

ERDDAP info object on SeaScape dataset, as returned by ed_info)

Value

vector of values for given dimension

Examples

ed <- ed_info("https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplMURSST41.html")
ed_dim(ed, "LEV")
#> Error in open.connection(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x3db>),  : 
#>   HTTP error 500.
#> Error in ed_dim(ed, "LEV"): Problem fetching dimension LEV from ERDDAP: https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplMURSST41.csvp?LEV