FACT++  1.0
void eraApio ( double  sp,
double  theta,
double  elong,
double  phi,
double  hm,
double  xp,
double  yp,
double  refa,
double  refb,
eraASTROM astrom 
)

Definition at line 3 of file apio.c.

References eraASTROM::along, eraASTROM::cphi, eraASTROM::diurab, eraAper(), eraPvtob(), ERFA_CMPS, eraASTROM::refa, eraASTROM::refb, eraASTROM::sphi, eraASTROM::xpl, and eraASTROM::ypl.

Referenced by eraApio13(), and t_apio().

119 {
120  double sl, cl, pv[2][3];
121 
122 /* Longitude with adjustment for TIO locator s'. */
123  astrom->along = elong + sp;
124 
125 /* Polar motion, rotated onto the local meridian. */
126  sl = sin(astrom->along);
127  cl = cos(astrom->along);
128  astrom->xpl = xp*cl - yp*sl;
129  astrom->ypl = xp*sl + yp*cl;
130 
131 /* Functions of latitude. */
132  astrom->sphi = sin(phi);
133  astrom->cphi = cos(phi);
134 
135 /* Observer's geocentric position and velocity (m, m/s, CIRS). */
136  eraPvtob(elong, phi, hm, xp, yp, sp, theta, pv);
137 
138 /* Magnitude of diurnal aberration vector. */
139  astrom->diurab = sqrt(pv[1][0]*pv[1][0]+pv[1][1]*pv[1][1]) / ERFA_CMPS;
140 
141 /* Refraction constants. */
142  astrom->refa = refa;
143  astrom->refb = refb;
144 
145 /* Local Earth rotation angle. */
146  eraAper(theta, astrom);
147 
148 /* Finished. */
149 
150 }
void eraAper(double theta, eraASTROM *astrom)
Definition: aper.c:3
double refa
Definition: erfam.h:32
void eraPvtob(double elong, double phi, double height, double xp, double yp, double sp, double theta, double pv[2][3])
Definition: pvtob.c:3
double ypl
Definition: erfam.h:27
double sphi
Definition: erfam.h:28
double refb
Definition: erfam.h:33
double cphi
Definition: erfam.h:29
#define ERFA_CMPS
Definition: erfam.h:105
double along
Definition: erfam.h:24
double xpl
Definition: erfam.h:26
double diurab
Definition: erfam.h:30

+ Here is the call graph for this function:

+ Here is the caller graph for this function: