TEOS-10 / GSW-C

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

add SP_salinometer function #30

Closed DocOtak closed 5 years ago

DocOtak commented 6 years ago

I've ported the SP_salinometer method from the matlab gsw toolbox. Doc strings in place, tests added and passing. I'd like to point out that the test data doesn't hit the case where SP < 2. This will also return NaN if the input conductivity ratio is less than 0, this matches the behavior of the matlab version.

Note that I'm at sea on the Revelle until the first week of December, this PR can sit around till then if need be.

DocOtak commented 5 years ago

@efiring I'm back from sea now. Does this PR need anything else before merging?