pelagos_py.steps.quality_control.impossible_speed_qc#

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

Bases: pelagos_py.steps.base_qc.BaseQC

Target Variable: TIME, LATITUDE, LONGITUDE Flag Number: 4 (bad data) Variables Flagged: TIME, LATITUDE, LONGITUDE Checks that the horizontal speed between GPS fixes stays below threshold (m/s).

Each fix is compared with the last good fix at least min_interval seconds earlier, so GPS jitter between close fixes does not trip the test and one bad fix does not get the next one flagged too.

Example:

impossible speed qc:
  threshold: 3       # m/s
  min_interval: 60   # s
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).