cm
.read.cm(file, from=1, to, by=1, tz=getOption("oceTz"),
type=c("s4"),
longitude=NA, latitude=NA,
debug=getOption("oceDebug"), monitor=FALSE, processingLog, ...)
as.POSIXct
(hint: use
tz="UTC"
).from
.by-1
measurements are skipped
between each pair of profiles that is read. This may not make much sense, if
the data are not equiclass
"cm"
, which contains
measurements made with a current-meter device. The data
slot will
contain time
, u
(eastward velocity, converted from cm/s to m/s),
v
(northward velocity, converted from cm/s to m/s) salinity
(salinity, with the caution that the values in the sample file seem about 6PSU
higher than they should be), temperature
(temperature, assumed
in-situ), and pressure
(pressure, calculated with
swPressure
based on the "Depth"
column in the file). Caution.
The value in the "Hdg"
file is stored as heading
in the data, but this is just a guess.
See
"Cond"
, which was guessed
to stand for conductivity. Since only the first contained data, the second was
ignored, but this may not be the case for all files."Cond"
was stated in the file to be"mS"
,
which makes no sense, so the unit was assumed to be mS/cm, and the value was
divided by the standard value 42.914mS/cm (see Culkin and Smith, 1980),
to estimate the conductivity ratio."T-Temp"
, which is not
something the author has seen in his career. It was assumed to stand for
in-situ temperature."Depth"
, which is not something
an instrument can measure. Presumably it was calculated from pressure (with
what atmospheric offset, though?) and so pressure was inferred from it usingswPressure
."Speed"
,"Dir"
,"N-S Dist"
,
etc. These are ignored."Hx"
,"Hy"
,"Vref"
, etc. These were ignored. Based on such considerations, read.cm.s4()
reads only the columns that
were reasonably well-understood based on the sample file. Users who need more
columns should contact the author.
cm-class
explains the structure of
cm
objects, and also outlines the other functions dealing with them.library(oce)
cm <- read.oce("cm_interocean_0811786.s4a.tab")
summary(cm)
plot(cm)
Run the code above in your browser using DataLab