Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

table_to_fits_table

gammapy.utils.fits.table_to_fits_table(table, name=None)[source]

Convert Table to astropy.io.fits.BinTableHDU.

The name of the table can be stored in the Table meta information under the name keyword.

Additional column information description and ucd can be stored in the column.meta attribute and will be stored in the fits header.

Parameters:

table : Table

Table

Returns:

hdu : BinTableHDU

Binary table HDU