ctdTrim(x, method=c("downcast","index","range"),
inferWaterDepth=TRUE, parameters, debug=getOption("oceDebug"))
ctd
object, e.g. as read by read.ctd
.selection <- ctdTrim(ctd, "range", parameters
= list(item="index", from=10,
class
"ctd"
, with data having been trimmed in some way.metadata$water.depth
ctdTrim
with method="downcast"
.
(The datasets provided with oce
were produced this way.) However, for detailed work it makes sense to do things semi-manually.
The eye is simply better at handling exceptional cases. The process
is simple: use plot.ctd.scan()
to get an idea of the scan
indices of the downacast, and then use ctdTrim
with
method="index"
. A few trials will normally identify the
downcast very well.
ctd
object may be read with read.ctd
.
plot.ctd.scan
is very useful in providing guidance
for trimming with ctdTrim
.library(oce)
data(ctdRaw)
plot(ctdRaw) # barely recognizable, due to pre- and post-cast junk
plot(ctdTrim(ctdRaw)) # looks like a real profile ...
plot(ctdDecimate(ctdTrim(ctdRaw),method="boxcar")) # ... smoothed
Run the code above in your browser using DataLab