TEOS-10 / GSW-C

C implementation of the Thermodynamic Equation Of Seawater - 2010 (TEOS-10)
Other
18 stars 17 forks source link

Bring lons outside of [0, 360) into range #47

Closed DocOtak closed 2 years ago

DocOtak commented 2 years ago

This is an attempt at solving #46 including tests.

There were 4 places that an fmod call appeared to be needed, the two saar lookup functions, and the Baltic sea specific functions.

It does not appear to be immediately needed in gsw_add_barrier as that is only called by the saar functions which already are brought into range by this PR.

efiring commented 2 years ago

https://github.com/TEOS-10/GSW-Python/pull/86 has the same fix in C, and the Python test.