- ctdfjorder.CTD.CTD.add_density(self)#
Calculates and adds density to CTD data using the TEOS-10 formula. If absolute salinity is not present, it is calculated first.
- Raises:
NoSamplesError – When the function is called on a CTD object with no data.
Notes
The gsw.rho_t_exact 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 density of seawater from absolute salinity, in-situ temperature, and sea pressure using the TEOS-10 standard. The density is a critical parameter for understanding the physical properties of seawater and its buoyancy characteristics.
The TEOS-10 formula for calculating density \(( \rho )\) is used:
\[\rho = f(S_A, T, p)\]where \(( S_A )\) is the absolute salinity, \(( T )\) is the in-situ temperature, and \(( p )\) is the sea pressure.
Examples
ctd_data = CTD('example.csv') ctd_data.add_density() # This will add a new column with density values to the dataset, calculated using the # TEOS-10 formula.
See also
gsw.density.rho_t_exactFunction used for the calculation of density.
add_absolute_salinityMethod to add absolute salinity if it is not already present in the dataset.