pt
.read.pt(file, from=1, to, by=1, tz=getOption("oceTz"),
history, debug=getOption("oceDebug"))
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 coloceTz
, is set to UTC
at setup.TRUE
to turn on debugging.class
"pt"
, which is a
list with elements detailed below.time
,
temperature
, and pressure
data.oce
format.metadata$measurement.start
) is inferred from the Logger
time
field in the header, not from Logging end
. The datasets
available to the author suggest this is the proper scheme when the
recorders are turned off manually before the end time that was
programmed in. In other cases, the assumption may or may not be
correct. Still, the end time for subsampling
(metdata$subsample.end
) should be correct.read.oce
provides an
alternative to this. Objects of type pt
can be plotted with
plot.pt
, and summarized with summary.pt
,
both of which are generic functions. In-air samples (collected before
and after deployment) may be removed in a crude way with
ptTrim
, but the best scheme is to use
subset.oce
, based on a temporal window. Removal of the
atmospheric component of pressure is best done by the user, using
measured records of atmospheric pressure. However, if such data are
unavailable, and if the p-T data set contains pre- and post-deployment
data, ptPatm
may provide a useful estimate of
atmospheric pressure.pt <- read.pt("sl08_011855.dat", by=600)
save(pt, file="oce/data/pt.rda")
Run the code above in your browser using DataLab