FACT++  1.0
void palUe2el ( const double  u[],
int  jformr,
int *  jform,
double *  epoch,
double *  orbinc,
double *  anode,
double *  perih,
double *  aorq,
double *  e,
double *  aorl,
double *  dm,
int *  jstat 
)

Definition at line 212 of file palUe2el.c.

References i, PAL__GCON, PAL__SPD, and palPv2el().

215  {
216 
217  /* Canonical days to seconds */
218  const double CD2S = PAL__GCON / PAL__SPD;
219 
220  int i;
221  double pmass, date, pv[6];
222 
223  /* Unpack the universal elements */
224  pmass = u[0] - 1.0;
225  date = u[2];
226  for (i=0; i<3; i++) {
227  pv[i] = u[i+3];
228  pv[i+3] = u[i+6] * CD2S;
229  }
230 
231  /* Convert the position and velocity etc into conventional elements */
232  palPv2el( pv, date, pmass, jformr, jform, epoch, orbinc, anode,
233  perih, aorq, e, aorl, dm, jstat );
234 }
int i
Definition: db_dim_client.c:21
void palPv2el(const double pv[6], double date, double pmass, int jformr, int *jform, double *epoch, double *orbinc, double *anode, double *perih, double *aorq, double *e, double *aorl, double *dm, int *jstat)
Definition: palPv2el.c:201
static const double PAL__GCON
Definition: palmac.h:117
static const double PAL__SPD
Definition: palmac.h:102

+ Here is the call graph for this function: