-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Coadd images in grid_test have bad stellar images #107
Comments
I looked at these sources in all of the produced images from While I need to do some more digging, it also appears that there may be an inconsistency between the WCS's of the single-epoch and coadd images. While a shift can happen when the coadd is larger than the single-epoch images, that is not the case here |
This is a known issue in SWarp. The interpolation of input image pixels onto the coadd introduces artifacts near bright stars, saturation trails, and other discontinuities. The strength of the artifact depends on the choice of interpolation kernel (nearest-neighbor, bilinear, Lanczos2/3/4). SWarp documentation claims that Lanczos3 is the best compromise between preserving signal and preserving the noise spectrum for correctly sampled data. Bilinear interpolation would lead to fewer artifacts at the expense of correlating neighboring pixel values. More details are in the Swarp documentation on this page in Section 6.6 and see Figure 6 in particular. As these artifacts are only expected near bright stars, do we anticipate a problem with source selection on the detection image? |
Thanks @mcclearyj! I haven't followed up on this yet, but I found that it was happening for both bright stars and galaxies, though they were multiple factors away from saturation. The bright galaxies were a bit unusual in the sense that they were perfect circles - the light would be more spread out in realistic cases. |
Using bilinear interpolation in swarp, as suggested by @mcclearyj does solve the issue. I'm unsure about noise properties of the image, but I don't |
Great, glad to hear it. Did changing kernels solve the sub-pixel
(mis)alignment issue noted above, too? That would be more surprising.
…On Tue, Jan 10, 2023, 11:51 PM Andre Zamorano Vitorelli < ***@***.***> wrote:
Using bilinear interpolation in swarp, as suggested by @mcclearyj
<https://github.com/mcclearyj> does solve the issue. I'm unsure about
noise properties of the image, but I don't think this is a major issue.
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLXI3TEG5EXWRYCR6QZFEDWRY33NANCNFSM6AAAAAATRK3SCU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
So, I'm still unsure if this is an alignment issue with swarp, or a property of the grid. I have, however, looked into detection with different swarp configurations, and using bilinear interpolation causes problems. From a truth catalogue of 558 objects in the grid test, on coadds with LANCZOS3, source extractor finds 541 objects (not totally pure or complete). With BILINEAR, we get 2027 (!) - so, very impure (and still not complete). Worst of all, this would be terrible for data compression needs. |
Hi Andre, What exactly are you trying to do? If your main concern is an image no ugly defects for cosmetic reasons, then a lower interpolation makes sense. If you wanted an image with better noise properties, then a higher order interpolation makes sense. Those artifacts you originally noted may be ugly but will not affect source detection for the majority of real galaxies, which will be quite dim in a 300 second exposure. Also, detecting 541/558 objects (completeness = 97%) seems pretty good to me, but I don't know whether your tests were supposed to generate 100% completeness. If that is the case, maybe try upping the surface brightness of your galaxies. Regarding the high number of sources in the bilinear compression, just increase the detection and analysis thresholds in the Source Extractor configuration file. That is a change in two values and should solve your problem. Back in the day, @sweverett and I went through the exercise of testing purity vs. completeness for a range of detection and analysis thresholds. We made a spreadsheet detailing our findings to which I have just sent you an invitation. That approach would help your case. |
Bright objects in the coadd image appear stretched, and their vertical surface brightness profiles are negative.
This isn't there in the single-epoch images. The source positions in single-epoch are properly registered, so this likely isn't being introduced by coaddition in the presence of a bad WCS.
The text was updated successfully, but these errors were encountered: