FACT++  1.0
void palGeoc ( double  p,
double  h,
double *  r,
double *  z 
)

Definition at line 75 of file palGeoc.c.

References eraGd2gc(), and ERFA_WGS84.

Referenced by t_geoc().

75  {
76  double xyz[3];
77  const double elong = 0.0; /* Use zero longitude */
78  const double AU = 1.49597870E11;
79  /* WGS84 looks to be the closest match */
80  eraGd2gc( ERFA_WGS84, elong, p, h, xyz );
81  *r = xyz[0] / (AU * cos(elong) );
82  *z = xyz[2] / AU;
83 }
int eraGd2gc(int n, double elong, double phi, double height, double xyz[3])
Definition: gd2gc.c:3
#define ERFA_WGS84
Definition: erfam.h:140
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: