glidertools.processing.calc_physics

glidertools.processing.calc_physics(variable, dives, depth, spike_window=3, spike_method='minmax', iqr=1.5, depth_threshold=400, mask_frac=0.2, savitzky_golay_window=11, savitzky_golay_order=2, verbose=True, name='Physics Variable')

A standard setup for processing physics variables (temperature, salinity).

The function applies a neighbourhood interquartile range (IQR) outlier filter, the Briggs et al. (2011) spike filter followed by a Savitzky-Golay smoothing function.

The Savitzky-Golay filter is demonstrated well on wikipedia: https://en.wikipedia.org/wiki/Savitzky-Golay_filter