You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WCS.all_world2pix ignores a detector-to-image (D2IM) correction present on only one axis #20577
If a WCS has a detector-to-image lookup table on only one axis (det2im1 set, det2im2 left as None), all_pix2world applies the correction but all_world2pix does not. The inverse is off by the full size of the correction, and no NoConvergence is raised. A one-axis D2IM table is a normal FITS distortion setup: it is what you get from a header that has only D2IMDIS1, as in the HST/ACS column-width correction (AXISCORR = 1).
Thanks for the comment, and sorry for the late reply. My statement linking this configuration to HST/ACS was incorrect.
The example sets only det2im1: all_pix2world applies the correction, but all_world2pix skips it because has_distortion returns False. Is a single-axis D2IM configuration intended to be supported? If so, this seems to be a forward/inverse inconsistency. If not, would rejecting that configuration be appropriate?
Activity
mcara commentedon Oct 16, 2026
This is not an issue for HST images as there are no images that have either only D2IMDIS1 or D2IMDIS2. How have you encountered this error?
ChenziqiAdam commentedon Oct 18, 2026
Thanks for the comment, and sorry for the late reply. My statement linking this configuration to HST/ACS was incorrect.
The example sets only
det2im1:all_pix2worldapplies the correction, butall_world2pixskips it becausehas_distortionreturnsFalse. Is a single-axis D2IM configuration intended to be supported? If so, this seems to be a forward/inverse inconsistency. If not, would rejecting that configuration be appropriate?mcara commentedon Oct 18, 2026
That's a theoretical example but I am curious how did you encounter it in real life? What data are you working on?
ChenziqiAdam commentedon Oct 18, 2026
Actually it is not a real example. I was just debugging my code and tried different settings.
pllim commentedon Oct 19, 2026
What we really want to know is how this affects your real work. So what code were you debugging and how was that relevant to this issue?