|Geoffroy GRAMAIZE 77024a09c8||5 years ago|
|.gitignore||5 years ago|
|LICENSE||5 years ago|
|Makefile||5 years ago|
|README.md||5 years ago|
|cobra.c||5 years ago|
|qth.c||5 years ago|
|qth.h||5 years ago|
|setup.py||5 years ago|
|testmain.c||5 years ago|
|testmodule.py||5 years ago|
libqth is a tiny library built to convert QTH Locators into coordinates, and back.
You can use the library by compiling it using make, or you can run the test suite by executing the following command:
The test suite return value is 0 if all tests passed, and 1 if at least 1 test failed.
Works with Python 2.x and 3.x. Build inplace with:
python setup.py build_ext --inplace
Or install using:
python setup.py install
python3 as you need.
Where the lib returns EDOM, the python module returns False, or True for the check QTH. If no error, a dict with infos is returned.
The Maidenhead QTH Locator system stores a coordinates vector in a short string of characters, arranged by alternating pairs of letters and figures.
The pair of chars are named as follow:
The precision refers to the aforementioned listing. The values are completely arbitrary, and intended for the function inner behaviour.
The most popular precision used by amateur radio operators is 2 (Field, square and subsquare).