Last change
on this file since 3114 was 3111, checked in by cmv, 19 years ago |
mise en conformite xephem 3.7.2 cmv 22/11/2006
|
File size:
740 bytes
|
Rev | Line | |
---|
[1457] | 1 | #include <stdio.h>
|
---|
| 2 |
|
---|
| 3 | #include "astro.h"
|
---|
| 4 |
|
---|
[2551] | 5 | /* given the modified Julian date, mj, find the mean obliquity of the
|
---|
[1457] | 6 | * ecliptic, *eps, in radians.
|
---|
| 7 | *
|
---|
| 8 | * IAU expression (see e.g. Astron. Almanac 1984); stern
|
---|
| 9 | */
|
---|
| 10 | void
|
---|
[2551] | 11 | obliquity (double mj, double *eps)
|
---|
[1457] | 12 | {
|
---|
[2551] | 13 | static double lastmj = -16347, lasteps;
|
---|
[1457] | 14 |
|
---|
[2551] | 15 | if (mj != lastmj) {
|
---|
| 16 | double t = (mj - J2000)/36525.; /* centuries from J2000 */
|
---|
[1457] | 17 | lasteps = degrad(23.4392911 + /* 23^ 26' 21".448 */
|
---|
| 18 | t * (-46.8150 +
|
---|
| 19 | t * ( -0.00059 +
|
---|
| 20 | t * ( 0.001813 )))/3600.0);
|
---|
[2551] | 21 | lastmj = mj;
|
---|
[1457] | 22 | }
|
---|
| 23 | *eps = lasteps;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | /* For RCS Only -- Do Not Edit */
|
---|
[3111] | 27 | static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: obliq.c,v $ $Date: 2006-11-22 13:53:30 $ $Revision: 1.6 $ $Name: not supported by cvs2svn $"};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.