FACT++  1.0
double palRvlsrk ( double  r2000,
double  d2000 
)

Definition at line 90 of file palRvlsrk.c.

References eraPdp(), and eraS2c().

Referenced by t_rv(), and t_rvlsrk().

90  {
91 
92 /* Local Variables: */
93  double vb[ 3 ];
94 
95 /*
96 * Standard solar motion (from Methods of Experimental Physics, ed Meeks,
97 * vol 12, part C, sec 6.1.5.2, p281):
98 *
99 * 20 km/s towards RA 18h Dec +30d (1900).
100 *
101 * The solar motion is expressed here in the form of a J2000.0
102 * equatorial Cartesian vector:
103 *
104 * VA(1) = X = -SPEED*COS(RA)*COS(DEC)
105 * VA(2) = Y = -SPEED*SIN(RA)*COS(DEC)
106 * VA(3) = Z = -SPEED*SIN(DEC)
107 */
108 
109  double va[ 3 ] = { -0.29000, +17.31726, -10.00141 };
110 
111 /* Convert given J2000 RA,Dec to x,y,z. */
112  eraS2c( r2000, d2000, vb );
113 
114 /* Compute dot product with Solar motion vector. */
115  return eraPdp( va, vb );
116 }
double eraPdp(double a[3], double b[3])
Definition: pdp.c:3
void eraS2c(double theta, double phi, double c[3])
Definition: s2c.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: