Summary

Quick and dirty tool to create ADIF logs from WSPRnet spot database dumps.

Usage

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.

Example

gunzip -c wsprspots-2021-01.csv.gz | wsprspots DO5EU > wsprspots-2021-01.adi

Generated ADIF record:

``` 20210110 2338 DO5EU JO62qm -15 dB 10.140122 DP0GVN IB59ui 0.5012 13805 WSPR Y Y WSPR spot on 30 m with 500 mW (27 dBm), SNR -15 dB, drift +0 Hz/s, distance 13805 km WSPRnet spot ID 2730817432 SpotQ 16068

```

Implementation notes

The SpotQ metric is calculated according to the formula by Phil VK7JJ Perite (cf. http://wsprd.vk7jj.com/FAQSpotQ), but the results may differ slightly from the reference implementation due to differences in rounding.

The code might benefit from restructuring.