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

Definition at line 90 of file palRvlsrd.c.

References eraPdp(), and eraS2c().

Referenced by t_rv(), and t_rvlsrd().

90  {
91 
92 /* Local Variables: */
93  double vb[ 3 ];
94 
95 /*
96 * Peculiar solar motion from Delhaye 1965: in Galactic Cartesian
97 * coordinates (+9,+12,+7) km/s. This corresponds to about 16.6 km/s
98 * towards Galactic coordinates L2 = 53 deg, B2 = +25 deg, or RA,Dec
99 * 17 49 58.7 +28 07 04 J2000.
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.63823, +14.58542, -7.80116 };
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: