GWF file I/O (gwpy.io.gwf)#

I/O utilities for GWF files.

Most of the actual GWF file I/O is delegated to one of the ‘backend’ implementations that rely on a third-party library.

Functions#

channel_exists(gwf, channel[, backend])

Determine whether a channel exists in a GWF file.

data_segments(paths, channel[, warn, backend])

Returns the segments containing data for a channel.

get_backend([package, backends])

Return the preferred GWF backend.

get_backend_function(name[, backend, ...])

Return the backend implementation of the function of the given name.

get_channel_names(gwf[, type, backend])

Return a list of all channel names found in a GWF file.

get_channel_type(channel, gwf[, backend])

Find the channel type in a given GWF file.

identify_gwf(origin, filepath, fileobj, ...)

Identify a filename or file object as GWF.

import_backend(library[, package])

Utility method to import the relevant GWF I/O backend.

iter_channel_names(gwf[, type, backend])

Iterate over the names of channels found in a GWF file.

num_channels(gwf[, type, backend])

Find the total number of channels in this GWF file.

Variables#

BACKENDS

Preferentially ordered list of supported GWF backends.