ctdproc.proc.wsink
- ctdproc.proc.wsink(p, Ts, Fs)[source]
Compute sinking velocity from pressure record.
Computes the sinking (or rising) velocity from the pressure signal p by first differencing. The pressure signal is smoothed with a low-pass filter for differentiation. If the input signal is shorter than the smoothing time scale, w is taken as the slope of the linear regression of p.
Adapted from wsink.m - Fabian Wolk, Rockland Oceanographic Services Inc.
- Parameters:
p (array-like) – Pressure [dbar]
Ts (float) – Smoothing time scale [s]
Fs (float) – Sampling frequency [Hz]
- Returns:
w – Sinking velocity [dbar/s]
- Return type:
array-like