as.ctd {oce} | R Documentation |
Coerces a dataset into a ctd dataset.
as.ctd(S, t, p, ship=NA, scientist=NA, institute=NA, address=NA, cruise=NA, station=NA, date=NA, start.time=NA, latitude=NA, longitude=NA, recovery=NA, water.depth=NA, sample.interval=NA, src="")
S |
Salinity through the water column. |
t |
Temperature through the water column. |
p |
pressure through the water column. |
ship |
optional string containing the ship from which the observations were made. |
scientist |
optional string containing the chief scientist on the cruise. |
institute |
optional string containing the institute behind the work. |
address |
optional string containing the address of the institute. |
cruise |
optional string containing a cruise identifier. |
station |
optional string containing a station identifier. |
date |
optional string containing the date at which the profile was started. |
start.time |
optional string containing the start time. |
latitude |
optional numerical value containing the latitude in decimal degrees, positive in the northern hemisphere. |
longitude |
optional numerical value containing longitude in decimal degrees, positive in the eastern hemisphere. |
recovery |
optional string indicating the recovery time. |
water.depth |
optional numerical value indicating the water depth in metres. |
sample.interval |
optional numerical value indicating the time between samples in the profile. |
src |
optional string indicating data source |
A common use is to assemble (S,t,p) vectors into a ctd
object, e.g. so that plot.ctd
can be used to make a
standard four-panel plot, or so that a section can be constructed with
make.section
.
An object of class
"ctd"
(for details,
see read.ctd
).
Dan Kelley
A file containing CTD profile data may be read with
read.ctd
. A ctd
object may be summarized with
summary.ctd
. Overview plots may be made with
plot.ctd
, while plot.TS
produces TS plots
and plot.ctd.scan
produces scan plots that may help with
data editing. Extraneous data such as those collected during upcasts
and equilibration intervals may be trimmed with
ctd.trim
, and the data may be cast onto specified
pressure levels with ctd.decimate
. Low-level
manipulation may be done with ctd.add.column
and
ctd.update.header
, as well as by direct manipulation of
the items within ctd
objects.
library(oce) p <- seq(0,100,1) T <- 10 - p / 100 S <- 35 - p / 100 ctd <- as.ctd(S, T, p) summary(ctd)