healpy.fitsfunc.write_cl#
- healpy.fitsfunc.write_cl(filename, cl, dtype=None, overwrite=False, column_names=None, extra_header=())#
Writes Cl into a healpix file, as IDL cl2fits.
- Parameters:
- filenamestr
the fits file name
- clarray
the cl array to write to file
- dtypenp.dtype (optional)
The datatype in which the columns will be stored. If not supplied, the dtype of the input cl will be used. This changed in healpy 1.15.0, in previous versions, cl by default were saved in float64.
- overwritebool, optional
If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError.
- column_namesstr or list, optional
Column name or list of column names. If None, uses default names: [“TEMPERATURE”, “GRADIENT”, “CURL”, “G-T”, “C-T”, “C-G”] for the first 6 columns, and “COLUMN_N” for columns beyond 6.
- extra_headerlist, optional
Extra records to add to FITS header.