sw.specific.heat {oce} | R Documentation |
Compute specific heat of seawater.
sw.specific.heat(S, t=NULL, p=NULL)
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 not be provided in the argument list). |
t |
in-situ temperature [degC] |
p |
pressure [dbar] |
If the first argument is a ctd
object, then salinity,
temperature and pressure values are extracted from it, and used for
the calculation.
Based on matlab code on ftp://acourstics.whoi.edu/pub/Matlab/oceans, which was in turn based on Millero et al (1973, 1981).
Specific heat J/(kg degC)
Dan Kelley
Millero et. al., J. Geophys. Res. 78 (1973), 4499-4507
Millero et. al., UNESCO report 38 (1981), 99-188.
C.P <- sw.specific.heat(40, 40, 10000) # 3949.500