healpy.pixelfunc.get_min_valid_nside¶
-
healpy.pixelfunc.
get_min_valid_nside
(npix)¶ Returns the minimum acceptable nside so that npix <= nside2npix(nside).
Parameters: npix : int
a minimal number of pixel
Returns: nside : int
a valid healpix nside so that 12 * nside ** 2 >= npix
Examples
>>> import healpy as hp >>> hp.pixelfunc.get_min_valid_nside(355) 8 >>> hp.pixelfunc.get_min_valid_nside(768) 8