Danish astronomer who measured the positions of stars and motions of planets and comets with unprecedented precision