ctdfjorder.CTD.CTD.add_mean_surface_density(self, start=10.1325, end=12.1325) None#

Calculates the mean surface density from the density values and adds it as a new column to the CTD data table. Requires absolute salinity and absolute density to be calculated first.

Raises:

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

Parameters:
  • start (float, default 10.1325) – Upper bound of surface pressure.

  • end (float, default 12.1325) – Lower bound of surface pressure.

Notes

Mean surface density is computed as the mean of density values within the specified pressure range (start to end).

Examples

ctd_data = CTD('example.csv')
ctd_data.add_mean_surface_density(start=10.1325, end=12.1325)
# This will add a new column with mean surface density values to the dataset, calculated using the
# specified pressure range.

See also

add_absolute_salinity

Method to add absolute salinity if it is not already present in the dataset.

add_density

Method to add density if it is not already present in the dataset.