-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fourier-domain BANE #206
base: main
Are you sure you want to change the base?
Fourier-domain BANE #206
Conversation
Need to include |
I'm getting an error when running that i'm not sure how to fix:
I'm not savvy enough with |
@PaulHancock what versions of Numpy and Numba are you rocking? |
Ah sorry @PaulHancock, I remembered some extra steps to get this to work. Using Numba and Numpy-FFT also requires rocket-fft. It's a little sneaky since no import is required! So the fix is a |
Thanks @AlecThomson it's working now. |
Hi @PaulHancock,
@tjgalvin and I have been experimenting with using a Fourier approach for BANE. The motivation for this was to boost the speed, especially when running on large cubes (such as those produced for polarisation products). We were also inspired by the Fourier approach used by WSClean for background/noise estimation.
I've put together a performant script that uses Numba for some very nice speed ups. This approach can blast through large cubes in short order. I've also added some options for handling 3D and 4D cubes which might be useful for regular BANE too.
The last outstanding issue is that is seems that output images are offset up and right by the size of the convolution kernel (a.k.a box size). I'll need to do some deeper digging to figure out how to fix that. In the meantime if you have any thoughts on that, please let me know!
Anyway, I'd be really keen to get your thoughts on this kind of approach :)