adv
.read.adv(file, from=0, to, by=1,
type=c("nortek", "sontek", "sontek.adr", "sontek.text"),
withHeader=TRUE, sampling.start, deltat,
tz=getOption("oce.tz"), debug=getOption("oce.debug"), monitor=TRUE, log.action)
read.adv.nortek(file, from=0, to, by=1,
type="vector",
withHeader=TRUE, sampling.start, deltat,
tz=getOption("oce.tz"), debug=getOption("oce.debug"), monitor=TRUE, log.action)
read.adv.sontek(file, from=0, to, by=1,
type="default",
withHeader=TRUE, sampling.start, deltat,
tz=getOption("oce.tz"), debug=getOption("oce.debug"), monitor=TRUE, log.action)
read.adv.sontek.adr(file, from=0, to, by=1,
tz=getOption("oce.tz"), debug=getOption("oce.debug"), monitor=TRUE, log.action)
read.adv.sontek.text(basefile, from=0, to, by=1,
coordinate.system="xyz",
transformation.matrix,
tz=getOption("oce.tz"), debug=getOption("oce.debug"), log.action)
".hd1"
and ".ts1"
to the base name.tz
argument. (IGNORED AT PRESENT.)by-1
profiles are skipped between each pair of profiles that is read.
This may not make much sense, if the data are not equi-spwithHeader=FALSE
.)"beam"
, "xyz"
, "enu"
or "other"
.rbind(c(2.710, -1.409, -1.299), c(0.071, 2.372, -2.442), c(0.344, 0.344, 0.344))
.
This is only relevant if the coordinate system is "beam"
.withHeader=FALSE
.)TRUE
to provide an indication
(with numbers and dots) of every profile read.class
"adv"
, which
contains measurements made with an ADV device. For information on
data stored in the object, see It is crucial to pay careful attention if withHeader
is
FALSE
, since that condition forces read.adv
to make
guesses about important things. In particular, it will set
metadata$deltat=1
,
metadata$orientation="downward"
and
metadata$oce.coordinate="beam"
. It is up to the user to
modify these values if they are wrong.
Special notes: Nortek adr files: the file format assumed here is not the same as in the documentation that I have available. The documentation is for Firmware Version 4.0 (October 1997), but this does not match a data file used for testing. The following are the differences:
RecordedData
byte does not agree with the docs (bit 0
is 0 in the file, but we *do* have amplitude and correlation data).adv
may be plotted with
plot.adv
or summarized with summary.adv
.
Coordinate transformations are done with adv.beam2xyz
,
adv.xyz2enu
, and adv.enu2other
, in
that order.library(oce)
adv <- read.adv("~/data/sleiwex-archive/2008/mooring/m6/autopod/day183/SL08A183.015",
sampling.start=as.POSIXct("2008-07-01 15:00:00", tz="UTC"), deltat=0.1)
summary(adv)
plot(adv)
Run the code above in your browser using DataLab