healpy.pixelfunc.isnpixok¶
- healpy.pixelfunc.isnpixok(npix)¶
Return
Trueif npix is a valid value for healpix map size,Falseotherwise.- Parameters
- npixint, scalar or array-like
integer value to be tested
- Returns
- okbool, scalar or array-like
Trueif given value is a valid number of pixel,Falseotherwise
Examples
>>> import healpy as hp >>> hp.isnpixok(12) True
>>> hp.isnpixok(768) True
>>> hp.isnpixok([12, 768, 1002]) array([ True, True, False], dtype=bool)