add_header_to_table

astrodata.add_header_to_table(table)[source]

Add a FITS header to a table’s metadata. Deprecated.

This does not modify the table itself, but adds the header to the table’s metadata. If a header is already present in the table’s metadata, it will ensure it’s up to date with the table’s columns.

Warning

This function is deprecated and will be removed in a future version. Its functionality is covered by Tables.

Parameters:

table (astropy.table.Table) – The table to add the header to.

Returns:

header – The header to add to the table

Return type:

astropy.io.fits.Header