ctdproc.helpers.preen

ctdproc.helpers.preen(x, xmin, xmax)[source]

Eliminate values outside given range and interpolate.

Parameters:
  • x (np.array) – Input array

  • xmin (float) – Lower limit

  • xmax (float) – Upper limit

Returns:

xp – Cleaned array

Return type:

np.array