ctdproc.calcs.calc_sigma

ctdproc.calcs.calc_sigma(data)[source]

Add potential density anomaly for both sensor pairs.

Adds variables sg1, sg2 (potential density anomaly, kg/m^3, referenced to 0 dbar) to the dataset.

Parameters:

data (xarray.Dataset) – CTD time series with SA1/SA2 and CT1/CT2. Run calc_sal() and calc_temp() first.

Returns:

Input augmented with sg1, sg2.

Return type:

xarray.Dataset