Learn R Programming

oce (version 1.1-1)

adv-class: Class to Store adv Data

Description

This class holds data from acoustic-Doppler velocimeters.

Arguments

Slots

data

As with all oce objects, the data slot for adv objects is a list containing the main data for the object. The key items stored in this slot include time and v.

metadata

As with all oce objects, the metadata slot for adv objects is a list containing information about the data or about the object itself. Examples that are of common interest include frequency, oceCordinate, and frequency.

processingLog

As with all oce objects, the processingLog slot for adv objects is a list with entries describing the creation and evolution of the object. The contents are updated by various oce functions to keep a record of processing steps. Object summaries and processingLogShow both display the log.

Modifying slot contents

Although the [[<- operator may permit modification of the contents of adv objects (see [[<-,adv-method), it is better to use oceSetData and oceSetMetadata, because that will save an entry in the processingLog to describe the change.

Retrieving slot contents

The full contents of the data and metadata slots of a adv object named adv may be retrieved in the standard R way. For example, slot(adv, "data") and slot(adv, "metadata") return the data and metadata slots, respectively. The [[,adv-method operator can also be used to access slots, with adv[["data"]] and adv[["metadata"]], respectively. Furthermore, [[,adv-method can be used to retrieve named items (and potentially some derived items) within the metadata and data slots, the former taking precedence over the latter in the lookup. It is also possible to find items more directly, using oceGetData and oceGetMetadata, but this cannot retrieve derived items.

Details

A file containing ADV data is usually recognized by Oce, and so read.oce will usually read the data. If not, one may use the general ADV function read.adv or specialized variants read.adv.nortek, read.adv.sontek.adr or read.adv.sontek.text.

ADV data may be plotted with plot,adv-method function, which is a generic function so it may be called simply as plot(x), where x is an object inheriting from adv-class.

Statistical summaries of ADV data are provided by the generic function summary,adv-method.

Conversion from beam to xyz coordinates may be done with beamToXyzAdv, and from xyz to enu (east north up) may be done with xyzToEnuAdv. toEnuAdv may be used to transfer either beam or xyz to enu. Enu may be converted to other coordinates (e.g. aligned with a coastline) with enuToOtherAdv.

See Also

Other classes provided by oce: adp-class, argo-class, bremen-class, cm-class, coastline-class, ctd-class, lisst-class, lobo-class, met-class, oce-class, odf-class, rsk-class, sealevel-class, section-class, topo-class, windrose-class

Other things related to adv data: [[,adv-method, [[<-,adv-method, adv, beamName, beamToXyz, enuToOtherAdv, enuToOther, plot,adv-method, read.adv.nortek, read.adv.sontek.adr, read.adv.sontek.serial, read.adv.sontek.text, read.adv, rotateAboutZ, subset,adv-method, summary,adv-method, toEnuAdv, toEnu, velocityStatistics, xyzToEnuAdv, xyzToEnu

Examples

Run this code
# NOT RUN {
data(adv)
adv[["v"]] <- 0.001 + adv[["v"]] # add 1mm/s to all velocity components

# }

Run the code above in your browser using DataLab