pelagos_py.steps.base_qc#
- pelagos_py.steps.base_qc.flag_cols[source]#
Map of QC flag values to colors for diagnostics plotting.
- pelagos_py.steps.base_qc.register_qc(cls)[source]#
Decorator to mark QC tests that can be accessed by the ApplyQC step.
- class pelagos_py.steps.base_qc.BaseQC(data, **kwargs)[source]#
Initializes a base class for quality control, to be further tweaked when inherited.
Follow the docstring format below when creating new QC tests.
Target Variable: “Any” or a specific variable names (see impossible_location_test.py) Flag Number: “Any” or a specific ARGO flag number Variables Flagged: “Any” or specific variable names, possibly external to the target variable (see valid_profile_test.py) Your description follows here.
Target Variable: Flag Number: Variables Flagged:
- classmethod describe_parameters()[source]#
Return a JSON-serialisable description of this QC check’s parameters.
- log(message, console=True)[source]#
Log an info-level message with the QC name prefix.
console=Falsekeeps it in the log file only.
- log_progress(iterable=None, *, desc, total=None, unit='it', leave=False)[source]#
Wrap a countable loop as a standard pipeline progress bar (see
BaseStep.log_progress()).