pelagos_py.steps.processing.oxygen#
- pelagos_py.steps.processing.oxygen.check_config(self, expected_params)[source]#
Runtime checks beyond the parameter schema.
Parameter presence and defaults are handled by
parameter_schema; this additionally (a) catches method-dependent parameters left unset (None) and (b) verifies that any*_nameparameter points at a variable that actually exists in the dataset.
- class pelagos_py.steps.processing.oxygen.DeriveUncalibratedPhase(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- class pelagos_py.steps.processing.oxygen.DeriveOptodeTemperature(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- class pelagos_py.steps.processing.oxygen.PhasePressureCorrection(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- class pelagos_py.steps.processing.oxygen.ShiftOxygenToCTD(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- run()[source]#
- name: "Shift Oxygen To CTD" parameters: # <MANDATORY> shift_vars: ["UNCAL_PHASE_DOXY", "TEMP_DOXY"] # <OPTIONAL> lag_seconds: null pitch_name: "GLIDER_PITCH" distance_cm: 90 cast_id_var: "PROFILE_DIRECTION" diagnostics: false
Geometrically time-shifts optode measurements (e.g. phase, optode temperature) onto the CTD’s dense sampling grid, correcting for the water travel time between the two sensors’ positions on the glider (Woo & Gourcuff, 2023). This is the reverse of the more common approach of cloning CTD data onto the sparse optode grid: it produces one shifted oxygen value per
N_MEASUREMENTSrow, named<variable>_SHIFTED.If
lag_secondsis not set, the lag is instead derived per profile from mean pitch and dive rate. Ifpitch_namecannot be found (or is empty), a warning is logged and the step fails, since no lag is then available; setlag_secondsfor a constant lag instead.
- class pelagos_py.steps.processing.oxygen.DeriveCalibratedPhase(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- class pelagos_py.steps.processing.oxygen.DeriveOxygenConcentration(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- run()[source]#
- name: "Derive Oxygen Concentration" parameters: # <MANDATORY> method: "SVU" # <METHOD DEPENDENT> # The following params are for "SVU" method temperature_name: "TEMP_DOXY" svu_coefficients: [c0, c1, c2, c3, c4, c5, c6] # manufacturer SVUFoilCoef0-6 diagnostics: false
method: "poly"instead expectscalib_coefficient_matrix(shape (5, 4));method: "SVU"expectssvu_coefficients, the 7 manufacturer SVUFoilCoef values (Stern-Volmer-Uchida equation).
- class pelagos_py.steps.processing.oxygen.MolarDOXYSalinityCorrection(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.
- class pelagos_py.steps.processing.oxygen.MolarDOXYPressureCorrection(name, parameters=None, diagnostics=False, context=None)[source]#
Bases:
pelagos_py.steps.base_step.BaseStep,pelagos_py.utils.qc_handling.QCHandlingMixinBase class for pipeline steps with config-mirroring support. Every concrete subclass (registered via @register_step) inherits this.