initialize,ctd-method {oce} | R Documentation |
This function creates oce
objects of ctd-class
. 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 |
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-class
for more information
on elements stored in ctd
objects.
Other things related to ctd
data: [[,ctd-method
,
[[<-,ctd-method
, as.ctd
,
cnvName2oceName
, ctd-class
,
ctdDecimate
, ctdFindProfiles
,
ctdRaw
, ctdTrim
,
ctd
, handleFlags,ctd-method
,
initializeFlagScheme,ctd-method
,
oceNames2whpNames
,
oceUnits2whpUnits
,
plot,ctd-method
, plotProfile
,
plotScan
, plotTS
,
read.ctd.itp
, read.ctd.odf
,
read.ctd.sbe
,
read.ctd.woce.other
,
read.ctd.woce
, read.ctd
,
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")