source: trunk/MagicSoft/slalib/etrms.c@ 959

Last change on this file since 959 was 731, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#include "slalib.h"
2#include "slamac.h"
3void slaEtrms ( double ep, double ev[3] )
4/*
5** - - - - - - - - -
6** s l a E t r m s
7** - - - - - - - - -
8**
9** Compute the e-terms (elliptic component of annual aberration)
10** vector.
11**
12** (double precision)
13**
14** Given:
15** ep double Besselian epoch
16**
17** Returned:
18** ev double[3] e-terms as (dx,dy,dz)
19**
20** References:
21**
22** 1 Smith, C.A. et al, 1989. "The transformation of astrometric
23** catalog systems to the equinox J2000.0". Astron.J. 97, 265.
24**
25** 2 Yallop, B.D. et al, 1989. "Transformation of mean star places
26** from FK4 B1950.0 to FK5 J2000.0 using matrices in 6-space".
27** Astron.J. 97, 274.
28**
29** Note the use of the J2000 aberration constant (20.49552 arcsec).
30** This is a reflection of the fact that the e-terms embodied in
31** existing star catalogues were computed from a variety of
32** aberration constants. Rather than adopting one of the old
33** constants the latest value is used here.
34**
35** Defined in slamac.h: DAS2R
36**
37** Last revision: 31 October 1993
38**
39** Copyright P.T.Wallace. All rights reserved.
40*/
41{
42 double t, e, e0, p, ek, cp;
43
44/* Julian centuries since B1950 */
45 t = ( ep - 1950.0 ) * 1.00002135903e-2;
46
47/* Eccentricity */
48 e = 0.01673011 - ( 0.00004193 + 0.000000126 * t ) * t;
49
50/* Mean obliquity */
51 e0 = ( 84404.836 -
52 ( 46.8495 + ( 0.00319 + 0.00181 * t ) * t ) * t ) * DAS2R;
53
54/* Mean longitude of perihelion */
55 p = ( 1015489.951 +
56 ( 6190.67 + ( 1.65 + 0.012 * t ) * t ) * t ) * DAS2R;
57
58/* E-terms */
59 ek = e * 20.49552 * DAS2R;
60 cp = cos ( p );
61 ev[0] = ek * sin ( p );
62 ev[1] = -ek * cp * cos ( e0 );
63 ev[2] = -ek * cp * sin ( e0 );
64}
Note: See TracBrowser for help on using the repository browser.