correct earth vector calculation