swAbsoluteSalinity: Seawater absolute salinity, in GSW formulation

View source: R/sw.R

swAbsoluteSalinityR Documentation

Seawater absolute salinity, in GSW formulation

Description

Compute the seawater Absolute Salinity, according to the GSW/TEOS-10 formulation with gsw::gsw_SA_from_SP() in the gsw package. Typically, this is a fraction of a unit higher than practical salinity as defined in the UNESCO formulae.

Usage

swAbsoluteSalinity(
  salinity,
  pressure = NULL,
  longitude = NULL,
  latitude = NULL
)

Arguments

salinity

either practical salinity (in which case temperature and pressure must be provided) or an oce object (in which case salinity, etc. are inferred from the object).

pressure

pressure in dbar.

longitude

longitude of observation.

latitude

latitude of observation.

Value

Absolute Salinity in g/kg.

Author(s)

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

The related TEOS-10 quantity “conservative temperature” may be computed with swConservativeTemperature(). For a ctd object, absolute salinity may also be recovered by indexing as e.g. ctd[["absoluteSalinity"]] or ctd[["SA"]].

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

Examples

## Not run: 
sa <- swAbsoluteSalinity(35.5, 300, 260, 16)
stopifnot(abs(35.671358392019094 - sa) < 00.000000000000010)

## End(Not run)


oce documentation built on July 9, 2023, 5:18 p.m.