writeto#
- astropy.io.votable.writeto(table, file, tabledata_format=None)[source]#
Writes a
VOTableFile
to a VOTABLE xml file.- Parameters:
- table
VOTableFile
orTable
instance. - file
str
or writable file-like object file-like object Path or file object to write to
- tabledata_format
str
, optional Override the format of the table(s) data to write. Must be one of
tabledata
(text representation),binary
orbinary2
. By default, use the format that was specified in eachtable
object as it was created or read in. See Data Serialization Formats.
- table