grasp2alm.BeamMap.to_alm_lsq

BeamMap.to_alm_lsq(lmax, mmax, pol=True, tol=1e-10, maxiter=20)[source]

Converts the beam map to spherical harmonic coefficients by using healpy.map2alm_lsq.

Parameters:
  • lmax – int The desired lmax and mmax parameters for the analysis

  • mmax – int The desired lmax and mmax parameters for the analysis

  • pol – bool, optional If True, assumes input maps are TQU. Output will be TEB alm’s.

  • maps) ((input can be any number of) – If False, apply spin 0 harmonic transform to each map.

  • maps) – If there is only one input map, it has no effect. Default: True.

  • tol – float The desired accuracy for the result. Once this is reached, the iteration stops.

  • maxiter – int maximum iteration count after which the minimization is stopped

Returns:

The spherical harmonic coefficients.

Return type:

numpy.ndarray

Raises:

AssertionError – If lmax is greater than 3*nside-1 or if mmax is greater than lmax.