decimation working
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user