- ctdfjorder.CTD.CTD.add_profile_classification(self, stratification_threshold=0.5)#
Classifies each profile based on salinity and depth into one of three categories.
- Parameters:
stratification_threshold (float, default 0.5) – The threshold for determining if a profile is stratified/type C.
- Raises:
NoSamplesError – When the function is called on a CTD object with no data.
Notes
This method adds a new column to the dataset with the following classification: A - Very shallow low salinity surface ML B - Normal well-mixed MLD C - Stratified MLD from surface to bottom of ML
The classification criteria are: - A: if salinity_at_mld - surface_salinity > 0.5 meters - C: if max(salinity) - min(salinity) < 0.5 PSU - B: otherwise
Examples
ctd_data = CTD('example.csv') ctd_data.add_profile_classification() # This will add a new column with profile classifications to the dataset.