Learn R Programming

rnoaa (version 0.3.3)

erddap_info: Get information on an ERDDAP dataset.

Description

Get information on an ERDDAP dataset.

Usage

erddap_info(datasetid, ...)

as.erddap_info(x)

Arguments

datasetid
Dataset id
...
Further args passed on to GET (must be a named parameter)
x
A datasetid or the output of erddap_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

References

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

Examples

Run this code
## Not run: ------------------------------------
# # grid dap datasets
# erddap_info('noaa_pfeg_696e_ec99_6fa6')
# erddap_info('noaa_ngdc_34bf_a95c_7e28')
# 
# (out <- erddap_search(query='temperature'))
# erddap_info(out$info$dataset_id[5])
# erddap_info(out$info$dataset_id[15])
# erddap_info(out$info$dataset_id[25])
# erddap_info(out$info$dataset_id[33])
# erddap_info(out$info$dataset_id[65])
# erddap_info(out$info$dataset_id[150])
# erddap_info(out$info$dataset_id[400])
# erddap_info(out$info$dataset_id[678])
# 
# out <- erddap_info(datasetid='noaa_ngdc_34bf_a95c_7e28')
# ## 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 Climatological_Temperature
# out$alldata$Climatological_Temperature
# 
# # table dap datasets
# (out <- erddap_search(query='temperature', which = "table"))
# erddap_info(out$info$dataset_id[1])
# erddap_info(out$info$dataset_id[2])
# erddap_info(out$info$dataset_id[3])
# erddap_info(out$info$dataset_id[4])
# erddap_info(out$info$dataset_id[54])
# 
# erddap_info(datasetid='erdCalCOFIfshsiz')
# out <- erddap_info(datasetid='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
## ---------------------------------------------

Run the code above in your browser using DataLab