Goby3  3.1.5a
2024.05.23
salinity.h File Reference
#include <cmath>
#include <boost/units/quantity.hpp>
#include <boost/units/systems/si.hpp>
#include <boost/units/systems/si/prefixes.hpp>
#include <boost/units/systems/temperature/celsius.hpp>
#include "goby/util/seawater/detail/salinity_impl.h"
#include "units.h"

Go to the source code of this file.

Namespaces

 goby
 The global namespace for the Goby project.
 
 goby::util
 
 goby::util::seawater
 

Functions

template<typename ConductivityUnit = decltype(milli_siemens_per_cm), typename TemperatureUnit = boost::units::celsius::temperature, typename PressureUnit = decltype(boost::units::si::deci* bar)>
boost::units::quantity< boost::units::si::dimensionless > goby::util::seawater::salinity (boost::units::quantity< ConductivityUnit > conductivity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)
 Calculates salinity from conductivity, temperature, and pressure Adapted from "Algorithms for computation of fundamental properties of seawater; UNESCO technical papers in marine science; Vol.:44; 1983" https://unesdoc.unesco.org/ark:/48223/pf0000059832. More...
 
template<typename TemperatureUnit = boost::units::celsius::temperature, typename DimensionlessUnit = boost::units::si::dimensionless, typename PressureUnit = decltype(boost::units::si::deci* bar)>
boost::units::quantity< decltype(milli_siemens_per_cm)> goby::util::seawater::conductivity (boost::units::quantity< DimensionlessUnit > salinity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)
 Calculates conductivity from salinity, temperature, and pressure Adapted from "Algorithms for computation of fundamental properties of seawater; UNESCO technical papers in marine science; Vol.:44; 1983" https://unesdoc.unesco.org/ark:/48223/pf0000059832. More...
 
template<typename TemperatureUnit = boost::units::celsius::temperature, typename PressureUnit = decltype(boost::units::si::deci* bar)>
boost::units::quantity< decltype(milli_siemens_per_cm)> goby::util::seawater::conductivity (double salinity, boost::units::quantity< boost::units::absolute< TemperatureUnit > > temperature, boost::units::quantity< PressureUnit > pressure)
 Calculates conductivity from salinity, temperature, and pressure (variant that accepts plain double for salinity) Adapted from "Algorithms for computation of fundamental properties of seawater; UNESCO technical papers in marine science; Vol.:44; 1983" https://unesdoc.unesco.org/ark:/48223/pf0000059832. More...
 

Variables

static const boost::units::quantity< decltype(milli_siemens_per_cm)> goby::util::seawater::conductivity_at_standard