ctdproc.helpers.findsegments

ctdproc.helpers.findsegments(ibad)[source]

Find contiguous segments in an array of indices.

Parameters:

ibad (np.array) – Array with indices

Returns:

  • istart (np.array) – Segment start indices

  • istop (np.array) – Segment stop indices

  • seglength (np.array) – Segment length