data_segments#

gwpy.io.gwf.data_segments(
paths: list[str],
channel: str,
warn: bool = True,
backend: str | None = None,
) SegmentList[source]#

Returns the segments containing data for a channel.

Requires a GWF backend library.

A frame is considered to contain data if a valid FrData structure (of any type) exists for the channel in that frame. No checks are directly made against the underlying FrVect structures.

Parameters:
pathslist of str

A list of GWF file paths.

channelstr

Name of data channel to find.

warnbool, optional

If True, emit a UserWarning when a channel is not found in a frame, otherwise silently ignore.

backendstr, optional

The GWF backend to use. Default is ‘any’.

Returns:
segmentsSegmentList

the list of segments containing data