pub fn sp_from_c(cndc: f64, t90: f64, p: f64) -> Result<f64>
Expand description

Practical Salinity from conductivity

Arguments

  • cndc: conductivity [ mS/cm ]
  • t90: in-situ temperature (ITS-90) [ deg C ]
  • p: sea pressure [ dbar ] (i.e. absolute pressure - 10.1325 dbar)

Example:

use gsw::practical_salinity::sp_from_c;
let sp = sp_from_c(38.0, 10.0, 100.0).unwrap();
assert_eq!(sp, 34.8618423333713);

Notes:

  • Return Ok(NaN) or an Error? Maybe a new error ivalid range?