The gang—the 12, 11, and 8 year-old kids whose dad I am—and I attended Simon Willison's Datasette office hours on Friday to talk about our ham radio Datasette projects and to start a bit of debug on a Datasette geocoding enrichment we're working on.
During our meeting, Simon asked what the longest QSO we'd made with the radio was, and mentioned that the datasette-haversine plugin can be used to calculate the distance between two locations on the Earth. Coincidentally, I'd already been looking into this in relation to the SKCC 1,000 Watts per Mile award. Consquently, I set out to apply the Haversine to our QSO logbook in Datasette to find the best set of QSOs to send in with our award application.
KO6BTY and I did an initial glance on Friday after speaking with Simon. Here's the query we used:
select rowid, id, tx_lng, tx_lat, rx_lng, rx_lat, haversine(tx_lat, tx_lng, rx_lat, rx_lng, 'mi') as haversine, floor((((haversine(tx_lat, tx_lng, rx_lat, rx_lng, 'mi'))/0.75)/500)-1) as endorsement, timestamp, dB, frequency, Spotter, Country, State, County, City, QSL_Sent, QSL_Rx, QSL_link, QSL_rx_link, tx_rst from rm_rnb_history_pres where (dB > 99) and (rx_lat > -90 and rx_lat < 90) and (tx_lat > -90 and tx_lat < 90) and (timestamp > '2023-05-25') and (timestamp < '2023-06-20') and (haversine/0.75 > 1000) and (haversine/0.75 < 1500) order by haversine desc
Where the distance returned by the haversine function is divided by 0.75 Watts (the power output by the Flying Rockmite) and then divided by 1000 miles.
For the award itself, we immediately get the following possibilities
But what I'd really like to know, given that there are different levels of the award:
is which QSOs over the summer when we were forced into straight key mode for a few weeks while out with the 750 mW Flying Rockmite qualify for each level of endorsment?
Comments
Post a Comment
Please leave your comments on this topic: