Skip to content
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

DM-10765: Replace existing WCS classes with SkyWcs #70

Merged
merged 4 commits into from Feb 16, 2018
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Dec 12, 2017

No description provided.

@@ -87,7 +88,8 @@ def testCcdKey(self):
def testWcsPostIsr(self):
"""Test the wcs of postISRCCD products

The postISRCCD wcs should be the same as the raw wcs with the
The postISRCCD wcs should be the same as the raw wcs
after adding camera distortion, and after with the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo "after with"

for kw in md.paramNames():
if re.match(r'PV\d_\d', kw):
md.remove(kw)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you comment on this change in the commit message?

Copy link
Contributor Author

@r-owen r-owen Jan 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is an excellent point. I removed it because the new SkyWcs class handles TPV natively, but I'm not actually sure if that's why these were removed. Do you know? If not I'll ask around. Meanwhile I have made it a separate commit so it's easier to spot and easier to ditch if unwanted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the TPV keywords broke afw. @RobertLuptonTheGood or @hsinfang will know.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Paul...I asked for a comment because I haven’t got a clue!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We stripped the TPV keywords because wcslib would (correctly) interpret them, but we could not write TPV or easily convert to SIP, and the feeling was that breaking round-tripping in that way was undesirable (DM-3793). There was also an issue where TPV headers would leak from instcals into calexps via HDU 0, and the most expedient way to stop that was by deleting all TPV headers (DM-8042). There is a nominal test for this in testGetInstcal.py, but it might be worth checking a calexp for any inconsistencies.

@r-owen r-owen force-pushed the tickets/DM-10765 branch 3 times, most recently from 1c1efe5 to ff517d8 Compare January 9, 2018 01:59
because the new WCS class handles TPV natively
since makeSkyWcs strips them.

Also stop stripping LTV1, LTV2 as we now ignore them,
and stop testing that LTV1, LTV2 are stripped.
instead of the deprecated lsst.afw.image.readMetadata
@r-owen r-owen merged commit b554ce4 into master Feb 16, 2018
@ktlim ktlim deleted the tickets/DM-10765 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants