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

Definition at line 3934 of file t_erfa_c.c.

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

Referenced by main().

3949 {
3950  int j;
3951  double xyz[] = {2e6, 3e6, 5.244e6};
3952  double e, p, h;
3953 
3954  j = eraGc2gd(0, xyz, &e, &p, &h);
3955 
3956  viv(j, -1, "eraGc2gd", "j0", status);
3957 
3958  j = eraGc2gd(ERFA_WGS84, xyz, &e, &p, &h);
3959 
3960  viv(j, 0, "eraGc2gd", "j1", status);
3961  vvd(e, 0.98279372324732907, 1e-14, "eraGc2gd", "e1", status);
3962  vvd(p, 0.97160184819075459, 1e-14, "eraGc2gd", "p1", status);
3963  vvd(h, 331.41724614260599, 1e-8, "eraGc2gd", "h1", status);
3964 
3965  j = eraGc2gd(ERFA_GRS80, xyz, &e, &p, &h);
3966 
3967  viv(j, 0, "eraGc2gd", "j2", status);
3968  vvd(e, 0.98279372324732907, 1e-14, "eraGc2gd", "e2", status);
3969  vvd(p, 0.97160184820607853, 1e-14, "eraGc2gd", "p2", status);
3970  vvd(h, 331.41731754844348, 1e-8, "eraGc2gd", "h2", status);
3971 
3972  j = eraGc2gd(ERFA_WGS72, xyz, &e, &p, &h);
3973 
3974  viv(j, 0, "eraGc2gd", "j3", status);
3975  vvd(e, 0.98279372324732907, 1e-14, "eraGc2gd", "e3", status);
3976  vvd(p, 0.97160181811015119, 1e-14, "eraGc2gd", "p3", status);
3977  vvd(h, 333.27707261303181, 1e-8, "eraGc2gd", "h3", status);
3978 
3979  j = eraGc2gd(4, xyz, &e, &p, &h);
3980 
3981  viv(j, -1, "eraGc2gd", "j4", status);
3982 }
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
int eraGc2gd(int n, double xyz[3], double *elong, double *phi, double *height)
Definition: gc2gd.c:3
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: