initialize,ctd-method | R Documentation |
This function creates ctd objects. It is mainly
used by oce
functions such as read.ctd()
and as.ctd()
,
and it is not intended for novice users, so it may change at any time, without
following the usual rules for transitioning to deprecated and defunct status
(see oce-deprecated).
## S4 method for signature 'ctd'
initialize(
.Object,
pressure,
salinity,
temperature,
conductivity,
units,
pressureType,
deploymentType,
...
)
.Object |
the string |
pressure |
optional numerical vector of pressures. |
salinity |
optional numerical vector of salinities. |
temperature |
optional numerical vector of temperatures. |
conductivity |
optional numerical vector of conductivities. |
units |
optional list indicating units for the quantities specified
in the previous arguments. If this
is not supplied, a default is set up, based on which of the
|
pressureType |
optional character string indicating the type of pressure;
if not supplied, this defaults to |
deploymentType |
optional character string indicating the type of deployment, which may
be |
... |
Ignored. |
To save storage, this function has arguments only for quantities that are often present in data
files all cases. For example, not
all data files will have oxygen, so that's not present here.
Extra data may be added after the object is created, using
oceSetData()
.
Similarly, oceSetMetadata()
may be used to add metadata (station ID, etc),
while bearing in mind that other functions look for such information
in very particular places (e.g. the station ID is a string named station
within the metadata
slot). See ctd for more information
on elements stored in ctd
objects.
Other things related to ctd data:
CTD_BCD2014666_008_1_DN.ODF.gz
,
[[,ctd-method
,
[[<-,ctd-method
,
as.ctd()
,
cnvName2oceName()
,
ctd
,
ctd-class
,
ctd.cnv.gz
,
ctdDecimate()
,
ctdFindProfiles()
,
ctdFindProfilesRBR()
,
ctdRaw
,
ctdRepair()
,
ctdTrim()
,
ctd_aml.csv.gz
,
d200321-001.ctd.gz
,
d201211_0011.cnv.gz
,
handleFlags,ctd-method
,
initializeFlagScheme,ctd-method
,
oceNames2whpNames()
,
oceUnits2whpUnits()
,
plot,ctd-method
,
plotProfile()
,
plotScan()
,
plotTS()
,
read.ctd()
,
read.ctd.aml()
,
read.ctd.itp()
,
read.ctd.odf()
,
read.ctd.odv()
,
read.ctd.saiv()
,
read.ctd.sbe()
,
read.ctd.ssda()
,
read.ctd.woce()
,
read.ctd.woce.other()
,
setFlags,ctd-method
,
subset,ctd-method
,
summary,ctd-method
,
woceNames2oceNames()
,
woceUnit2oceUnit()
,
write.ctd()
# 1. empty
new("ctd")
# 2. fake data with no location information, so can only
# plot with the UNESCO equation of state.
# NOTE: always name arguments, in case the default order gets changed
ctd <- new("ctd", salinity = 35 + 1:3 / 10, temperature = 10 - 1:3 / 10, pressure = 1:3)
summary(ctd)
plot(ctd, eos = "unesco")
# 3. as 2, but insert location and plot with GSW equation of state.
ctd <- oceSetMetadata(ctd, "latitude", 44)
ctd <- oceSetMetadata(ctd, "longitude", -63)
plot(ctd, eos = "gsw")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.