radec2pix

rubin_sim.maf.utils.radec2pix(nside, ra, dec)

Calculate the nearest healpixel ID of an RA/Dec array, assuming nside.

Parameters:
nsideint

The nside value of the healpix grid.

ranumpy.ndarray

The RA values to be converted to healpix ids, in radians.

decnumpy.ndarray

The Dec values to be converted to healpix ids, in radians.

Returns:
numpy.ndarray

The healpix ids.