diff options
author | Robert C. Helling <helling@atdotde.de> | 2020-09-02 20:14:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-06 12:50:59 -0700 |
commit | b1a1dc36398530fa83038c9f71f480b9b955af22 (patch) | |
tree | 9108488c6c48e74767457e7a607371fce57d238f /core/statistics.h | |
parent | d404aa767feb24b19da50ba833723b3dd0cfb271 (diff) | |
download | subsurface-b1a1dc36398530fa83038c9f71f480b9b955af22.tar.gz |
Function for "gravity conversion"
This adds a common macro to convert salinity (which is
given as a density in terms of g per 10l) to a specific
weight with units of mbar / mm = bar / m that is used
to translate between pressures and depths.
The weired factor of 10 (from the unusual unit of salinity)
is included in the macro. It is there for historical reasons,
as it goes back to 05b55542c8 from 2012 where it was introduced
in code for downloading from Uemis dive computers.
Now, salinity appears in too many places to easily remove
this unconventional factor of 10 everywhere without breaking
to many things (including various dive computer downloads).
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/statistics.h')
0 files changed, 0 insertions, 0 deletions