Adding calculation of inlinations and declinations.