bug fix regarding subpixel localization. Added stacking and drizzle#21
bug fix regarding subpixel localization. Added stacking and drizzle#21RainerHeintzmann wants to merge 10 commits intoJuliaAstro:mainfrom
Conversation
… stacking routines.
|
Thanks for the nice looking PR! I haven't looked substantially at the algorithm code yet but generally I like the idea of this. I think |
cgarling
left a comment
There was a problem hiding this comment.
some comments on align_frame
|
Ah I see. Great to know. Are these the general rules for version larger than 1 or just special to the Language? They don't apply for versions below 1, I guess.
________________________________
Von: Chris Garling ***@***.***>
Gesendet: Dienstag, Februar 24, 2026 1:22:09 PM
An: JuliaAstro/Astroalign.jl ***@***.***>
Cc: Rainer Heintzmann ***@***.***>; Author ***@***.***>
Betreff: Re: [JuliaAstro/Astroalign.jl] bug fix regarding subpixel localization. Added stacking and drizzle (PR #21)
@cgarling commented on this pull request.
________________________________
In Project.toml<#21 (comment)>:
@@ -22,4 +24,6 @@ ImageTransformations = "0.10"
NearestNeighbors = "0.4"
PSFModels = "0.8.2"
Photometry = "0.9"
-julia = "1.10"
+Statistics = "1.11.1"
+StatsBase = "0.34.10"
+julia = "1.10, 1.11, 1.12"
Listing out the versions here is unnecessary as simply setting Julia = 1.10 will allow all Julia versions >=1.10 and <2.0.
—
Reply to this email directly, view it on GitHub<#21 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABZVV22JK674SJLINVZ3O6T4NQ67DAVCNFSM6AAAAACV5J4PPSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTQNBXGQ3DAMRQGU>.
You are receiving this because you authored the thread.
|
Yeah versions >1.0 have different rules than <1.0. Some guidelines are given here. |
|
Now there is an example with real measured data (500 Mb to download). Do you want to see, if the script runs fine for you? Under Linux you may be running into issues with View5D, but it should also run without it. |
I now added more documentation and examples and revised the parameters. As for the role of I did now many updates to the PR. Can you have another look at it? Thanks again for the super-quick replay. Do you think this could be something for the 2026 JuliaCon? P.S.: Somehow your original tests are broken now, but it worked rather well on real stars. I think in the tests there was an abiguity and it aligned the wrong triangle. I started changing that now, but did not really finish it. |
|
Thanks for the updates! Yes we can deal with the documentation more later. Several of the test failures are cases where It looks like you allowed edits to this PR by maintainers so I may make a few small changes directly to expedite the review. Finally, @icweaver should comment on this before merging as he is the primary author of this package. I'm generally in favor of this and we can clean things up further in future work. |
|
Hi @RainerHeintzmann, thank you for this really nice PR, and thanks Chris for your in depth review! I'll try to do a pass as well by the end of today so that we can get things merged. I think this is going to be a really nice addition to this package |
I tried this package on some real data and found out that had serious problems regarding alignment precision. This could be traced back to not using the subpixel locations of the fitting results. This is now fixed.
Since I was looking for a stacking routine, I added code to allow stacking frames. This is either achieved via classical backward interpolation (
warp) as before, or via a new forward (nearest-neighbor) interpolation schemestack_many_drizzle(), which relies on slightly imprecise star tracking such that the field drifts over the pixels effectively supersampling your image. Drizzle does not interpolate. This also allows to remove hot pixel artefacts.