Use a raised Hann window during resampling to limit Gibbs effect
This limits the Gibbs artefacts a bit. A better approach would be to calculate the undersampled beam on a slightly padded grid and use an (unraised) Hann window, which goes to hard zeros at the edges and therefore eliminates the ringing altogether. That requires a bit of work.