Last chance! 50% off unlimited learning
Sale ends in
swConservativeTemperature(salinity, temperature, pressure)
temperature
and
pressure
must be provided) or a ctd
object (in
which case salinity
, etc. are determined from the object, and
must not bectd
object, then values of salinity,
etc, are extracted from it, and used for the calculation. The conservative temperature is calculated using the TEOS-10 function
gsw_ct_from_t
.
[2] The TEOS-10 library is provided at
swAbsoluteSalinity
. For a ctd object, conservative
temperature may also be recovered by indexing as e.g.
ctd[["conservativeTemperature"]]
or ctd[["CT"]]
.ct <- swConservativeTemperature(35.7, 15, 300)
stopifnot(abs(14.930280459895560 - ct) < 00.000000000000010)
Run the code above in your browser using DataLab