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

Definition at line 76 of file palEqecl.c.

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

Referenced by t_eqecl().

76  {
77  double v1[3], v2[3];
78  double rmat[3][3];
79 
80  /* Spherical to Cartesian */
81  eraS2c( dr, dd, v1 );
82 
83  /* Mean J2000 to mean of date */
84  palPrec( 2000.0, palEpj(date), rmat );
85  eraRxp( rmat, v1, v2 );
86 
87  /* Equatorial to ecliptic */
88  palEcmat( date, rmat );
89  eraRxp( rmat, v2, v1 );
90 
91  /* Cartesian to spherical */
92  eraC2s( v1, dl, db );
93 
94  /* Express in conventional range */
95  *dl = eraAnp( *dl );
96  *db = palDrange( *db );
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 eraRxp(double r[3][3], double p[3], double rp[3])
Definition: rxp.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: