R: Get information on an ERDDAP dataset.

info {rerddap} | R Documentation

## Get information on an ERDDAP dataset.

### Description

Get information on an ERDDAP dataset.

### Usage

    info(datasetid, url = eurl(), ...)

    as.info(x, url)

### Arguments

`datasetid` | Dataset id
`url` | A URL for an ERDDAP server. Default: https://upwell.pfeg.noaa.gov/erddap/
`...` | Further args passed on to `GET` (must be a named parameter)
`x` | A datasetid or the output of `info`

### Value

Prints a summary of the data on return, but you can index to various information.

The data is a list of length two with:

- variables - Data.frame of variables and their types

- alldata - List of data variables and their full attributes

Where `alldata` element has many data.frame's, one for each variable, with metadata for that variable. E.g., for griddap dataset `noaa_pfeg_696e_ec99_6fa6`, `alldata` has:

- NC_GLOBAL

- time

- latitude

- longitude

- sss

### Author(s)

Scott Chamberlain <myrmecocystus@gmail.com>

### References

https://upwell.pfeg.noaa.gov/erddap/index.html

### Examples

    ## Not run:
    # grid dap datasets
    info('erdATastnhday')

    (out <- ed_search(query='temperature'))
    info(out$info$dataset_id[5])
    info(out$info$dataset_id[15])
    info(out$info$dataset_id[25])
    info(out$info$dataset_id[150])
    info(out$info$dataset_id[400])
    info(out$info$dataset_id[678])

    out <- info(datasetid='noaa_esrl_027d_0fb5_5d38')
    ## See brief overview of the variables and range of possible values, if given
    out$variables
    ## all information on longitude
    out$alldata$longitude
    ## all information on air
    out$alldata$air

    # table dap datasets
    (out <- ed_search(query='temperature', which = "table"))
    info(out$info$dataset_id[1])
    info(out$info$dataset_id[2])
    info(out$info$dataset_id[3])
    info(out$info$dataset_id[4])

    info('erdCinpKfmBT')
    out <- info('erdCinpKfmBT')
    ## See brief overview of the variables and range of possible values, if given
    out$variables
    ## all information on longitude
    out$alldata$longitude
    ## all information on Haliotis_corrugata_Mean_Density
    out$alldata$Haliotis_corrugata_Mean_Density

    # use a different ERDDAP server
    ## Marine Institute (Ireland)
    info("IMI_CONN_2D", url = "http://erddap.marine.ie/erddap/")
    ## Marine Domain Awareness (MDA) (Italy)
    info("erdMH1chlamday", url = "https://bluehub.jrc.ec.europa.eu/erddap/")

    ## End(Not run)

[Package rerddap version 0.4.2 Index]