swRho(salinity, temperature = NULL, pressure = NULL, longitude = 300, latitude = 30, eos = getOption("oceEOS", default = "gsw"))
temperature
and pressure
must be provided) or an oce
object, in
which case salinity
, temperature
(in the ITS-90 scale; see
next item), etc. are inferred from the object.eos="gsw"
), and is the value contained within
ctd
objects (and probably most other objects created with data
acquired in the past decade or two). Since the UNESCO-style calculation is
based on IPTS-68, the temperature is converted within the present function,
using T68fromT90
.eos="gsw"
;
see Details).eos="gsw"
; see
Details)."unesco"
[1,2] or "gsw"
[3,4].sw*
functions took temperature to be in
IPTS-68 units. As GSW capabilities were added in early 2015, the assumed
unit of temperature
was taken to be ITS-90. This change means that
old code has to be modified, by replacing e.g. swRho(S, T, p)
with
swRho(S, T90fromT68(T), p)
. At typical oceanic values, the difference
between the two scales is a few millidegrees.eos="unesco"
, the density is calculated using the UNESCO equation
of state for seawater [1,2], and if eos="gsw"
, the GSW formulation
[3,4] is used.
2. Gill, A.E., 1982. Atmosphere-ocean Dynamics, Academic Press, New York, 662 pp.
3. IOC, SCOR, and IAPSO (2010). The international thermodynamic equation of seawater-2010: Calculation and use of thermodynamic properties. Technical Report 56, Intergovernmental Oceanographic Commission, Manuals and Guide.
4. 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.
swSigma0
(and
equivalents at other pressure horizons), swSigmaT
, and
swSigmaTheta
.Other functions that calculate seawater properties: T68fromT90
,
T90fromT48
, T90fromT68
,
swAbsoluteSalinity
,
swAlphaOverBeta
, swAlpha
,
swBeta
, swCSTp
,
swConservativeTemperature
,
swDepth
, swDynamicHeight
,
swLapseRate
, swN2
,
swPressure
, swRrho
,
swSCTp
, swSTrho
,
swSigma0
, swSigma1
,
swSigma2
, swSigma3
,
swSigma4
, swSigmaTheta
,
swSigmaT
, swSigma
,
swSoundAbsorption
,
swSoundSpeed
, swSpecificHeat
,
swSpice
, swTFreeze
,
swTSrho
,
swThermalConductivity
,
swTheta
, swViscosity
,
swZ
library(oce)
rho <- swRho(35, 13, 1000)
Run the code above in your browser using DataLab