ctdfjorder.CTD.CTD.add_practical_salinity(self) None#

Calculates and adds practical salinity to the CTD data using the TEOS-10 SP_from_C function.

This method computes the practical salinity from conductivity, temperature, and pressure using the TEOS-10 standard. If conductivity is not present in mS/cm, it attempts to convert from μS/cm.

Raises:

NoSamplesError – When the function is called on a CTD object with no data.

Notes

The gsw.SP_from_C function from the Gibbs SeaWater (GSW) Oceanographic Toolbox is utilized for this calculation. More information about this function can be found at the TEOS-10 website: https://www.teos-10.org/pubs/gsw/html/gsw_SP_from_C.html

This method adds a new column for practical salinity in the dataset.

Examples

>>> ctd_data = CTD('example.csv')
>>> ctd_data.add_practical_salinity()
# This will add a new column with practical salinity values to the dataset.