This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import datetime | |
fnames = ['station1.adif', 'station2.adif'] | |
def parse_adif(fn): | |
raw = re.split('<eor>|<eoh>',open(fn).read() ) | |
raw.pop(0) | |
raw.pop() | |
logbook =[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% python3 adif_parse.py > data.csv | |
% R | |
> data=read.csv("data.csv", header=F, sep="") | |
> plot(data$V2, data$V3, xlab="time [hour]", ylab="No. of stations received", pch=16, col=rgb(1-data$V1, 0, data$V1, alpha=0.8), tck=1, main="7MHz USA stations") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
UDP_IP = "127.0.0.1" | |
UDP_PORT = 7355 # 4379 for WSJT-X, 7355 for Gqrx | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.bind((UDP_IP, UDP_PORT)) | |
while True: | |
data, addr = sock.recvfrom(1024) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% python3 gqrxUdp.py | |
received message: b'V\xd9\xd6\xda\x84\xdc^\xdek... | |
received message: b'}0p)&!\xdd\x17\xde\rz\x03\x00\... | |
received message: b'\xc4\xfa\x15\xff;\x032\x07\xfb... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
UDP_IP = "127.0.0.1" | |
UDP_PORT = 7355 # 4379 for WSJT-X, 7355 for Gqrx | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.bind((UDP_IP, UDP_PORT)) | |
while True: | |
data, addr = sock.recvfrom(512) | |
ldata = len(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% python3 gqrxUdp.py > test.dat | |
% gnuplot | |
gnuplot> plot "test.dat" with line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import numpy as np | |
import matplotlib.pyplot as plt | |
CHUNK = 1000 | |
NMAX = 20 | |
x = range (CHUNK) | |
y = np.zeros(CHUNK) | |
xpnt = 0 | |
n = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import numpy as np | |
import pyaudio | |
CHUNK = 1024 | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 1 | |
RATE = 44100 | |
p = pyaudio.PyAudio() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import datetime | |
fnames = ['station1.adif', 'station2.adif'] | |
def parse_adif(fn): | |
raw = re.split('<eor>|<eoh>',open(fn).read() ) | |
raw.pop(0) | |
raw.pop() | |
logbook =[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import datetime | |
fnames = ['station1.adif', 'station2.adif'] | |
def parse_adif(fn): | |
raw = re.split('<eor>|<eoh>',open(fn).read() ) | |
raw.pop(0) | |
raw.pop() | |
logbook =[] |
OlderNewer