fits_table_to_table

gammapy.utils.fits.fits_table_to_table(tbhdu)[source]

Convert astropy table to binary table FITS format.

This is a generic method to convert a BinTableHDU to Table. The name of the table is stored in the Table meta information under the name keyword.

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

Parameters:

hdu : BinTableHDU

FITS bin table containing the astropy table columns

Returns:

table : Table

astropy table containing the desired columns