FACT++  1.0
static void t_gd2gc ( int *  status)
static

Definition at line 4013 of file t_erfa_c.c.

References eraGd2gc(), ERFA_GRS80, ERFA_WGS72, ERFA_WGS84, viv(), and vvd().

Referenced by main().

4028 {
4029  int j;
4030  double e = 3.1, p = -0.5, h = 2500.0;
4031  double xyz[3];
4032 
4033  j = eraGd2gc(0, e, p, h, xyz);
4034 
4035  viv(j, -1, "eraGd2gc", "j0", status);
4036 
4037  j = eraGd2gc(ERFA_WGS84, e, p, h, xyz);
4038 
4039  viv(j, 0, "eraGd2gc", "j1", status);
4040  vvd(xyz[0], -5599000.5577049947, 1e-7, "eraGd2gc", "0/1", status);
4041  vvd(xyz[1], 233011.67223479203, 1e-7, "eraGd2gc", "1/1", status);
4042  vvd(xyz[2], -3040909.4706983363, 1e-7, "eraGd2gc", "2/1", status);
4043 
4044  j = eraGd2gc(ERFA_GRS80, e, p, h, xyz);
4045 
4046  viv(j, 0, "eraGd2gc", "j2", status);
4047  vvd(xyz[0], -5599000.5577260984, 1e-7, "eraGd2gc", "0/2", status);
4048  vvd(xyz[1], 233011.6722356703, 1e-7, "eraGd2gc", "1/2", status);
4049  vvd(xyz[2], -3040909.4706095476, 1e-7, "eraGd2gc", "2/2", status);
4050 
4051  j = eraGd2gc(ERFA_WGS72, e, p, h, xyz);
4052 
4053  viv(j, 0, "eraGd2gc", "j3", status);
4054  vvd(xyz[0], -5598998.7626301490, 1e-7, "eraGd2gc", "0/3", status);
4055  vvd(xyz[1], 233011.5975297822, 1e-7, "eraGd2gc", "1/3", status);
4056  vvd(xyz[2], -3040908.6861467111, 1e-7, "eraGd2gc", "2/3", status);
4057 
4058  j = eraGd2gc(4, e, p, h, xyz);
4059 
4060  viv(j, -1, "eraGd2gc", "j4", status);
4061 }
int eraGd2gc(int n, double elong, double phi, double height, double xyz[3])
Definition: gd2gc.c:3
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: t_erfa_c.c:58
#define ERFA_WGS84
Definition: erfam.h:140
#define ERFA_GRS80
Definition: erfam.h:141
#define ERFA_WGS72
Definition: erfam.h:142
static void viv(int ival, int ivalok, const char *func, const char *test, int *status)
Definition: t_erfa_c.c:24

+ Here is the call graph for this function:

+ Here is the caller graph for this function: