From 43ec25f51d7d758d82b086b88154319b5ffb592d Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Mon, 12 Oct 2020 14:22:34 +0200 Subject: [PATCH] Bugfix: Mirror one sideband before summing --- esbo_etc/classes/sensor/Heterodyne.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esbo_etc/classes/sensor/Heterodyne.py b/esbo_etc/classes/sensor/Heterodyne.py index d309800..db9d3ed 100644 --- a/esbo_etc/classes/sensor/Heterodyne.py +++ b/esbo_etc/classes/sensor/Heterodyne.py @@ -324,8 +324,10 @@ class Heterodyne(ASensor): t_signal = t_signal * 2 t_background = t_background * 2 else: - t_signal = t_signal + t_signal.rebin(2 * self.__lambda_local_oscillator - t_signal.wl) - t_background = t_background + t_background.rebin(2 * self.__lambda_local_oscillator - t_background.wl) + t_signal = SpectralQty(t_signal.wl, t_signal.qty + t_signal.rebin( + 2 * self.__lambda_local_oscillator - t_signal.wl).qty) + t_background = SpectralQty(t_background.wl, t_background.qty + t_background.rebin( + 2 * self.__lambda_local_oscillator - t_background.wl).qty) logger.debug("Spectral signal temperature") logger.debug(t_signal)