complete astrometry function
add dtdb