swAbsoluteSalinity {oce} | R Documentation |
Compute seawater absolute salinity, according to the GSW/TEOS-10 formulation.
swAbsoluteSalinity(salinity, pressure=NULL, longitude=300, latitude=30)
salinity |
either practial salinity (in which case |
pressure |
pressure in dbar. |
longitude |
longitude of observation. |
latitude |
latitude of observation. |
If the first argument is an oce
object, then values for
salinity, etc., are extracted from it, and used for the calculation, and
the corresponding arguments to the present function are ignored.
The absolute salinity is calculated using the GSW function
gsw_SA_from_SP
. Typically, this is a fraction of a unit
higher than practical salinity as defined in the UNESCO formulae.
Absolute Salinity in g/kg.
Dan Kelley
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.
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"]]
.
## Not run: sa <- swAbsoluteSalinity(35.5, 300, 260, 16) stopifnot(abs(35.671358392019094 - sa) < 00.000000000000010) ## End(Not run)