FACT++  1.0
int eraApco13 ( double  utc1,
double  utc2,
double  dut1,
double  elong,
double  phi,
double  hm,
double  xp,
double  yp,
double  phpa,
double  tc,
double  rh,
double  wl,
eraASTROM astrom,
double *  eo 
)

Definition at line 3 of file apco13.c.

References eraApco(), eraBpn2xy(), eraEors(), eraEpv00(), eraEra00(), eraPnm06a(), eraRefco(), eraS06(), eraSp00(), eraTaitt(), eraUtctai(), and eraUtcut1().

Referenced by eraAtco13(), eraAtoc13(), and t_apco13().

179 {
180  int j;
181  double tai1, tai2, tt1, tt2, ut11, ut12, ehpv[2][3], ebpv[2][3],
182  r[3][3], x, y, s, theta, sp, refa, refb;
183 
184 /* UTC to other time scales. */
185  j = eraUtctai(utc1, utc2, &tai1, &tai2);
186  if ( j < 0 ) return -1;
187  j = eraTaitt(tai1, tai2, &tt1, &tt2);
188  j = eraUtcut1(utc1, utc2, dut1, &ut11, &ut12);
189  if ( j < 0 ) return -1;
190 
191 /* Earth barycentric & heliocentric position/velocity (au, au/d). */
192  (void) eraEpv00(tt1, tt2, ehpv, ebpv);
193 
194 /* Form the equinox based BPN matrix, IAU 2006/2000A. */
195  eraPnm06a(tt1, tt2, r);
196 
197 /* Extract CIP X,Y. */
198  eraBpn2xy(r, &x, &y);
199 
200 /* Obtain CIO locator s. */
201  s = eraS06(tt1, tt2, x, y);
202 
203 /* Earth rotation angle. */
204  theta = eraEra00(ut11, ut12);
205 
206 /* TIO locator s'. */
207  sp = eraSp00(tt1, tt2);
208 
209 /* Refraction constants A and B. */
210  eraRefco(phpa, tc, rh, wl, &refa, &refb);
211 
212 /* Compute the star-independent astrometry parameters. */
213  eraApco(tt1, tt2, ebpv, ehpv[0], x, y, s, theta,
214  elong, phi, hm, xp, yp, sp, refa, refb, astrom);
215 
216 /* Equation of the origins. */
217  *eo = eraEors(r, s);
218 
219 /* Return any warning status. */
220  return j;
221 
222 /* Finished. */
223 
224 }
void eraPnm06a(double date1, double date2, double rnpb[3][3])
Definition: pnm06a.c:3
int eraUtctai(double utc1, double utc2, double *tai1, double *tai2)
Definition: utctai.c:3
double eraSp00(double date1, double date2)
Definition: sp00.c:3
void eraBpn2xy(double rbpn[3][3], double *x, double *y)
Definition: bpn2xy.c:3
double eraEra00(double dj1, double dj2)
Definition: era00.c:3
void eraApco(double date1, double date2, double ebpv[2][3], double ehp[3], double x, double y, double s, double theta, double elong, double phi, double hm, double xp, double yp, double sp, double refa, double refb, eraASTROM *astrom)
Definition: apco.c:3
void eraRefco(double phpa, double tc, double rh, double wl, double *refa, double *refb)
Definition: refco.c:3
int eraTaitt(double tai1, double tai2, double *tt1, double *tt2)
Definition: taitt.c:3
double eraS06(double date1, double date2, double x, double y)
Definition: s06.c:3
int eraUtcut1(double utc1, double utc2, double dut1, double *ut11, double *ut12)
Definition: utcut1.c:3
int eraEpv00(double date1, double date2, double pvh[2][3], double pvb[2][3])
Definition: epv00.c:3
double eraEors(double rnpb[3][3], double s)
Definition: eors.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: