FACT++  1.0
void palMappa ( double  eq,
double  date,
double  amprms[21] 
)

Definition at line 94 of file palMappa.c.

References eraEpj(), eraPn(), i, PAL__CR, PAL__MJD0, palEvp(), and palPrenut().

Referenced by PointingModel::CalcPointingPos(), palAmp(), palMap(), t_ampqk(), t_mappa(), and t_mapqkz().

94  {
95 
96 /* Local constants */
97 
98 /* Gravitational radius of the Sun x 2 (2*mu/c**2, AU) */
99  const double GR2 = 2.0 * 9.87063e-9;
100 
101 /* Local Variables; */
102  int i;
103  double ebd[ 3 ], ehd[ 3 ], eh[ 3 ], e, vn[ 3 ], vm;
104 
105 /* Initialise so that unsused values are returned holding zero */
106  memset( amprms, 0, 21*sizeof( *amprms ) );
107 
108 /* Time interval for proper motion correction. */
109  amprms[ 0 ] = eraEpj( PAL__MJD0, date ) - eq;
110 
111 /* Get Earth barycentric and heliocentric position and velocity. */
112  palEvp( date, eq, ebd, &amprms[ 1 ], ehd, eh );
113 
114 /* Heliocentric direction of Earth (normalized) and modulus. */
115  eraPn( eh, &e, &amprms[ 4 ] );
116 
117 /* Light deflection parameter */
118  amprms[7] = GR2 / e;
119 
120 /* Aberration parameters. */
121  for( i = 0; i < 3; i++ ) {
122  amprms[ i + 8 ] = ebd[ i ]*PAL__CR;
123  }
124  eraPn( &amprms[8], &vm, vn );
125  amprms[ 11 ] = sqrt( 1.0 - vm*vm );
126 
127 /* NPB matrix. */
128  palPrenut( eq, date, (double(*)[ 3 ]) &amprms[ 12 ] );
129 }
void palEvp(double date, double deqx, double dvb[3], double dpb[3], double dvh[3], double dph[3])
Definition: palEvp.c:81
static const double PAL__CR
Definition: palmac.h:99
void palPrenut(double epoch, double date, double rmatpn[3][3])
Definition: palPrenut.c:70
int i
Definition: db_dim_client.c:21
static const double PAL__MJD0
Definition: palmac.h:96
void eraPn(double p[3], double *r, double u[3])
Definition: pn.c:3
double eraEpj(double dj1, double dj2)
Definition: epj.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: