Skip to content

Account for changes to PC and CD matrix when unwrapping to a FITS WCS that has been rebinned. #862

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wtbarnes
Copy link
Member

This addresses part of the refactor of sunpy.map.GenericMap on top of ndcube.NDCube. See Map-NDCube Refactor (view) for more details.

This adds a correction factor for rebinning to the CD matrix in the resulting FITS WCS upon unwrapping. Additionally, this adds the correction to the non-diagonal PC matrix elements consistent with what is done in sunpy.map.GenericMap.superpixel, i.e. https://github.com/sunpy/sunpy/blob/1a2f071811327e03c0c92914f30bbbdadebd02fb/sunpy/map/mapbase.py#L2293-L2295.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant