decimation working

This commit is contained in:
2025-06-11 08:36:31 -05:00
parent 316ae900ae
commit d60c55f292
31 changed files with 17172 additions and 12834 deletions

View File

@@ -25,7 +25,7 @@ def main():
headers = []
offset = 0
file = 'test1.bin'
file = 'test0.bin'
fid = open(file, 'rb')
# Find header, recording buffer could have wrapped depending on data rate and how long we ran for
@@ -86,21 +86,21 @@ def main():
vmin = -60
vmax = 0
plt.figure()
plt.plot(np.diff(cpi_times))
plt.plot(np.diff(pps_frac))
# plt.ylim([0, .04])
# plt.figure()
# plt.plot(np.diff(cpi_times))
# plt.plot(np.diff(pps_frac))
# # plt.ylim([0, .04])
# plt.figure()
# plt.plot(iq.T.real, '.-')
# plt.plot(iq.T.imag, '--.')
# plt.grid()
#
# plt.figure()
# plt.imshow(db20n(iq), aspect='auto', interpolation='nearest', vmin=vmin, vmax=vmax)
# plt.ylabel('Pulse Count')
# plt.xlabel('Sample Count')
# plt.colorbar()
plt.figure()
plt.plot(iq.T.real, '.-')
plt.plot(iq.T.imag, '--.')
plt.grid()
plt.figure()
plt.imshow(db20n(iq), aspect='auto', interpolation='nearest', vmin=vmin, vmax=vmax)
plt.ylabel('Pulse Count')
plt.xlabel('Sample Count')
plt.colorbar()
plt.show()