Help on function write_lc in module sncosmo.io:
write_lc(data, fname, format='ascii', **kwargs)
Write light curve data.
Parameters
----------
data : `~astropy.table.Table`
Light curve data.
fname : str
Filename.
format : {'ascii', 'salt2', 'snana', 'json'}, optional
Format of file. Default is 'ascii'. 'salt2' is the new format available
in snfit version >= 2.3.0.
delim : str, optional
**[ascii only]** Character used to separate entries on a line.
Default is ' '.
metachar : str, optional
**[ascii only]** Metadata designator. Default is '@'.
raw : bool, optional
**[salt2, snana]** By default, the SALT2 and SNANA writers rename
some metadata keys and column names in order to comply with what
snfit and SNANA expect. Set to True to override this.
Default is False.
pedantic : bool, optional
**[salt2, snana]** If True, check that output column names and header
keys comply with expected formatting, and raise a ValueError if not.
It is probably a good idea to set to False when raw is True.
Default is True.