From 3afbaeb4b74e9b8ae6f11ae9ac89640969396be2 Mon Sep 17 00:00:00 2001 From: hack Date: Thu, 17 Mar 2011 20:38:29 +0000 Subject: Fixed a problem with TDDCorr handling in the 'zero_point_corr()' classmethod in updatewcs.makewcs to allow WFC3 data (at least) process successfully. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12214 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/makewcs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'updatewcs/makewcs.py') diff --git a/updatewcs/makewcs.py b/updatewcs/makewcs.py index 4037877..ad7c508 100644 --- a/updatewcs/makewcs.py +++ b/updatewcs/makewcs.py @@ -177,7 +177,8 @@ class MakeWCS(object): alpha = hwcs.idcmodel.refpix['TDDALPHA'] beta = hwcs.idcmodel.refpix['TDDBETA'] except KeyError: - v23_corr = np.array([[0., 0.],[0.,0.]]) + alpha = 0.0 + beta = 0.0 tdd = np.array([[beta, alpha], [alpha, -beta]]) mrotp = fileutil.buildRotMatrix(2.234529)/2048. -- cgit