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

Definition at line 3 of file gc2gd.c.

References eraEform(), and eraGc2gde().

Referenced by t_gc2gd().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function: