-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bright sources artefacts from diff kernel error #215
Comments
Double precision or rescaling of the central region did not solve the problem. I am convinced the problem comes from a wrapping or a small contraction/dilation of the Fourier plane. |
Where would these dilations come from? |
fft transform shapes/gridding. I haven't found anything yet playing with the fft code, so that might be wrong. |
In the example above, the source is clearly truncated at the box. This can easily cause ringing as observed and would be independent of the correctness of the PSF diff kernel. Can you manually increase the box size to see if this has any effect? There's one more test I like to make when everything becomes unclear. Initialize the source by hand with the correct deconvolved image as morphology. That means the solution is already at the maximum likelihood points. Check if the fitter computes non-zero gradients, i.e. it wants to walk away from it. If so, at least the backward path is biased. |
Is the original galaxy image from Galsim band-limited before it gets convolved? |
Yes, because I convolve it with a small gaussian kernel to make sure it is. |
I expanded this kernel from 1 pixel (which I thought was enough) to 1.5 pixels and it seems to do the trick-not*. |
I'm still suspicious though. |
This seems to suggest that undersampling of the model is responsible. If so, we need to increase the width of the model PSF to ensure proper sampling, or (probably better) ensure that no gradient update forces the model to exceed the band-limit set by the model PSF. |
closed in favor #222 |
Tests on galsim simulations revealed ring-shaped artefacts in the residuals for bright sources.
The rings are not caused by monotonicity or any of the constraints, neither are they remnants from initialisation.
The suspected cause is an error introduced by the diff_kernel. The diff kernel indeed introduces very small errors to the PSF modeling ~10^-8%, which is small compared to the amplitude of the observed residuals:
The text was updated successfully, but these errors were encountered: