Learn R Programming

oce (version 0.1-75)

sw.rho: Seawater density

Description

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

Usage

sw.rho(S, t=NULL, p=NULL)

Arguments

S
either salinity [PSU] (in which case t and p must be provided) or a ctd object (in which case S, t and p are determined from the object, and must no
t
in-situ temperature [$^\circ$C]
p
pressure [dbar]

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)$

See Also

Related density routines include sw.sigma, sw.sigma.t, and sw.sigma.theta.

Examples

Run this code
rho <- sw.rho(35, 13, 1000) # 1030.818}

<references>Fofonoff, P. and R. C. Millard Jr, 1983. Algorithms for
 computation of fundamental properties of seawater. <em>Unesco
 Technical Papers in Marine Science</em>, <b>44</b>, 53 pp

 Gill, A.E., 1982. <em>Atmosphere-ocean Dynamics</em>, Academic Press, New
 York, 662 pp.</references>

[object Object]

<keyword>misc</keyword>

Run the code above in your browser using DataLab