partial implementation of HEALPix ang2pix_ring