Skip to content

Commit

Permalink
Conform to common definition of n
Browse files Browse the repository at this point in the history
  • Loading branch information
tammojan committed Feb 13, 2024
1 parent da3b1a3 commit f80a5c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lofarimaging/lofarimaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f80a5c7

Please sign in to comment.