needlets.filtermap_fromalm¶
-
filtermap_fromalm(alm, bl, nside, returnalm=False)[source]¶ Filter the map (given by its alm) with an input needlet.
- Parameters
alm (np.ndarray) – The alm of a Healpy map of the sky, as given by hp.map2alm()
bl (np.ndarray) – A numpy array containing the values of a needlet filter b(l), starting with l=0.
nside (int) – The
nsideof the input map. The output map will also have thisnside.returnalm (bool, optional) – If
True, the function will also return thealmfor the filtered map.
- Returns
If
returnalm=False, filtered map in the Healpix format. Ifreturnalm=True, a list with the filtered map and its correspondingalm.- Return type
np.ndarray or [np.ndarray,np.ndarray]