Astrometry solver code