table_to_fits_table

gammapy.utils.fits.table_to_fits_table(table)[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