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