ctdproc.calcs.calc_sal

ctdproc.calcs.calc_sal(data)[source]

Add absolute and practical salinity for both sensor pairs.

Adds variables SA1, SA2 (absolute salinity, g/kg) and s1, s2 (practical salinity) to the dataset, computed from conductivity, temperature, pressure, and the cast position via calc_allsal().

Parameters:

data (xarray.Dataset) – CTD time series with c1, c2, t1, t2, p, lon, lat.

Returns:

Input augmented with SA1, SA2, s1, s2.

Return type:

xarray.Dataset