-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use PSF astrometry in tweakreg. #1578
Use PSF astrometry in tweakreg. #1578
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1578 +/- ##
=======================================
Coverage 77.93% 77.93%
=======================================
Files 115 115
Lines 7624 7624
=======================================
Hits 5942 5942
Misses 1682 1682 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I haven't checked it yet, but don't we have to update the docs too?
Thanks, yes, I should update this line of the docs. romancal/docs/roman/tweakreg/README.rst Line 23 in f538ba0
I'll do that this evening and merge. |
This PR fixes two issues with tweakreg's accuracy. The first is that we at some point unintentionally switched from using the PSF astrometry (x_psf, y_psf) to the segment centroid astrometry (xcentroid, ycentroid) in tweakreg. This leads to much worse astrometric accuracy. The second is that I had left in a fudge factor in the tweakreg regression test, so that we did not notice when this occurred. This PR switches back to using the PSF astrometry and removes the fudge factor.
Regression tests will fail due to changes in the astrometry. Regression tests are here:
https://github.com/spacetelescope/RegressionTests/actions/runs/12713885744
Three failures in steps that use tweakreg. Note that in these cases the median absolute errors decrease and the shifts become closer to zero arcseconds (when the simulated WCS is correct) or to 1" in dec (when the simulated WCS is intentionally offset by 1 arcsecond in ra / dec, in the tweakreg regression test).
We will need to okify these regression differences when merging.
Tasks
24Q4_B15
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)docs/
pageokify_regtests
to update the truth files