FACT++  1.0
void palGe50 ( double  dl,
double  db,
double *  dr,
double *  dd 
)

Definition at line 79 of file palGe50.c.

References eraAnp(), eraAnpm(), eraC2s(), eraS2c(), eraTrxp(), and palAddet().

Referenced by t_ge50().

79  {
80 
81 /*
82  * L2,B2 system of galactic coordinates
83  *
84  * P = 192.25 RA of galactic north pole (mean B1950.0)
85  * Q = 62.6 inclination of galactic to mean B1950.0 equator
86  * R = 33 longitude of ascending node
87  *
88  * P,Q,R are degrees
89  *
90  *
91  * Equatorial to galactic rotation matrix
92  *
93  * The Euler angles are P, Q, 90-R, about the z then y then
94  * z axes.
95  *
96  * +CP.CQ.SR-SP.CR +SP.CQ.SR+CP.CR -SQ.SR
97  *
98  * -CP.CQ.CR-SP.SR -SP.CQ.CR+CP.SR +SQ.CR
99  *
100  * +CP.SQ +SP.SQ +CQ
101  *
102  */
103 
104  double rmat[3][3] = {
105  { -0.066988739415,-0.872755765852,-0.483538914632 },
106  { +0.492728466075,-0.450346958020,+0.744584633283 },
107  { -0.867600811151,-0.188374601723,+0.460199784784 }
108  };
109 
110  double v1[3], v2[3], r, d, re, de;
111 
112  /* Spherical to cartesian */
113  eraS2c( dl, db, v1 );
114 
115  /* Rotate to mean B1950.0 */
116  eraTrxp( rmat, v1, v2 );
117 
118  /* Cartesian to spherical */
119  eraC2s( v2, &r, &d );
120 
121  /* Introduce E-terms */
122  palAddet( r, d, 1950.0, &re, &de );
123 
124  /* Express in conventional ranges */
125  *dr = eraAnp( re );
126  *dd = eraAnpm( de );
127 
128 }
void eraS2c(double theta, double phi, double c[3])
Definition: s2c.c:3
void palAddet(double rm, double dm, double eq, double *rc, double *dc)
Definition: palAddet.c:88
void eraC2s(double p[3], double *theta, double *phi)
Definition: c2s.c:3
void eraTrxp(double r[3][3], double p[3], double trp[3])
Definition: trxp.c:3
double eraAnpm(double a)
Definition: anpm.c:3
double eraAnp(double a)
Definition: anp.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: