healpy.fitsfunc.mwrfits(filename, data, hdu=1, colnames=None, keys=None)

Write columns to a fits file in a table extension.


filename : str

The fits file name

data : list of 1D arrays

A list of 1D arrays to write in the table

hdu : int, optional

The header where to write the data. Default: 1

colnames : list of str

The column names

keys : dict-like

A dictionary with keywords to write in the header