Miscellaneous Nemo Library API example programs


testSzpila.c: Program can be used to confirm successful library compilation and creation of the compile/build library file, as well as the ability to perform static linking of an application program with the library. [source], [Linux executable]. For usage and functionality of every program presented on this page, see the commentary in the program source file preamble.


ellipsoidTriangle.c: Similar to the above, this program additionally confirms the ability to include compile-time utilities in the scullions directory of the library distribution package. [source], [Linux executable].


uniSphericalDeltas.c: Last in the triplet of "smoke-test" programs, this one lists the average and maximum positional difference that occurs when location coordinates are mapped and un‑mapped between 64-bit coordinate representation and 8-byte and 4-byte UniSpherical coordinate format using 10 million random planetary point locations. [source], [Linux executable].


r8bToAscii.c: Program transforming UniSpherical binary coordinates into text format. Text coordinates can be UniSpherical hexadecimal numbers (in effect just increasing the row volume from 8 to 17 characters per point, but making it easier to manipulate data in a simple ascii text editor); or the coordinates might be converted from UniSpherical to φ and λ in decimal degrees. Number of fractional digits is selectable via a comand‑line option, to correspond to the ground resolution along the meridian to either 10 meters of one millimeter.

The program makes two assumptions that hold true for all UniSpherical data distributed with this collection of example programs: The binary coordinates are 64-bit unsigned integers of little‑endian variety, and that coordinates are on a near-conformal sphere related to a Wgs84 ellipsoid. If either assumption is wrong, minor source code modification will be required. [source], [Linux executable].