Astrometry routines ===================