def table_to_gwf(table, filename, name, **kwargs):
from LDAStools.frameCPP import (FrEvent, GPSTime)<EOL>write_kw = {key: kwargs.pop(key) for<EOL>key in ('<STR_LIT>', '<STR_LIT>') if key in kwargs}<EOL>frame = io_gwf.create_frame(name=name, **kwargs)<EOL>names = table.dtype.names<EOL>for row in table:<EOL><INDENT>rowd = dict((n, row[n]) for n in names)<EOL>gps = LIGOTimeGPS(rowd.pop('<STR_LIT:time>', <NUM_LIT:0>))<EOL>frame.AppendFrEvent(FrEvent(<EOL>str(name),<EOL>str(rowd.pop('<STR_LIT>', '<STR_LIT>')),<EOL>str(rowd.pop('<STR_LIT>', '<STR_LIT>')),<EOL>GPSTime(gps.gpsSeconds, gps.gpsNanoSeconds),<EOL>float(rowd.pop('<STR_LIT>', <NUM_LIT:0>)),<EOL>float(rowd.pop('<STR_LIT>', <NUM_LIT:0>)),<EOL>int(rowd.pop('<STR_LIT>', <NUM_LIT:0>)),<EOL>float(rowd.pop('<STR_LIT>', <NUM_LIT:0>)),<EOL>float(rowd.pop('<STR_LIT>', -<NUM_LIT:1>)),<EOL>str(rowd.pop('<STR_LIT>', '<STR_LIT>')),<EOL>list(rowd.items()),  <EOL>))<EOL><DEDENT>io_gwf.write_frames(filename, [frame], **write_kw)<EOL>
Create a new `~frameCPP.FrameH` and fill it with data

    Parameters
    ----------
    table : `~astropy.table.Table`
        the data to write

    filename : `str`
        the name of the file to write into

    **kwargs
        other keyword arguments (see below for references)

    See Also
    --------
    gwpy.io.gwf.create_frame
    gwpy.io.gwf.write_frames
        for documentation of keyword arguments