Learn R Programming

oce (version 0.2-1)

swSTrho: Seawater salinity from temperature and density

Description

Compute in-situ salinity, given temperature, density, and pressure.

Usage

swSTrho(temperature, density, pressure)

Arguments

temperature
in-situ temperature [$^\circ$C]
density
in-situ density or sigma value [$kg/m^3$]
pressure
in-situ pressure [dbar]

Value

  • In-situ salinity [PSU].

Details

Finds the salinity that yields the given density, with the given temperature and pressure. The method is a bisection search with a salinity tolerance of 0.001. The isopycnal lines on temperature-salinity diagrams (plot.TS) are computed with this function.

References

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

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

See Also

swTSrho

Examples

Run this code
S <- swSTrho(10, 22, 0) # 28.651

Run the code above in your browser using DataLab