healpy.pixelfunc.order2nside

healpy.pixelfunc.order2nside(order)

Give the nside parameter for the given resolution order.

Parameters:
orderint

the resolution order

Returns:
nsideint

the nside parameter corresponding to order

Notes

Raise a ValueError exception if order produces an nside out of range.

Examples

>>> import healpy as hp
>>> hp.order2nside(7)
128
>>> print(hp.order2nside(np.arange(8)))
[  1   2   4   8  16  32  64 128]
>>> hp.order2nside(31)
Traceback (most recent call last):
    ...
ValueError: 2147483648 is not a valid nside parameter (must be a power of 2, less than 2**30)