From 984606f6e0db4603c6b4b38a31e0417154b2aaad Mon Sep 17 00:00:00 2001 From: "Rune B. Broberg" Date: Thu, 12 Sep 2019 11:09:14 +0200 Subject: [PATCH] Calibration standards should all be referenced to 50 ohm --- NanoVNASaver/Calibration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NanoVNASaver/Calibration.py b/NanoVNASaver/Calibration.py index 8c6c344..a74fa26 100644 --- a/NanoVNASaver/Calibration.py +++ b/NanoVNASaver/Calibration.py @@ -307,7 +307,7 @@ class Calibration: self.shortL1 * f + self.shortL2 * f**2 + self.shortL3 * f**3) - gammaShort = (Zsp - 1) / (Zsp + 1) + gammaShort = ((Zsp/50) - 1) / ((Zsp/50) + 1) g1 = gammaShort * math.exp(2*math.pi*f*self.shortLength) if self.useIdealOpen: @@ -316,7 +316,7 @@ class Calibration: divisor = (2 * pi * f * (self.openC0 + self.openC1 * f + self.openC2 * f**2 + self.openC3 * f**3)) if divisor != 0: Zop = np.complex(0, -1) / divisor - gammaOpen = (Zop - 1) / (Zop + 1) + gammaOpen = ((Zop/50) - 1) / ((Zop/50) + 1) g2 = gammaOpen * math.exp(2 * math.pi * f * self.openLength) else: g2 = self.openIdeal