Learn R Programming

oce (version 0.9-14)

swRho: Seawater density

Description

Compute, $\rho$, the in-situ density of seawater.

Usage

swRho(salinity, temperature=NULL, pressure=NULL, eos=c("unesco", "teos"),
      longitude, latitude)

Arguments

salinity
either salinity (in which case temperature and pressure must be provided) or a ctd object (in which case salinity, temperature and pressure are dete
temperature
in-situ temperature [$^\circ$C]
pressure
pressure [dbar]
eos
equation of state to use, either unesco for the UNESCO formulation [1,2], or teos for the TEOS-10 formulation [3].
longitude
longitude of observation (only used if eos="teos").
latitude
latitude of observation (only used if eos="teos").

Value

  • In-situ density [kg/m$^3$].

Details

If the first argument is a ctd object, then salinity, temperature and pressure values are extracted from it, and used for the calculation.

The density is calculated using the UNESCO equation of state for seawater, assuming that input variables are defined according to modern calibrations. In conventional Oceanographic notation, the calculated quantity is $\rho(S,t,p)$

References

[1] Fofonoff, P. and R. C. Millard Jr, 1983. Algorithms for computation of fundamental properties of seawater. Unesco Technical Papers in Marine Science, 44, 53 pp

[2] Gill, A.E., 1982. Atmosphere-ocean Dynamics, Academic Press, New York, 662 pp.

[3] 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

Related density routines include swSigma, swSigmaT, and swSigmaTheta.

Examples

Run this code
library(oce)
rho <- swRho(35, 13, 1000)

Run the code above in your browser using DataLab