core.fitsio

Facilities related to FITS I/O.

ximpol.core.fitsio.main()[source]
class ximpol.core.fitsio.xBinTableHDUBase(data=None, keywords=[], comments=[])[source]

Binary table HDU class.

This is a small wrapper around a standard binary table to facilitate customizations.

set_ext_name(name)[source]

Set the extension name for the binary table.

classmethod spec_names()[source]

Return the name of the data fields specified in the SPEC class member.

classmethod spec_names_and_types()[source]

Return the name of the data fields specified in the SPEC class member.

class ximpol.core.fitsio.xHDUBase[source]

Base class for FITS HDU.

add_comment(comment)[source]

Add a comment to the table header.

add_keyword(key, value, comment='')[source]

Add a keyword to the table header.

set_keyword_comment(keyword, comment)[source]

Set the comment for a header keyword.

setup_header(keywords=[], comments=[])[source]

Update the table header with arbitrary additional information.

class ximpol.core.fitsio.xPrimaryHDU(creator='ximpol', keywords=[], comments=[])[source]

Class describing a primary HDU to be written in a FITS file.

This is initializing a standard astropy.io.fits.PrimaryHDU object and adding the creator and creation time fields.

Parameters:creator (str) – The application that created the header (defaults to ximpol, and the ximpol tag is automatically added.)