Skip to content

Add use_ellipse keyword to circle to_sky and to_pixel methods#652

Open
larrybradley wants to merge 6 commits intoastropy:mainfrom
larrybradley:circle-to_ellipse
Open

Add use_ellipse keyword to circle to_sky and to_pixel methods#652
larrybradley wants to merge 6 commits intoastropy:mainfrom
larrybradley:circle-to_ellipse

Conversation

@larrybradley
Copy link
Copy Markdown
Member

While I'm currently immersed in WCS transformations, here's one final (optional) improvement for circular region sky/pixel conversions. This PR adds a use_ellipse keyword to the to_pixel and to_sky methods of circular and circular annulus region classes that allows the user to specify whether to return an elliptical region instead of a circular region when converting between pixel and sky coordinates. This is useful for cases where the WCS is distorted or has different pixel scales along different axes and the circular region would be significantly distorted in pixel or sky coordinates.

Example:
The polygon -> polygon conversion represents "truth", which matches the new optional circle -> ellipse conversion.

circle

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