- ctdfjorder.CTD.CTD.add_absolute_salinity(self) None#
Calculates and adds absolute salinity to the CTD data using the TEOS-10 salinity conversion formula.
- Raises:
NoSamplesError – When the function is called on a CTD object with no data.
Notes
The gsw.SA_from_SP 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.
This method computes the absolute salinity from practical salinity for each profile in the dataset using the TEOS-10 standard. Absolute salinity provides a more accurate representation of salinity by accounting for the variations in seawater composition.
The TEOS-10 formula for converting practical salinity \(( S_P )\) to absolute salinity \(( S_A )\) is used:
\[S_A = f(S_P, p, \phi, \lambda)\]where \(( p )\) is the sea pressure, \(( \phi )\) is the latitude, and \(( \lambda )\) is the longitude.
Examples
ctd_data = CTD('example.csv') ctd_data.add_absolute_salinity() # This will add a new column with absolute salinity values to the dataset, calculated using the # TEOS-10 formula.
See also
gsw.conversions.SA_from_SPFunction used for the conversion from practical salinity to absolute salinity.