astropy 5.0

NotesParametersBackRef
dump(self, datafile=None, cdfile=None, hfile=None, overwrite=False)

Notes

The primary use for the dump method is to allow viewing and editing the table data and parameters in a standard text editor. The :None:None:`load` method can be used to create a new table from the three plain text (ASCII) files.

Parameters

datafile : path-like or file-like, optional

Output data file. The default is the root name of the fits file associated with this HDU appended with the extension .txt .

cdfile : path-like or file-like, optional

Output column definitions file. The default is :None:None:`None`, no column definitions output is produced.

hfile : path-like or file-like, optional

Output header parameters file. The default is :None:None:`None`, no header parameters output is produced.

overwrite : bool, optional

If True , overwrite the output file if it exists. Raises an OSError if False and the output file exists. Default is False .

versionchanged

overwrite replaces the deprecated clobber argument.

Dump the table HDU to a file in ASCII format. The table may be dumped in three separate files, one containing column definitions, one containing header parameters, and one for table data.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

astropy.io.fits.hdu.table.BinTableHDU.dump

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/io/fits/hdu/table.py#1055
type: <class 'function'>
Commit: