- ctdfjorder.CTD.CTD.add_potential_density(self)#
Calculates and adds potential density to the 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.sigma0 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 potential density of seawater from absolute salinity and in-situ temperature using the TEOS-10 standard. Potential density is the density a parcel of seawater would have if it were adiabatically brought to the sea surface, which helps in understanding the stability and stratification of the water column.
The TEOS-10 formula for calculating potential density \(( \sigma_0 )\) is used:
\[\sigma_0 = f(S_A, T)\]where \(( S_A )\) is the absolute salinity and \(( T )\) is the in-situ temperature.
Examples
ctd_data = CTD('example.csv') ctd_data.add_potential_density() # This will add a new column with potential density values to the dataset, calculated using the # TEOS-10 formula.
See also
gsw.sigma0Function used for the calculation of potential density.
add_absolute_salinityMethod to add absolute salinity if it is not already present in the dataset.