The xtractomatic package is a set of routines to simplify accessing data using ERD's ERDDAP data web service. The package contains three main functions and two helper functions.
xtracto - Extracts an environmental variable along a track defined by
its longitude, latitude and time.
xtracto_3D - Extracts an environmental variable in a
3D (longitude,latitude, time) bounding box
xtractogon - Extracts an environmental variable in a spatial
polygon through time.
plotTrack - Plots the results of a call to 'xtracto()'
plotBBox - Plots the results of a call to 'xtracto_3D()' and 'xtractogon()'
searchData - Searches to see if given string is contained
in the datasetname, varname, or dtypename. See ?searchData.
getInfo - Returns information about a given environmental variable.
@section Details: When the xtractomatic package is loaded ("library(xtractomatic)") a data structure called erddapStruct is automatically loaded into memory, and is explicitly used in searchData and getInfo, as well implicitly in the other functions. Not all ERDDAP variables are accessed in the routines, and this structure defines information about the datasets, including:
Besides the terse help documents, more detail in using the functions are given in the included vignette "Usingxtractomatic". The datasets used in the vignette are included in the "data" directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.