This is a Python re-write of the CSIRO seawater toolbox (SEAWATER-3.3) for calculating the properties of sea water. The package uses the formulas from Unesco’s joint panel on oceanographic tables and standards, UNESCO 1981 and UNESCO 1983 (EOS-80).
The EOS-80 library is considered now obsolete; it is provided here for compatibility with old scripts, and to allow a smooth transition to the new TEOS-10.
The default output unit for sw.dist in the Python version is ‘km’ instead of ‘nm’ as in the MatlabTM version.
Also, we assume pressure as the first dimension, i.e. M pressure by N positions (See the table below). The MatlabTM version performs a series of guessing at that we simply ignored to avoid confusions.
Check out the test_octave.py script to test the Python library against an available MatlabTM library (all inside Python via the oct2py package). The current version was tested against seawater v3.3.
>>> python test_octave.py ./path_to_sewater_toolbox