pelagos_py.steps.processing.bbp#

class pelagos_py.steps.processing.bbp.BBPFromBeta(name, parameters=None, diagnostics=False, context=None)[source]#

Bases: pelagos_py.steps.base_step.BaseStep, pelagos_py.utils.qc_handling.QCHandlingMixin

Converts measured beta backscatter to the particulate backscattering coefficient (BBP), using temperature and salinity for the seawater term.

See Particulate Backscattering (bbp) Processing.

Examples

- name: "BBP from Beta"
  parameters:
    apply_to: "BETA_BACKSCATTERING700"
    output_as: "BBP700"
    theta: 124
    xfactor: 1.076
  diagnostics: false
pelagos_py.steps.processing.bbp.seawater_beta(temp, psal, theta, wavelength, delta=0.039)[source]#

Volume scattering function of pure seawater (m-1 sr-1) at angle theta (degrees).

Zhang, Hu & He (2009), Optics Express 17(7), doi:10.1364/OE.17.005698; the same model as glidertools’ flo_zhang_scatter_coeffs.

pelagos_py.steps.processing.bbp.despike(var, window_size, spike_method='median')[source]#

Briggs et al. (2011) despike, as glidertools.cleaning.despike. Returns (baseline, spikes).

Gives the same result without building a (window x N) matrix (~1.6 GB on 2M samples).

class pelagos_py.steps.processing.bbp.IsolateBBPSpikes(name, parameters=None, diagnostics=False, context=None)[source]#

Bases: pelagos_py.steps.base_step.BaseStep, pelagos_py.utils.qc_handling.QCHandlingMixin

Splits a backscatter record into a smooth baseline and isolated spikes (Briggs et al. 2011), written as <var>_BASELINE and <var>_SPIKES.

See Particulate Backscattering (bbp) Processing.

Examples

- name: "Isolate BBP Spikes"
  parameters:
    apply_to: "BBP700"
    window_size: 7
    method: "median"
  diagnostics: false
classmethod output_variables(parameters)[source]#

Variables this step writes for the given config parameters (read by the config validator).