Goby3  3.1.4
2024.02.22
depth.h File Reference
#include <cmath>
#include <boost/units/quantity.hpp>
#include <boost/units/systems/angle/degrees.hpp>
#include <boost/units/systems/si.hpp>
#include <boost/units/systems/si/prefixes.hpp>
#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 PressureUnit = decltype(boost::units::si::deci* bar), typename LatitudeUnit = boost::units::degree::plane_angle>
boost::units::quantity< boost::units::si::length > goby::util::seawater::depth (boost::units::quantity< PressureUnit > pressure, boost::units::quantity< LatitudeUnit > latitude)
 Calculates depth from pressure and latitude 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...