healpy.sphtfunc.resize_alm

healpy.sphtfunc.resize_alm(alm, lmax, mmax, lmax_out, mmax_out)

Returns a resized copy of the input a_lm, either truncated or padded with zeros.

Parameters:
almarray or sequence of arrays, complex

A complex array of alm, or a sequence of such arrays. Size of each array must be of the form mmax*(lmax-mmax+1)/2+lmax

lmax, mmax: int, scalar

maximum l and m multipole moments of the input alm

lmax_out, mmax_out: int, scalar

maximum l and m multipole moments of the output alm

Returns:
array or sequence of arrays, complex

A complex array of alm, or a sequence of such arrays. Size of each array will be of the form mmax_out*(lmax_out-mmax_out+1)/2+lmax_out