channel_exists#

gwpy.io.gwf.channel_exists(
gwf: str | Path | IO,
channel: str | Channel,
backend: str | None = None,
) bool[source]#

Determine whether a channel exists in a GWF file.

Requires a GWF backend library.

Parameters:
channelstr

Name of data channel to find.

gwfstr

GWF file to read.

backendstr, optional

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

Returns:
inframebool

whether this channel is included in the table of contents for the given GWF file.