adp
.read.adp(file, from=1, to, by=1, tz=getOption("oceTz"),
latitude=NA, longitude=NA,
manufacturer=c("rdi", "nortek", "sontek"),
debug=getOption("oceDebug"), monitor=TRUE, despike=FALSE, history,
...)
read.adp.rdi(file, from=1, to, by=1, tz=getOption("oceTz"),
latitude=NA, longitude=NA,
type=c("workhorse"),
debug=getOption("oceDebug"), monitor=TRUE, despike=FALSE, history,
...)
read.adp.nortek(file, from=1, to, by=1, tz=getOption("oceTz"),
latitude=NA, longitude=NA,
type=c("aquadopp high resolution"),
debug=getOption("oceDebug"), monitor=TRUE, despike=FALSE, history,
...)
read.adp.sontek(file, from=1, to, by=1, tz=getOption("oceTz"),
latitude=NA, longitude=NA,
type=c("adp","pcadp"),
debug=getOption("oceDebug"), monitor=TRUE, despike=FALSE, history,
...)
read.adp.sontek.serial(file, from=1, to, by=1, tz=getOption("oceTz"),
latitude=NA, longitude=NA,
type=c("adp", "pcadp"),
beamAngle=25, orientation,
monitor=TRUE, history,
debug=getOption("oceDebug"))
read.adp.sontek.serial
, this is
generally a list of files, which will be concatenated.from
. If not supplied, the whole
file will be read.by-1
profiles are skipped between each pair of profiles that is read. If
this is a string representing a time interval, in colread.adp
to select a subsidiary
function to use, such as read.adp.nortek
."upward"
and
"downward"
. This is only used for read.adp.sontek.serial
.TRUE
to provide an indication
(with numbers and dots) of every profile read.TRUE
, despike
will be used
to clean anomalous spikes in heading, etc.class
"adp"
, which
contains measurements made with an ADP device. The value of
metadata$coordinate
is set to "beam"
, a fact that is
used in other steps in processing. For information on data stored in
the object, see There are three types of element stored in the result's data
,
namely space-series, time-series, and matrix. These are contained
within lists named data$ss
, data$ts
and data$ma
,
respectively, with contents as follows.
[object Object],[object Object],[object Object]
In addition to the data
entry, the metadata
entry
holds general information about such things as beam geometry, etc.
EB
command during the setup for the deployment, then
a heading bias will have been stored in the file's header. This
value is stored in the object's metadata asmetadata$heading.bias
.Importantly, this value is
subtracted from the headings stored in the file, and the result of
this subtraction is stored in the objects heading value (indata$ts$heading
).
It should be noted thatread.adp.rdi()
was tested for
firmware version 16.30. For other versions, there may be problems.
For example, the serial number is not recognized properly for
version 16.28.0x7f
repeated twice,
and each profile starts with the bytes
0x80
, followed by 0x00
, followed by the
sequence number of the profile, represented as a little-endian
two-byte short integer. read.adp.rdi()
uses
these sequences to interpret data files.)2. Information on Nortek profiler is available at
3. Information about Sontek profilers is available at
read.oce
provides an
alternative to this. An adp
object may be summarized with
summary.adp
, and plotted with plot.adp
. Several functions are provided to manipulate adp
objects. For
example, in many research applications, the records are stored in beam
coordinates, instead of the further-processed forms such as instrument
or enu coordinates. Accordingly, beamToXyzAdp
is
provided, convert the velocity portions of adp
objects from
beam coordinates to xyz-based (also called ship-based or
instrument-based) coordinates. Similarly,
xyzToEnuAdp
converts from xyz to enu
coordinates, taking into account the varying orientation of an
instrument attached to a ship or a mobile mooring. For applications
in which enu-based coordinates are not desired (e.g. if a coordinate
is to be aligned with the local coastline or a mean current),
enuToOtherAdp
is provided, to convert from enu
coordinates to another coordinate system.
Another convenience function is beamAttenuateAdp
,
which performs a correction for $r^2$ beam spreading.
library(oce)
# A day sampled at 1/2 hour interval. Note the timezone.
dir <- "/data/archive/sleiwex/2008/moorings/"
f <- paste(dir, "m09/adp/rdi_2615/raw/adp_rdi_2615.000", sep="")
d <- read.oce(f, from=as.POSIXct("2008-06-26", tz="UTC"),
to=as.POSIXct("2008-06-27", tz="UTC"), by="30:00")
summary(d)
plot(d)
Run the code above in your browser using DataLab