logger
.read.logger(file, from=1, to, by=1, type,
tz=getOption("oceTz", default="UTC"), patm=FALSE,
processingLog, debug=getOption("oceDebug"))
file
must be a character string,
because connections are not used in that case, which is instead handled
with database calls.tz
from
. If to
is missing, data will be read
to the end of the file.by-1
profiles are skipped between each pair of profiles that is read. If
this is a string representing a time interval, in colrsk
. If
this argument is not provided, an attempt will be made to infer the type
from the file name and contents.oceTz
is set at package setup.patm
is FAL
TRUE
to turn on debugging.logger-class
. It should be noted that RBR loggers record conductivity in mS/cm, and that
it is this value that is stored in the object returned by
read.logger
. This can be converted to conductivity ratio (which is
what many other instruments report) by dividing by 42.914, which will be
necessary in any seawater-related function that takes conductivity ratio as
an argument (see patm
argument, of by subtraction of a constant (or vector) after
creating the object.
logger-class
explains the
structure of logger
objects, and also outlines other functions
dealing with them. See as.ctd
for the method of converting to
a CTD object.library(oce)
## A CTD-style logger
logger <- read.logger("cast4.rsk")
patm <- logger[["pressure"]][1]
ctd <- as.ctd(logger, pressureAtmospheric=patm)
plot(ctdTrim(ctd))
Run the code above in your browser using DataLab