healpy.sphtfunc.alm2map

healpy.sphtfunc.alm2map(alms, nside, lmax=None, mmax=None, pixwin=False, fwhm=0.0, sigma=None, pol=True, inplace=False, verbose=True)

Computes an Healpix map given the alm.

The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax).

Parameters:

alms : complex, array or sequence of arrays

A complex array or a sequence of complex arrays. Each array must have a size of the form: mmax * (2 * lmax + 1 - mmax) / 2 + lmax + 1

nside : int, scalar

The nside of the output map.

lmax : None or int, scalar, optional

Explicitly define lmax (needed if mmax!=lmax)

mmax : None or int, scalar, optional

Explicitly define mmax (needed if mmax!=lmax)

pixwin : bool, optional

Smooth the alm using the pixel window functions. Default: False.

fwhm : float, scalar, optional

The fwhm of the Gaussian used to smooth the map (applied on alm) [in radians]

sigma : float, scalar, optional

The sigma of the Gaussian used to smooth the map (applied on alm) [in radians]

pol : bool, optional

If True, assumes input alms are TEB. Output will be TQU maps. (input must be 1 or 3 alms) If False, apply spin 0 harmonic transform to each alm. (input can be any number of alms) If there is only one input alm, it has no effect. Default: True.

inplace : bool, optional

If True, input alms may be modified by pixel window function and beam smoothing (if alm(s) are complex128 contiguous arrays). Otherwise, input alms are not modified. A copy is made if needed to apply beam smoothing or pixel window.

Returns:

maps : array or list of arrays

An Healpix map in RING scheme at nside or a list of T,Q,U maps (if polarized input)