healpy.pixelfunc.remove_monopole

healpy.pixelfunc.remove_monopole(m, nest=False, bad=-1.6375e+30, gal_cut=0, fitval=False, copy=True, verbose=True)

Fit and subtract the monopole from the given map m.

Parameters:

m : float, array-like

the map to which a monopole is fitted and subtracted

nest : bool

if False m is assumed in RING scheme, otherwise map is NESTED

bad : float

bad values of pixel, default to UNSEEN.

gal_cut : float

pixels at latitude in [-gal_cut;+gal_cut] are not taken into account

fitval : bool

whether to return or not the fitted value of monopole

copy : bool

whether to modify input map or not (by default, make a copy)

verbose: bool

whether to print values of monopole

Returns:

res : array or tuple of length 3

if fitval is False, returns map with monopole subtracted, otherwise, returns map (array, in res[0]) and monopole (float, in res[1])