pub fn specvol(sa: f64, ct: f64, p: f64) -> Result<f64>
Expand description
Specific volume of sea water (75-term polynomial approximation)
Calculates specific volume from Absolute Salinity, Conservative Temperature and pressure, using the computationally-efficient polynomial expression for specific volume (Roquet et al., 2014).
Arguments
sa
: Absolute Salinity [ g kg-1 ]ct
: Conservative Temperature (ITS-90) [ deg C ]p
: sea pressure [ dbar ] (i.e. absolute pressure - 10.1325 dbar)
Returns
specvol
: specific volume [m3 kg-1]
Example:
use gsw::volume::specvol;
let v = specvol(32.0, 10.0, 100.0).unwrap();
assert!((v - 0.0009756515980668401).abs() <= f64::EPSILON);
Note that the coefficients v(i,j,k) follow the convention in the original paper, which is different from the convention used in the C-library.