ctdproc.calcs.calc_allsal

ctdproc.calcs.calc_allsal(c, t, p, lon, lat)[source]

Calculate absolute and practical salinity.

Wrapper for gsw functions. Converts conductivity from S/m to mS/cm if output salinity is less than 5.

Parameters:
  • c (array-like) – Conductivity. See notes on units above.

  • t (array-like) – In-situ temperature (ITS-90), degrees C

  • p (array-like) – Sea pressure, dbar

  • lon (array-like) – Longitude, -360 to 360 degrees

  • lat (array-like) – Latitude, -90 to 90 degrees

Returns:

  • SA (array-like, g/kg) – Absolute Salinity

  • SP (array-like) – Practical Salinity