rbrtdr.trim {oce} | R Documentation |
Trim start/end portions of a RBRTDR cast.
rbrtdr.trim(x, method="water",parameters=NULL, verbose=FALSE)
x |
A rbrtdr object, e.g. as read by read.rbrtdr . |
method |
Various methods exist, some of which use parameters:
selection <- rbrtdr.trim(rbrtdr, "time", ...
selects .... |
parameters |
Depends on method; see above. |
verbose |
If set to TRUE, some debugging information is provided. |
The "water"
method is mainly for quick and dirty work.
In many cases, the user will be working with several files, and so it
will make sense to use the "time"
method, to synchronize the
time series. Normally, notes will have been taken in the field, so no
guessing need be done about the time the instruments went in the
water. In some cases, though, the time will have to be inferred from
the data, and so it might make sense to start by trimming with the
"water"
method, after which summary.rbrtdr
is
used to find the probably time when the instrument was put into the
water.
An object of class
"rbrtdr"
, with data having been trimmed in some way.
Dan Kelley
(fill in later)
The rbrtdr
object may be read with read.rbrtdr
.
plot.rbrtdr
is very useful in providing guidance
for trimming with rbrtdr.trim
.
## Not run: library(oce) d <- read.rbrtdr("011855_1a.dat") plot(d) # contains initial/final junk dt <- rbrtdr.trim(d, "time", c("2008-10-06 11:00:00","2008-10-09 10:00:00")) plot(dt) # junk removed ## End(Not run)