From f80a5c74e87712d4d3daa72b2a8999e5e6f46ef4 Mon Sep 17 00:00:00 2001 From: Tammo Jan Dijkema Date: Tue, 13 Feb 2024 09:25:31 +0100 Subject: [PATCH] Conform to common definition of n --- lofarimaging/lofarimaging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lofarimaging/lofarimaging.py b/lofarimaging/lofarimaging.py index a097354..efbcaea 100644 --- a/lofarimaging/lofarimaging.py +++ b/lofarimaging/lofarimaging.py @@ -61,11 +61,11 @@ def sky_imager(visibilities, baselines, freq, npix_l, npix_m): m = -1 + m_ix * 2 / npix_m for l_ix in range(npix_l): l = 1 - l_ix * 2 / npix_l - n = np.sqrt(1 - l * l - m * m) - 1 + n = np.sqrt(1 - l * l - m * m) img[m_ix, l_ix] = np.mean(visibilities * np.exp(-2j * np.pi * freq * (baselines[:, :, 0] * l + baselines[:, :, 1] * m + - baselines[:, :, 2] * n) / + baselines[:, :, 2] * (n - 1)) / SPEED_OF_LIGHT)) return np.real(img)