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

Definition at line 76 of file palEcleq.c.

References eraAnp(), eraC2s(), eraS2c(), eraTrxp(), palDrange(), palEcmat(), palEpj(), and palPrec().

Referenced by t_ecleq().

76  {
77  double v1[3], v2[3];
78  double rmat[3][3];
79 
80  /* Spherical to Cartesian */
81  eraS2c( dl, db, v1 );
82 
83  /* Ecliptic to equatorial */
84  palEcmat( date, rmat );
85  eraTrxp( rmat, v1, v2 );
86 
87  /* Mean of date to J2000 */
88  palPrec( 2000.0, palEpj(date), rmat );
89  eraTrxp( rmat, v2, v1 );
90 
91  /* Cartesian to spherical */
92  eraC2s( v1, dr, dd );
93 
94  /* Express in conventional range */
95  *dr = eraAnp( *dr );
96  *dd = palDrange( *dd );
97 }
double palDrange(double angle)
Definition: palDrange.c:68
void palPrec(double ep0, double ep1, double rmatp[3][3])
Definition: palPrec.c:76
double palEpj(double date)
Definition: palOne2One.c:1169
void eraS2c(double theta, double phi, double c[3])
Definition: s2c.c:3
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
void palEcmat(double date, double rmat[3][3])
Definition: palEcmat.c:73
double eraAnp(double a)
Definition: anp.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: