ctdproc.calcs.swcalcs

ctdproc.calcs.swcalcs(data)[source]

Calculate SA, s, CT, theta, sigma, oxygen, depth, z

Using gsw package. Variable names for practical salinity and potential temperature are kept consistent with the Matlab processing package.

Salinity is calculated both as absolute salinity (SA) and practical salinity (s). Note: Per TEOS-10 instructions, the variable to be archived is practical salinity.

Temperature is converted to conservative temperature (CT) and potential temperature (th). Potential temperature is referenced to 0 dbar.

Potential density anomaly is referenced to 0 dbar pressure. The anomaly is calculated as potential density minus 1000 kg/m^3.

Parameters:

data (array-like) – CTD time series data structure.

Returns:

data – CTD time series data structure.

Return type:

array-like