Learn R Programming

oce (version 0.1.63)

sw.specific.heat: Seawater specific heat

Description

Compute specific heat of seawater.

Usage

C.P <- sw.specific.heat(S, t, p);

Arguments

S
in-situ salinity [PSU]
t
in-situ temperature [$^\circ$C]
p
in-situ pressure [dbar]

Value

  • Specific heat $J kg^{-1}\,^\circ C^{-1}$

Details

Based on matlab code on ftp://acourstics.whoi.edu/pub/Matlab/oceans, which was in turn based on Millero et al (1973, 1981).

References

Millero et. al., J. Geophys. Res. 78 (1973), 4499-4507

Millero et. al., UNESCO report 38 (1981), 99-188.

Examples

Run this code
C.P <- sw.specific.heat(40, 40, 10000)	# 3949.500

Run the code above in your browser using DataLab