mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-30 11:09:33 -05:00
75 lines
1.4 KiB
C
75 lines
1.4 KiB
C
/*
|
|
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
|