-
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
base: main
Are you sure you want to change the base?
Use PSF astrometry in tweakreg. #1578
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1578 +/- ##
===========================================
- Coverage 77.94% 28.60% -49.35%
===========================================
Files 115 112 -3
Lines 7622 7576 -46
===========================================
- Hits 5941 2167 -3774
- Misses 1681 5409 +3728 ☔ 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