Learn R Programming

oce (version 0.2-1)

swSpecificHeat: Seawater specific heat

Description

Compute specific heat of seawater.

Usage

swSpecificHeat(salinity, temperature=NULL, pressure=NULL)

Arguments

salinity
either salinity [PSU] (in which case temperature and pressure must be provided) or a ctd object (in which case salinity, temperature and pressure ar
temperature
in-situ temperature [$^\circ$C]
pressure
seawater pressure [dbar]

Value

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

Details

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://acoustics.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
CP <- swSpecificHeat(40, 40, 10000)	# 3949.500

Run the code above in your browser using DataLab