124 void palFk45z(
double r1950,
double d1950,
double bepoch,
double *r2000,
131 double r0[3], a1[3], v1[3], v2[6];
137 double a[3] = { -1.62557E-6, -0.31919E-6, -0.13843E-6 };
140 double ad[3] = { 1.245E-3, -1.580E-3, -0.659E-3 };
143 double em[6][3] = { {0.9999256782, -0.0111820611, -0.0048579477},
144 {0.0111820610, 0.9999374784, -0.0000271765},
145 {0.0048579479, -0.0000271474, 0.9999881997},
146 {-0.000551, -0.238565, 0.435739},
147 {0.238514, -0.002667, -0.008541},
148 {-0.435623, 0.012254, 0.002117} };
152 eraS2c( r1950, d1950, r0 );
156 for( i = 0; i < 3; i++ ) {
157 a1[
i ] = a[
i ] + w*ad[
i ];
161 w = r0[ 0 ]*a1[ 0 ] + r0[ 1 ]*a1[ 1 ] + r0[ 2 ]*a1[ 2 ];
162 for( i = 0; i < 3; i++ ) {
163 v1[
i ] = r0[
i ] - a1[
i ] + w*r0[
i ];
167 for( i = 0; i < 6; i++ ) {
169 for( j = 0; j < 3; j++ ) {
170 w += em[
i ][ j ]*v1[ j ];
177 for( i = 0; i < 3; i++ ) {
178 v2[
i ] += w*v2[ i + 3 ];
double palEpj(double date)
void eraS2c(double theta, double phi, double c[3])
void eraC2s(double p[3], double *theta, double *phi)
void palFk45z(double r1950, double d1950, double bepoch, double *r2000, double *d2000)
double palEpb2d(double epb)