Include signal temperature in system temperature calculation

This commit is contained in:
Lukas Klass 2020-09-05 16:10:43 +02:00
parent a5c8fdf33a
commit 33ae0553fc
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ class Heterodyne(ASensor):
# Calculate the signal and background temperatures
t_signal, t_background = self.calcTemperatures(background, signal, obstruction)
line_ind = np.where(t_signal.wl == self.__lambda_line)[0][0]
t_sys = 2 * (t_background + self.__receiver_temp)
t_sys = 2 * (t_background + self.__receiver_temp + t_signal)
# Calculate the noise bandwidth
delta_nu = t_signal.wl.to(u.Hz, equivalencies=u.spectral()) / (t_signal.wl / self.__common_conf.wl_delta() + 1)
exp_time = []
@ -172,7 +172,7 @@ class Heterodyne(ASensor):
# Calculate the signal and background temperatures
t_signal, t_background = self.calcTemperatures(background, signal, obstruction)
line_ind = np.where(t_signal.wl == self.__lambda_line)[0][0]
t_sys = 2 * (t_background + self.__receiver_temp)
t_sys = 2 * (t_background + self.__receiver_temp + t_signal)
# Calculate the noise bandwidth
delta_nu = t_signal.wl.to(u.Hz, equivalencies=u.spectral()) / (t_signal.wl / self.__common_conf.wl_delta() + 1)
sensitivity = []

View File

@ -25,7 +25,7 @@ class TestHeterodyne(TestCase):
def test_getSNR(self):
snr = self.heterodyne.getSNR(1900 * u.s)
self.assertAlmostEqual(snr.value, 10.059625717085497)
self.assertAlmostEqual(snr.value, 10.17992964320754)
def test_getExpTime(self):
exp_time = 1900 * u.s