Return map as a masked array, with badval pixels masked.
Parameters : | m : a map (may be a sequence of maps) badval : float, optional
rtol : float, optional
atol : float, optional
copy : bool, optional
|
---|---|
Returns : | a masked array with the same shape as the input map, masked where input map is : close to badval. : |
Examples
>>> import healpy as hp
>>> m = np.arange(12.)
>>> m[3] = hp.UNSEEN
>>> hp.ma(m)
masked_array(data = [0.0 1.0 2.0 -- 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0],
mask = [False False False True False False False False False False False False],
fill_value = -1.6375e+30)