Contents:
findsegments()
Find contiguous segments in an array of indices.
ibad (np.array) – Array with indices
istart (np.array) – Segment start indices
istop (np.array) – Segment stop indices
seglength (np.array) – Segment length