Learn R Programming

oce (version 1.8-1)

swSR: Seawater Reference Salinity, in GSW formulation

Description

Compute seawater Reference Salinity (SR), according to the GSW/TEOS-10 formulation with gsw::gsw_SR_from_SP() in the gsw package.

Usage

swSR(salinity)

Value

Reference Salinity, SR, in \(g/kg\).

Arguments

salinity

either practical salinity or an oce object that holds salinity in its data slot.

Author

Dan Kelley

References

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.

See Also

For some objects, SR may also be recovered by indexing as e.g. ctd[["SR"]].

Other functions that calculate seawater properties: T68fromT90(), T90fromT48(), T90fromT68(), computableWaterProperties(), locationForGsw(), swAbsoluteSalinity(), swAlphaOverBeta(), swAlpha(), swBeta(), swCSTp(), swConservativeTemperature(), swDepth(), swDynamicHeight(), swLapseRate(), swN2(), swPressure(), swRho(), swRrho(), swSCTp(), swSTrho(), swSigma0(), swSigma1(), swSigma2(), swSigma3(), swSigma4(), swSigmaTheta(), swSigmaT(), swSigma(), swSoundAbsorption(), swSoundSpeed(), swSpecificHeat(), swSpice(), swSstar(), swTFreeze(), swTSrho(), swThermalConductivity(), swTheta(), swViscosity(), swZ()

Examples

Run this code
if (FALSE) {
SR <- swAbsoluteSalinity(35.0)
stopifnot(abs(35.16504000000  - SR) < 0.000000000000010)
}

Run the code above in your browser using DataLab