Jvinniec / CppEphem

CppEphem is a self-contained ephemeris package written in C++. It allows computation of celestial coordinate and date conversions and planet ephemerides by leveraging the Standards of Fundamental Astronomy (SOFA) software (included in the repo). It is C++11 compatible.
2 stars 2 forks source link

CEPlanet observed coordinates fix #19

Closed Jvinniec closed 5 years ago

Jvinniec commented 5 years ago

This pull request fixes how classes inheriting from CEBody compute observed coordinates. Specifically, each method must now override the CEBody::ObservedCoords(const CEDate&, const CEObserver&) method. This method is overridden for CEPlanet now.

This is done as different objects will have different methods for extracting their observed coordinates. For example, stars will need to account for proper motion and parallax distance whereas planets will need to account for the relative time delay between observer and the current planet position.