Correct for precession. More...
Macros | |
#define | AE_PRECESS_USE_WILLIAMS 1 |
Use Williams's coefficients for calculating precession. More... | |
#define | AE_PRECESS_USE_SIMON 0 |
Use Simon's et al coefficients for calculating precession. More... | |
#define | AE_PRECESS_USE_IAU 0 |
Use Lieske's et al IAU coefficients for calculating precession. More... | |
#define | AE_PRECESS_USE_LASKAR 0 |
Use Laskar's IAU coefficients for calculating precession. More... | |
Functions | |
void | ae_precess (double jd_tt, double r[], int direction) |
Precess a coordinate. More... | |
Variables | |
double | ae_precess_coef [] |
Precession coefficients. More... | |
double | ae_precess_node_coef [] |
Precession node coefficients. More... | |
double | ae_precess_incl_coef [] |
Precession inclination coefficients. More... | |
Correct for precession.
#define AE_PRECESS_USE_IAU 0 |
Use Lieske's et al IAU coefficients for calculating precession.
Reference:
#define AE_PRECESS_USE_LASKAR 0 |
Use Laskar's IAU coefficients for calculating precession.
Newer formulas that cover a much longer time span are from:
See also:
Laskar's expansions are said by Bretagnon and Francou to have "a precision of about 1" over 10000 years before and after J2000.0 in so far as the precession constants and are perfectly known.
Bretagnon and Francou's expansions for the node and inclination of the ecliptic were derived from Laskar's data but were truncated after the term in . I have recomputed these expansions from Laskar's data, retaining powers up to in the result.
The following table indicates the differences between the result of the IAU formula and Laskar's formula using four different test vectors, checking at J2000 plus and minus the indicated number of years.
Years from J2000 | Arcseconds |
0 | 0 |
100 | 0.006 |
200 | 0.006 |
500 | 0.015 |
1000 | 0.28 |
2000 | 6.4 |
3000 | 38.0 |
10000 | 9400. |
#define AE_PRECESS_USE_SIMON 0 |
Use Simon's et al coefficients for calculating precession.
Laskar's terms of order higher than have been retained, because Simon et al. mention that the solution is the same except for the lower order terms.
Reference:
#define AE_PRECESS_USE_WILLIAMS 1 |
Use Williams's coefficients for calculating precession.
Laskar's terms of order higher than have been retained, because Simon et al. mention that the solution is the same except for the lower order terms.
Reference:
void ae_precess | ( | double | jd_tt, |
double | r[], | ||
int | direction | ||
) |
Precess a coordinate.
The precession is calcuated using ae_precess_coef, ae_precess_node_coef and ae_precess_incl_coef.
jd_tt | The Julian date in TT. |
r | A rectangular coordinate vector to be precessed. This routine returns the precessed coordinate in this parameter. |
direction | AE_TO_J2000 to precess from jd_tt to J2000; AE_FROM_J2000 to precess from J2000 to jd_tt . (If neither is passed, AE_TO_J2000 is assumed.) To precess from jd_1 to jd_2, first go from jd_1 to J2000, and then from J2000 to jd_2. |
References ae_epsilon(), AE_FROM_J2000, AE_J2000, ae_precess_coef, ae_precess_incl_coef, ae_precess_node_coef, AE_STR, and AE_TO_J2000.
Referenced by ae_coord_to_constel_index(), ae_geocentric(), ae_geocentric_from_cat(), ae_kepler(), ae_kepler_embofs(), ae_phys_pole(), and ae_rect_to_polar_with_jd().
double ae_precess_coef[] |
Precession coefficients.
The exact definition will depend on which of AE_PRECESS_USE_WILLIAMS, AE_PRECESS_USE_SIMON, AE_PRECESS_USE_IAU or AE_PRECESS_USE_LASKAR is set.
Referenced by ae_precess().
double ae_precess_incl_coef[] |
Precession inclination coefficients.
The exact definition will depend on which of AE_PRECESS_USE_WILLIAMS, AE_PRECESS_USE_SIMON, AE_PRECESS_USE_IAU or AE_PRECESS_USE_LASKAR is set.
Referenced by ae_precess().
double ae_precess_node_coef[] |
Precession node coefficients.
The exact definition will depend on which of AE_PRECESS_USE_WILLIAMS, AE_PRECESS_USE_SIMON, AE_PRECESS_USE_IAU or AE_PRECESS_USE_LASKAR is set.
Referenced by ae_precess().
AEPHEM documentation generated by Doxygen v1.8.9.1 at Sat Aug 1 2015 15:02:46. |