healpy.fitsfunc.write_cl

healpy.fitsfunc.write_cl(filename, cl, dtype=<type 'numpy.float64'>, overwrite=False)

Writes Cl into a healpix file, as IDL cl2fits.

Parameters:
filename : str

the fits file name

cl : array

the cl array to write to file

overwrite : bool, optional

If True, existing file is silently overwritten. Otherwise trying to write an existing file raises an OSError (IOError for Python 2).