1 /* test driver for the ECEF to WGS84 conversions in geoid.c
3 * This file is Copyright (c) 2010 by the GPSD project
4 * BSD terms apply: see the file COPYING in the distribution root for details.
14 int main(int argc, char **argv)
19 fprintf(stderr, "Usage: %s lat lon\n", argv[0]);
26 if (lat > 90. || lat < -90.) {
27 fprintf(stderr, " -90 <= lat=%s(%.f) <= 90 ?\n", argv[1], lat);
31 if (lon > 180. || lat < -180.) {
32 fprintf(stderr, " -180 <= lon=%s(%.f) <= 180 ?\n", argv[2], lon);
36 printf(" lat= %f lon= %f geoid correction= %f\n",
37 lat, lon, wgs84_separation(lat, lon));