healpy.sphtfunc.check_max_nside

healpy.sphtfunc.check_max_nside#

healpy.sphtfunc.check_max_nside(nside)#

Checks whether the nside used in a certain operation does not exceed the maximum supported nside. The maximum nside is saved in MAX_NSIDE.

Parameters:
nsideint

nside of the map that is being checked

Returns:
int

Returns 0 if the check passes. Raises ValueError otherwise.