ctdproc.calcs.calc_temp

ctdproc.calcs.calc_temp(data)[source]

Add conservative and potential temperature for both sensor pairs.

Adds variables CT1, CT2 (conservative temperature, deg C) and th1, th2 (potential temperature, deg C, referenced to 0 dbar) to the dataset.

Parameters:

data (xarray.Dataset) – CTD time series with s1/s2, SA1/SA2, t1/t2, and p. Run calc_sal() first.

Returns:

Input augmented with CT1, CT2, th1, th2.

Return type:

xarray.Dataset