pico-radio/test/fft.py

13 lines
187 B
Python
Raw Normal View History

2025-02-14 14:02:16 +00:00
#!/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
data = []
with open("test", "rb") as f:
data = np.fromfile(f, dtype=np.int16)
plt.psd(data, Fs=1e6)
plt.show()