-
Notifications
You must be signed in to change notification settings - Fork 20
Fix PC to CD matrix computation in HSTWCS #228
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -473,7 +473,7 @@ def _idc2hdr(self): | |
|
|
||
| def pc2cd(self): | ||
| if self.wcs.has_pc(): | ||
| self.wcs.cd = self.wcs.pc * self.wcs.cdelt[1] | ||
| self.wcs.cd = self.pixel_scale_matrix | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will work for HST files because they don't have a PC matrix. However, the example in the test generates an incorrect file because it has now a CD, a PC, and CDELT all defined. I'm not sure offhand what the correct action here is. I need to look into how this is used and whether it should be deleted.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@nden Which test? |
||
|
|
||
| @deprecated_renamed_argument('accuracy', 'tolerance', '1.6.1', arg_in_kwargs=True) | ||
| def all_world2pix(self, *args, **kwargs): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use
np.e?