38 #define DLL_FUNC __stdcall 51 void * DLL_FUNC jpl_init_ephemeris(
const char *ephemeris_filename,
52 char nam[][6],
double *val);
53 void DLL_FUNC jpl_close_ephemeris(
void *ephem);
54 int DLL_FUNC jpl_state(
void *ephem,
const double et,
const int list[14],
55 double pv[][6],
double nut[4],
const int bary);
56 int DLL_FUNC jpl_pleph(
void *ephem,
const double et,
const int ntarg,
57 const int ncent,
double rrd[],
const int calc_velocity);
58 double DLL_FUNC jpl_get_double(
const void *ephem,
const int value);
59 long DLL_FUNC jpl_get_long(
const void *ephem,
const int value);
60 int DLL_FUNC make_sub_ephem(
void *ephem,
const char *sub_filename,
61 const double start_jd,
const double end_jd);
62 double DLL_FUNC jpl_get_constant(
const int idx,
void *ephem,
char *constant_name);
71 #define JPL_EPHEM_START_JD 0 72 #define JPL_EPHEM_END_JD 8 73 #define JPL_EPHEM_STEP 16 74 #define JPL_EPHEM_N_CONSTANTS 24 75 #define JPL_EPHEM_AU_IN_KM 28 76 #define JPL_EPHEM_EARTH_MOON_RATIO 36 77 #define JPL_EPHEM_IPT_ARRAY 44 78 #define JPL_EPHEM_EPHEMERIS_VERSION 224 79 #define JPL_EPHEM_KERNEL_SIZE 228 80 #define JPL_EPHEM_KERNEL_RECORD_SIZE 232 81 #define JPL_EPHEM_KERNEL_NCOEFF 236 82 #define JPL_EPHEM_KERNEL_SWAP_BYTES 240 86 #define JPL_EPH_OUTSIDE_RANGE (-1) 87 #define JPL_EPH_READ_ERROR (-2) 88 #define JPL_EPH_QUANTITY_NOT_IN_EPHEMERIS (-3) 89 #define JPL_EPH_INVALID_INDEX (-5) 90 #define JPL_EPH_FSEEK_ERROR (-6) 92 int DLL_FUNC jpl_init_error_code(
void);
98 #define JPL_INIT_NO_ERROR 0 99 #define JPL_INIT_FILE_NOT_FOUND -1 100 #define JPL_INIT_FSEEK_FAILED -2 101 #define JPL_INIT_FREAD_FAILED -3 102 #define JPL_INIT_FREAD2_FAILED -4 103 #define JPL_INIT_FREAD5_FAILED -10 104 #define JPL_INIT_FILE_CORRUPT -5 105 #define JPL_INIT_MEMORY_FAILURE -6 106 #define JPL_INIT_FREAD3_FAILED -7 107 #define JPL_INIT_FREAD4_FAILED -8 108 #define JPL_INIT_NOT_CALLED -9 110 #define jpl_get_pvsun( ephem) ((double *)((char *)ephem + 248)) 113 #define JPL_MAX_N_CONSTANTS 1018 114 #define CALC_VELOCITY 0 115 #define CENTRAL_PLANET_ID 11 //ID of sun in JPL enumeration 117 const char * jpl_init_error_message(
void);