June 23, 2010
Healpix considers latitude theta from 0 on north pole to pi south pole, so the conversion is: theta = pi/2 - latitude longitude and phi instead are consistently from 0 to 2*pi with
theta = pi/2 - latitude