Quick and dirty tool to create ADIF logs from WSPRnet spot database dumps.
This tool reads a WSPRnet spot database dump in CSV format from standard input, filters the spots according to the reporter call sign provided as an argument, and writes an ADIF log to standard output.
It generates one record per transmitter call sign, choosing the spot with the best SpotQ metric.
gunzip -c wsprspots-2021-01.csv.gz | wsprspots DO5EU > wsprspots-2021-01.adi
Generated ADIF record:
```
```
The SpotQ metric is calculated according to the formula by Phil VK7JJ Perite (cf. http://wsprd.vk7jj.com/ → FAQ → SpotQ), but the results may differ slightly from the reference implementation due to differences in rounding.
The code might benefit from restructuring.