4 double elong,
double phi,
double hm,
double xp,
double yp,
5 double refa,
double refb,
120 double sl, cl, pv[2][3];
123 astrom->
along = elong + sp;
126 sl = sin(astrom->
along);
127 cl = cos(astrom->
along);
128 astrom->
xpl = xp*cl - yp*sl;
129 astrom->
ypl = xp*sl + yp*cl;
132 astrom->
sphi = sin(phi);
133 astrom->
cphi = cos(phi);
136 eraPvtob(elong, phi, hm, xp, yp, sp, theta, pv);
139 astrom->
diurab = sqrt(pv[1][0]*pv[1][0]+pv[1][1]*pv[1][1]) /
ERFA_CMPS;
void eraAper(double theta, eraASTROM *astrom)
void eraPvtob(double elong, double phi, double height, double xp, double yp, double sp, double theta, double pv[2][3])
void eraApio(double sp, double theta, double elong, double phi, double hm, double xp, double yp, double refa, double refb, eraASTROM *astrom)