- ctdfjorder.CTD.CTD.add_conservative_temperature(self) None#
Calculates and adds conservative temperature to the CTD data using the TEOS-10 formula.
This method computes the conservative temperature, which is a more accurate measure of heat content in seawater compared to potential temperature.
- Raises:
NoSamplesError – When the function is called on a CTD object with no data.
Notes
The gsw.CT_from_t 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 adds a new column for conservative temperature in the dataset.
Examples
ctd_data = CTD('example.csv') ctd_data.add_conservative_temperature() # This will add a new column with conservative temperature values to the dataset, calculated using the TEOS-10 formula.