FACT++  1.0
void palPvobs ( double  p,
double  h,
double  stl,
double  pv[6] 
)

Definition at line 77 of file palPvobs.c.

References eraGd2gc(), ERFA_DAU, ERFA_WGS84, and PAL__SR.

Referenced by palPlantu(), palRdplan(), and t_pvobs().

77  {
78 
79 /* Local Variables: */
80  double xyz[3], z, r, s, c, v;
81 
82 /* Geodetic to geocentric conversion (WGS84 reference ellipsoid). */
83  eraGd2gc( ERFA_WGS84, 0.0, p, h, xyz );
84 
85 /* Convert from metres to AU */
86  r = xyz[ 0 ]/ERFA_DAU;
87  z = xyz[ 2 ]/ERFA_DAU;
88 
89 /* Functions of ST. */
90  s = sin( stl );
91  c = cos( stl );
92 
93 /* Speed. */
94  v = PAL__SR*r;
95 
96 /* Position. */
97  pv[ 0 ] = r*c;
98  pv[ 1 ] = r*s;
99  pv[ 2 ] = z;
100 
101 /* Velocity. */
102  pv[ 3 ] = -v*s;
103  pv[ 4 ] = v*c;
104  pv[ 5 ] = 0.0;
105 
106 }
#define ERFA_DAU
Definition: erfam.h:102
int eraGd2gc(int n, double elong, double phi, double height, double xyz[3])
Definition: gd2gc.c:3
#define ERFA_WGS84
Definition: erfam.h:140
static const double PAL__SR
Definition: palmac.h:114
double h
Definition: palObs.c:170
double p
Definition: palObs.c:169

+ Here is the call graph for this function:

+ Here is the caller graph for this function: