library(oce)
# This example will only work for the author, because it uses a
# private file. The file contains 'burst' and 'average' data.
f <- "/Users/kelley/Dropbox/oce_secret_data/ad2cp/secret1_trimmed.ad2cp"
if (file.exists(f)) {
library(oce)
d <- read.oce(f)
# Example 1: time-distance variation of "average" velocity (beams 1 through 4)
plot(d, which="average/v", col=oceColorsVelocity)
# Example 2: time variation of "average" amplitude (beam 1)
plot(d, which="average/a/1")
# Example 3: time variation of "burst" magnetometer (x component)
plot(d, which="burst/magnetometer/x")
# Example 4: time variation of "burst" AHRS/gyro
plot(d, which="burst/AHRS/gyro")
}
Run the code above in your browser using DataLab