From c77b1370386142b1f9f6051d22429230ed52fafc Mon Sep 17 00:00:00 2001 From: "Rune B. Broberg" Date: Thu, 26 Sep 2019 23:01:19 +0200 Subject: [PATCH] - Increased bin count for TDR for possible increased accuracy. --- NanoVNASaver/NanoVNASaver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NanoVNASaver/NanoVNASaver.py b/NanoVNASaver/NanoVNASaver.py index 58f2361..7e9b5cf 100644 --- a/NanoVNASaver/NanoVNASaver.py +++ b/NanoVNASaver/NanoVNASaver.py @@ -1467,9 +1467,9 @@ class TDRWindow(QtWidgets.QWidget): windowed_s11 = window * s11 - self.td = np.abs(np.fft.ifft(windowed_s11, 2**14)) + self.td = np.abs(np.fft.ifft(windowed_s11, 2**16)) - time_axis = np.linspace(0, 1/step_size, 2**14) + time_axis = np.linspace(0, 1/step_size, 2**16) self.distance_axis = time_axis * v * c # peak = np.max(td) # We should check that this is an actual *peak*, and not just a vague maximum