Skip to content

Commit

Permalink
simplify delta calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin2 committed Jun 10, 2024
1 parent 395abf8 commit ff2913f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyvisgen/gridding/gridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ def grid_data(uv_data, freq_data, conf):
N = conf["grid_size"] # image size
fov = conf["grid_fov"] * np.pi / (3600 * 180)

delta_l = fov / N
delta = (N * delta_l) ** (-1)
delta = 1 / fov

# bins are shifted by delta/2 so that maximum in uv space matches maximum
# in numpy fft
Expand Down

0 comments on commit ff2913f

Please sign in to comment.