pelagos_py.steps.quality_control.valid_profile_qc#

class pelagos_py.steps.quality_control.valid_profile_qc.valid_profile_qc(data, **kwargs)[source]#

Bases: pelagos_py.steps.base_qc.BaseQC

Flag whole profiles that are too short or never reach a target depth range.

Target variable: PROFILE_NUMBER
Variables flagged: PROFILE_NUMBER
Flags applied: flag (default 4, bad)

Every row of a profile (rows sharing a PROFILE_NUMBER from Find Profiles) gets flag when the profile has fewer than min_length rows or, if depth_range is set, no depth_var sample inside it. Passing profiles are flagged 1; rows without a profile are left unchecked (0), so their existing flag is kept.

Examples

- name: "Apply QC"
  parameters:
    qc_settings:
      valid profile qc:
        min_length: 50          # rows per profile
        depth_range: [0, 1000]  # PRES window the profile must reach into
        flag: 4
  diagnostics: true
return_qc()[source]#

Representative of QC processing, to be overridden by subclasses.

Returns:

flags – Output QC flags for the data specific to the test.

Return type:

array-like

plot_diagnostics()[source]#

Representative of diagnostic plotting (optional).