~ubuntu-branches/ubuntu/warty/xplanet/warty

« back to all changes in this revision

Viewing changes to src/libplanet/libephemeris/jpleph.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040824071400-2dr4qnjbjmm8z3ia
Tags: 1.0.6-1ubuntu1
Build-depend: libtiff4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
***************************************************************************/
 
12
 
 
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
 
16
   than C. */
 
17
 
 
18
#ifdef _WIN32
 
19
#define DLL_FUNC __stdcall
 
20
#else
 
21
#define DLL_FUNC
 
22
#endif
 
23
 
 
24
#ifdef __cplusplus
 
25
extern "C" {
 
26
#endif
 
27
 
 
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);
 
39
 
 
40
#ifdef __cplusplus
 
41
}
 
42
#endif
 
43
 
 
44
         /* Following are constants used in          */
 
45
         /* jpl_get_double( ) and jpl_get_long( ):   */
 
46
 
 
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