From 60bed196174249ac28b0e2d5428d5a2179d9f95a Mon Sep 17 00:00:00 2001 From: hack Date: Fri, 29 Apr 2011 15:50:32 +0000 Subject: A couple of small updates to STWCS.UPDATEWCS which avoid problems when working with NICMOS and WFPC2 data; specifically, avoiding applying TDD correction to non-ACS data and updating the header with the UPWCSVER keyword when no HISTORY keywords are present. The changes were tested manually against ACS/WFC data (with and without TDD corrections), WFPC2 image, and a NICMOS image. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12684 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/makewcs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'updatewcs/makewcs.py') diff --git a/updatewcs/makewcs.py b/updatewcs/makewcs.py index ad7c508..f23da7e 100644 --- a/updatewcs/makewcs.py +++ b/updatewcs/makewcs.py @@ -179,6 +179,9 @@ class MakeWCS(object): except KeyError: alpha = 0.0 beta = 0.0 + v23_corr = np.array([[0.],[0.]]) + logger.debug("\n\tTDD Zero point correction for chip %s defaulted to: %s" % (hwcs.chip, v23_corr)) + return v23_corr tdd = np.array([[beta, alpha], [alpha, -beta]]) mrotp = fileutil.buildRotMatrix(2.234529)/2048. -- cgit