astropy 5.0

NotesParametersBackRef
tabledump(filename, datafile=None, cdfile=None, hfile=None, ext=1, overwrite=False)

Notes

The primary use for the tabledump function is to allow editing in a standard text editor of the table data and parameters. The tableload function can be used to reassemble the table from the three ASCII files.

Parameters

filename : path-like or file-like

Input fits file.

datafile : path-like or file-like, optional

Output data file. The default is the root name of the input fits file appended with an underscore, followed by the extension number (ext), followed by 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.

ext : int

The number of the extension containing the table HDU to be dumped.

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 a 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.convenience.tabledump

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/convenience.py#917
type: <class 'function'>
Commit: