Process: FT8 file from WSJT-X

import re
import maidenhead as mh

fl = "C:\\Users\\danielsullivan\\AppData\\Local\\WSJT-X\\ALL.TXT"
fw = "callsign_locations.txt"

lines = None

with open(fl, "r") as rf:
lines = rf.readlines()

with open(fw, "w") as wf:
wf.write("CALLSIGN")
wf.write('\t')
wf.write("DATE")
wf.write('\t')
wf.write("FREQ")
wf.write('\t')
wf.write("SNR")
wf.write('\t')
wf.write("DRIFT_SECONDS")
wf.write('\t')
wf.write("GRID")
wf.write('\t')
wf.write("LAT")
wf.write('\t')
wf.write("LNG")
wf.write('\n')
for ln in lines:
utcd = ln[0:17].strip()

pts = utcd.split('_')

yr = pts[0][0:2]
mn = pts[0][2:4]
dy = pts[0][4:6]

dts = mn + "/" + dy + "/" + yr

frq = ln[17:24].strip()
snr = ln[30:38].strip()
timedrift = ln[37:43].strip()
msg = ln[47:].strip()
grd = ""
lat = None
lng = None
mparts = msg.split(' ')
if len(mparts) == 3:
chk = mparts[2].strip()
if len(chk) == 4:
if chk[0].isalpha() and \
chk[1].isalpha() and \
chk[2].isdigit() and \
chk[3].isdigit():
print(chk)
ll = mh.to_location(chk)
grd = chk
lat = ll[0]
lng = ll[1]
wf.write(mparts[1])
wf.write('\t')
wf.write(dts)
wf.write('\t')
wf.write(frq)
wf.write('\t')
wf.write(snr)
wf.write('\t')
wf.write(timedrift)
wf.write('\t')
wf.write(grd)
wf.write('\t')
wf.write(str(lat))
wf.write('\t')
wf.write(str(lng))
wf.write('\n')

GOOD MORNING, FUCK YOU …

MP3: https://planetarystatusreport.com/mp3/20241011_GOOD_MORNING_FUCK_YOU.mp3

Donate: https://www.paypal.com/paypalme/doctorfreckles

GOOD MORNING!

I love you …
Fuck you …
Good morning.

Vibrate with my salty balls as the cum-spice powders are harvested, and the dying dog demons lurch onward … towards what? … IDGAF

You are the spell binder, the coyote rustler …

Your spider egg palace is made of joy …

Good morning … fuck you.

Good morning …

Half of Florida was destroyed last night …

good morning, how ya doing?

Most of your wealth will be useless soon …

gm … do you have some BITCOIN? – that’s gonna help in the burning bush …

I love you.

fuck you

gm

I love you …

FUCK YOU …

GOOD MORNING SKIZZ MASTER COOPS …

You can take your attitude and 50 bucks and go to safeway and put a down payment on a steak …

good morning …

good day Sir

you are a good guy

I love you …

Sharing politics: https://planetarystatusreport.com/?p=13623

TYPE AWESOME: https://planetarystatusreport.com/?p=13621