healpy.pixelfunc.get_min_valid_nside¶
- healpy.pixelfunc.get_min_valid_nside(npix)¶
Returns the minimum acceptable nside so that npix <= nside2npix(nside).
- Parameters:
- npixint
a minimal number of pixel
- Returns:
- nsideint
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