Learn R Programming

oce (version 0.1-80)

adp.xyz2enu: Convert ADP from xyz coordinates to enu coordinates

Description

Convert ADP velocity components from a xyz-based coordinate system to an enu-based coordinate system, by using the instrument's recording of heading, pitch, and roll.

Usage

adp.xyz2enu(x)

Arguments

x
an object of class "adp".

Value

  • An object with the data$ma$v[,1:3,] altered appropriately, and with metadata$oce.orientation changed from xyz to enu.

Details

Different formulae are used for different instruments, e.g for RDI instruments, beams are rotated using formulae from page 13 and 14 of RD Instruments (1998).

References

RD Instruments, 1998. ADCP Coordinate Transformation, formulas and calculations. P/N 951-6079-00 (July 1998).

See Also

See read.adp for other functions that relate to objects of class "adp".

Examples

Run this code
library(oce)
data(adp)
f <- adp.beam2xyz(adp)
e <- adp.xyz2enu(f)
plot(e, which=1:3)

Run the code above in your browser using DataLab