beginning of routine to fit final astrometry