hpmoc.healpy module
healpy
wrapper
- class hpmoc.healpy.LazyMod(mod, defaults, exceptions=None)
Bases:
object
- hpmoc.healpy.ang2vec(theta, phi, lonlat=False)
A drop-in replacement for
healpy.ang2vec
that preserves thehealpy
row, column ordering (sinceastropy_healpix.healpy.ang2vec
returns a transposed version). Dynamically checks behavior in caseastropy_healpix
fixes its return value to conform tohealpy
behavior at some point in the future.See also
healpy.ang2vec
,astropy_healpix.healpy.ang2vec
- hpmoc.healpy.boundaries(nside, pix, step=1, nest=False)
A drop-in replacement for
healpy.boundaries
that preserves the shape of the returned result.astropy_healpix.healpy.boundaries
will return a shape of(3, 4)
when given a length-1 vector of pixel indices, whereas the original will return a shape of(n, 3, 4)
wheren
is the length of the input list, even in the case whenn=1
. This function conforms to thehealpy.boundaries
behavior.See also
healpy.boundaries
,astropy_healpix.healpy.boundaries
- hpmoc.healpy.nside2order(nside)
Drop-in replacement for healpy ~healpy.pixelfunc.nside2order.
- hpmoc.healpy.pix2xyf(nside, ipix, nest=False)
Drop-in replacement for healpy ~healpy.pixelfunc.pix2xyf.
- hpmoc.healpy.xyf2pix(nside, x, y, face, nest=False)
Drop-in replacement for healpy ~healpy.pixelfunc.xyf2pix.