FACT++  1.0
void palPlanet ( double  date,
int  np,
double  pv[6],
int *  j 
)

Definition at line 82 of file palPlanet.c.

References eraPlan94(), PAL__MJD0, and PAL__SPD.

Referenced by palPertue(), palRdplan(), and t_planet().

82  {
83  double erapv[2][3];
84 
85  *j = eraPlan94( PAL__MJD0, date, np, erapv );
86 
87  /* Convert the outputs to the correct form and also correct AU/d
88  to AU/s */
89  pv[0] = erapv[0][0];
90  pv[1] = erapv[0][1];
91  pv[2] = erapv[0][2];
92  pv[3] = erapv[1][0] / PAL__SPD;
93  pv[4] = erapv[1][1] / PAL__SPD;
94  pv[5] = erapv[1][2] / PAL__SPD;
95 
96  /* SLA compatibility for status */
97  if (*j == 2) *j = -2;
98 
99 }
int eraPlan94(double date1, double date2, int np, double pv[2][3])
Definition: plan94.c:3
static const double PAL__MJD0
Definition: palmac.h:96
static const double PAL__SPD
Definition: palmac.h:102

+ Here is the call graph for this function:

+ Here is the caller graph for this function: