FACT++  1.0
double eraEra00 ( double  dj1,
double  dj2 
)

Definition at line 3 of file era00.c.

References eraAnp(), ERFA_D2PI, ERFA_DJ00, and t.

Referenced by eraApco13(), eraAper13(), eraApio13(), eraC2t00a(), eraC2t00b(), eraC2t06a(), eraC2txy(), eraGmst00(), eraGmst06(), eraGst06(), and t_era00().

60 {
61  double d1, d2, t, f, theta;
62 
63 /* Days since fundamental epoch. */
64  if (dj1 < dj2) {
65  d1 = dj1;
66  d2 = dj2;
67  } else {
68  d1 = dj2;
69  d2 = dj1;
70  }
71  t = d1 + (d2- ERFA_DJ00);
72 
73 /* Fractional part of T (days). */
74  f = fmod(d1, 1.0) + fmod(d2, 1.0);
75 
76 /* Earth rotation angle at this UT1. */
77  theta = eraAnp(ERFA_D2PI * (f + 0.7790572732640
78  + 0.00273781191135448 * t));
79 
80  return theta;
81 
82 }
#define ERFA_DJ00
Definition: erfam.h:87
#define ERFA_D2PI
Definition: erfam.h:48
TT t
Definition: test_client.c:26
double eraAnp(double a)
Definition: anp.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: