FACT++  1.0
void eraAtciqz ( double  rc,
double  dc,
eraASTROM astrom,
double *  ri,
double *  di 
)

Definition at line 3 of file atciqz.c.

References eraASTROM::bm1, eraASTROM::bpn, eraASTROM::eh, eraASTROM::em, eraAb(), eraAnp(), eraC2s(), eraLdsun(), eraRxp(), eraS2c(), and eraASTROM::v.

Referenced by t_atciqz().

69 {
70  double pco[3], pnat[3], ppr[3], pi[3], w;
71 
72 /* BCRS coordinate direction (unit vector). */
73  eraS2c(rc, dc, pco);
74 
75 /* Light deflection by the Sun, giving BCRS natural direction. */
76  eraLdsun(pco, astrom->eh, astrom->em, pnat);
77 
78 /* Aberration, giving GCRS proper direction. */
79  eraAb(pnat, astrom->v, astrom->em, astrom->bm1, ppr);
80 
81 /* Bias-precession-nutation, giving CIRS proper direction. */
82  eraRxp(astrom->bpn, ppr, pi);
83 
84 /* CIRS RA,Dec. */
85  eraC2s(pi, &w, di);
86  *ri = eraAnp(w);
87 
88 /* Finished. */
89 
90 }
void eraAb(double pnat[3], double v[3], double s, double bm1, double ppr[3])
Definition: ab.c:3
double eh[3]
Definition: erfam.h:19
void eraS2c(double theta, double phi, double c[3])
Definition: s2c.c:3
void eraC2s(double p[3], double *theta, double *phi)
Definition: c2s.c:3
void eraRxp(double r[3][3], double p[3], double rp[3])
Definition: rxp.c:3
double bpn[3][3]
Definition: erfam.h:23
double v[3]
Definition: erfam.h:21
double eraAnp(double a)
Definition: anp.c:3
double em
Definition: erfam.h:20
double bm1
Definition: erfam.h:22
void eraLdsun(double p[3], double e[3], double em, double p1[3])
Definition: ldsun.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: