Skip to content

Fix aperture pixel <-> sky conversions for edge cases#2286

Merged
larrybradley merged 11 commits into
astropy:mainfrom
larrybradley:fix-wcs-sky-pixel
Jun 4, 2026
Merged

Fix aperture pixel <-> sky conversions for edge cases#2286
larrybradley merged 11 commits into
astropy:mainfrom
larrybradley:fix-wcs-sky-pixel

Conversation

@larrybradley

Copy link
Copy Markdown
Member

This PR includes two related fixes to the WCS-based aperture to_sky and to_pixel conversion helpers:

  • Fixes the local WCS Jacobian computation used by the aperture to_sky and to_pixel methods so that it is well-conditioned at the celestial poles and across the RA = 0/360 degree wraparound.
  • Fixes RectangularAperture, RectangularAnnulus, and their sky counterparts to use the SVD-based ellipse to_sky and to_pixel conversions so that they round-trip correctly with a sheared WCS.

@larrybradley larrybradley merged commit eda83f4 into astropy:main Jun 4, 2026
28 checks passed
@larrybradley larrybradley deleted the fix-wcs-sky-pixel branch June 4, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant