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

Definition at line 85 of file palRvgalc.c.

References eraPdp(), and eraS2c().

Referenced by t_rv(), and t_rvgalc().

85  {
86 
87 /* Local Variables: */
88  double vb[ 3 ];
89 
90 /*
91 * LSR velocity due to Galactic rotation
92 *
93 * Speed = 220 km/s
94 * Apex = L2,B2 90deg, 0deg
95 * = RA,Dec 21 12 01.1 +48 19 47 J2000.0
96 *
97 * This is expressed in the form of a J2000.0 x,y,z vector:
98 *
99 * VA(1) = X = -SPEED*COS(RA)*COS(DEC)
100 * VA(2) = Y = -SPEED*SIN(RA)*COS(DEC)
101 * VA(3) = Z = -SPEED*SIN(DEC)
102 */
103 
104  double va[ 3 ] = { -108.70408, +97.86251, -164.33610 };
105 
106 /* Convert given J2000 RA,Dec to x,y,z. */
107  eraS2c( r2000, d2000, vb );
108 
109 /* Compute dot product with LSR motion vector. */
110  return eraPdp( va, vb );
111 }
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: