helper to convert (ra,dec) to (theta, phi)