sw.specific.heat {oce} | R Documentation |
Compute specific heat of seawater.
C.P <- sw.specific.heat(ctd) C.P <- sw.specific.heat(S, t=NULL, p=NULL)
ctd |
an object of class "ctd ". |
S |
salinity [PSU] |
t |
in-situ temperature [degC] |
p |
pressure [dbar] |
In the first form, the argument is a ctd
object, from which the
salinity, temperature and pressure values are extracted and used to
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