1
/***************************************************************************
2
******* JPLEPH.H *********
3
****************************************************************************
4
** This header file is used both by ASC2EPH and TESTEPH programs. **
5
****************************************************************************
6
** Written: May 28, 1997 by PAD ** Last modified: June 23,1997 by PAD **
7
** Modified further by Bill Gray, Jun-Aug 2001 **
8
****************************************************************************
9
** PAD: dr. Piotr A. Dybczynski, e-mail: dybol@phys.amu.edu.pl **
10
** Astronomical Observatory of the A.Mickiewicz Univ., Poznan, Poland **
11
***************************************************************************/
13
/* By default, in Windoze 32, the JPL ephemeris functions are compiled
14
into a DLL. This is not really all that helpful at present, but may
15
be useful to people who want to use the functions from languages other
19
#define DLL_FUNC __stdcall
28
void * DLL_FUNC jpl_init_ephemeris( const char *ephemeris_filename,
29
char nam[][6], double *val);
30
void DLL_FUNC jpl_close_ephemeris( void *ephem);
31
int DLL_FUNC jpl_state( void *ephem, const double et, const int list[12],
32
double pv[][6], double nut[4], const int bary);
33
int DLL_FUNC jpl_pleph( void *ephem, const double et, const int ntarg,
34
const int ncent, double rrd[], const int calc_velocity);
35
double DLL_FUNC jpl_get_double( const void *ephem, const int value);
36
double DLL_FUNC jpl_get_long( const void *ephem, const int value);
37
int DLL_FUNC make_sub_ephem( const void *ephem, const char *sub_filename,
38
const double start_jd, const double end_jd);
44
/* Following are constants used in */
45
/* jpl_get_double( ) and jpl_get_long( ): */
47
#define JPL_EPHEM_START_JD 0
48
#define JPL_EPHEM_END_JD 8
49
#define JPL_EPHEM_STEP 16
50
#define JPL_EPHEM_N_CONSTANTS 24
51
#define JPL_EPHEM_AU_IN_KM 28
52
#define JPL_EPHEM_EARTH_MOON_RATIO 36
53
#define JPL_EPHEM_EPHEMERIS_VERSION 200
54
#define JPL_EPHEM_KERNEL_SIZE 204
55
#define JPL_EPHEM_KERNEL_RECORD_SIZE 208
56
#define JPL_EPHEM_KERNEL_NCOEFF 212
57
#define JPL_EPHEM_KERNEL_SWAP_BYTES 216