Skip to content

Fix aperture to_sky/to_pixel for flipped-parity WCS#2288

Merged
larrybradley merged 3 commits into
astropy:mainfrom
larrybradley:wcs-flipped-parity
Jun 4, 2026
Merged

Fix aperture to_sky/to_pixel for flipped-parity WCS#2288
larrybradley merged 3 commits into
astropy:mainfrom
larrybradley:wcs-flipped-parity

Conversation

@larrybradley
Copy link
Copy Markdown
Member

This PR fixes the aperture to_sky and to_pixel conversions for elliptical and rectangular apertures (and their annulus variants) so that the orientation is correct for a WCS with a flipped parity (e.g., North down, East left). Previously, such apertures were mirrored about the x-axis.

Many thanks to @djones1040 for reporting this.

Fixes #2287

@larrybradley larrybradley added this to the 3.1.0 milestone Jun 4, 2026
@larrybradley larrybradley merged commit 2573ef4 into astropy:main Jun 4, 2026
33 of 35 checks passed
@larrybradley larrybradley deleted the wcs-flipped-parity branch June 4, 2026 23:46
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.

SkyEllipticalAperture to_pixel method fails on DECam Legacy Survey Images

1 participant