Learn R Programming

oce (version 0.9-3)

swConservativeTemperature: Seawater conservative temperature, as defined in TEOS-10.

Description

Compute seawater conservative temperature, according to TEOS-10.

Usage

swConservativeTemperature(salinity, temperature, pressure)

Arguments

salinity
either salinity (in which case temperature and pressure must be provided) or a ctd object (in which case salinity, etc. are determined from the object, and must not be
temperature
in-situ temperature [$^\circ$C]
pressure
pressure [dbar]

Value

  • Conservative temperature in degrees Celcius.

Details

If the first argument is a ctd 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.

References

[1] McDougall, T.J. and P.M. Barker, 2011: Getting started with TEOS-10 and the Gibbs Seawater (GSW) Oceanographic Toolbox, 28pp., SCOR/IAPSO WG127, ISBN 978-0-646-55621-5.

[2] The TEOS-10 library is provided at www.teos-10.org. [3] A programming interface to the matlab version of the TEOS library is provided at http://www.teos-10.org/pubs/gsw/html/gsw_contents.html.

See Also

The related TEOS-10 quantity ``absolute salinity'' may be computed with swAbsoluteSalinity. For a ctd object, conservative temperature may also be recovered by indexing as e.g. ctd[["conservativeTemperature"]] or ctd[["CT"]].

Examples

Run this code
ct <- swConservativeTemperature(35.7, 15, 300)
stopifnot(abs(14.930280459895560 - ct) < 00.000000000000010)

Run the code above in your browser using DataLab