-
Notifications
You must be signed in to change notification settings - Fork 4
/
NOVAS_eph_manager.h
74 lines (49 loc) · 1.36 KB
/
NOVAS_eph_manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
Naval Observatory Vector Astrometry Software (NOVAS)
C Edition, Version 3.1
eph_manager.h: Header file for eph_manager.c
U. S. Naval Observatory
Astronomical Applications Dept.
Washington, DC
http://www.usno.navy.mil/USNO/astronomical-applications
*/
#ifndef _EPHMAN_
#define _EPHMAN_
/*
Standard libraries
*/
#ifndef __MATH__
#include <math.h>
#endif
#ifndef __STDLIB__
#include <stdlib.h>
#endif
#ifndef __STDIO__
#include <stdio.h>
#endif
/*
External variables
*/
extern short int KM;
extern int IPT[3][12], LPT[3];
extern long int NRL, NP, NV;
extern long int RECORD_LENGTH;
extern double SS[3], JPLAU, PC[18], VC[18], TWOT, EM_RATIO;
extern double *BUFFER;
extern FILE *EPHFILE;
/*
Function prototypes
*/
short int ephem_open (char *ephem_name,
double *jd_begin, double *jd_end,
short int *de_number);
short int ephem_close (void);
short int planet_ephemeris (double tjd[2], short int target,
short int center,
double *position, double *velocity);
short int state (double *jed, short int target,
double *target_pos, double *target_vel);
void interpolate (double *buf, double *t, long int ncm, long int na,
double *position, double *velocity);
void split (double tt, double *fr);
#endif