FACT++  1.0
int eraGd2gc ( int  n,
double  elong,
double  phi,
double  height,
double  xyz[3] 
)

Definition at line 3 of file gd2gc.c.

References eraEform(), eraGd2gce(), and eraZp().

Referenced by eraPvtob(), palGeoc(), palPvobs(), and t_gd2gc().

60 {
61  int j;
62  double a, f;
63 
64 /* Obtain reference ellipsoid parameters. */
65  j = eraEform ( n, &a, &f );
66 
67 /* If OK, transform longitude, geodetic latitude, height to x,y,z. */
68  if ( j == 0 ) {
69  j = eraGd2gce ( a, f, elong, phi, height, xyz );
70  if ( j != 0 ) j = -2;
71  }
72 
73 /* Deal with any errors. */
74  if ( j != 0 ) eraZp ( xyz );
75 
76 /* Return the status. */
77  return j;
78 
79 }
float height
Definition: HeadersGPS.h:26
void eraZp(double p[3])
Definition: zp.c:3
int eraEform(int n, double *a, double *f)
Definition: eform.c:3
int eraGd2gce(double a, double f, double elong, double phi, double height, double xyz[3])
Definition: gd2gce.c:3

+ Here is the call graph for this function:

+ Here is the caller graph for this function: