healpy.fitsfunc.write_alm¶
-
healpy.fitsfunc.
write_alm
(filename, alms, out_dtype=None, lmax=-1, mmax=-1, mmax_in=-1)¶ Write alms to a fits file.
In the fits file the alms are written with explicit index scheme, index = l*l + l + m +1, possibly out of order. By default write_alm makes a table with the same precision as the alms. If specified, the lmax and mmax parameters truncate the input data to include only alms for which l <= lmax and m <= mmax.
Parameters: filename : str
The filename of the output fits file
alms : array, complex or list of arrays
A complex ndarray holding the alms, index = m*(2*lmax+1-m)/2+l, see Alm.getidx
lmax : int, optional
The maximum l in the output file
mmax : int, optional
The maximum m in the output file
out_dtype : data type, optional
data type in the output file (must be a numpy dtype). Default: alms.real.dtype
mmax_in : int, optional
maximum m in the input array