FACT++  1.0
double palEpco ( char  k0,
char  k,
double  e 
)

Definition at line 82 of file palEpco.c.

References eraEpb(), eraEpb2jd(), eraEpj(), and eraEpj2jd().

Referenced by t_epco().

82  {
83 
84  double new_epoch = 0.0;
85  double djm;
86  double djm0;
87 
88  /* Use upper case */
89  k0 = toupper( k0 );
90  k = toupper( k );
91 
92  if (k == k0) {
93  new_epoch = e;
94  } else if (k0 == 'B') {
95  eraEpj2jd( e, &djm0, &djm );
96  new_epoch = eraEpb( djm0, djm );
97  } else {
98  eraEpb2jd( e, &djm0, &djm );
99  new_epoch = eraEpj( djm0, djm );
100  }
101  return new_epoch;
102 }
void eraEpj2jd(double epj, double *djm0, double *djm)
Definition: epj2jd.c:3
void eraEpb2jd(double epb, double *djm0, double *djm)
Definition: epb2jd.c:3
double eraEpb(double dj1, double dj2)
Definition: epb.c:3
double eraEpj(double dj1, double dj2)
Definition: epj.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: