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

Calculates and adds sound speed to the CTD data using the TEOS-10 formula.

This method computes the speed of sound in seawater, which is influenced by factors such as salinity, temperature, and pressure. The sound speed is a critical parameter for various oceanographic studies, particularly in understanding acoustic propagation.

Raises:

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

Notes

The gsw.sound_speed 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.

The speed of sound, \(c\), in seawater is calculated using the TEOS-10 equation:

\[c = f(S_A, T, p)\]

where: - \(S_A\) is the absolute salinity, - \(T\) is the in-situ temperature, - \(p\) is the sea pressure.

This method adds a new column for sound speed to the dataset.

Examples

ctd_data = CTD('example.csv')
ctd_data.add_speed_of_sound()
# This will add a new column with sound speed values to the dataset, calculated using the TEOS-10 formula.