From a6164f4bbcdef912eb583bd2e4038a1e8e4951da Mon Sep 17 00:00:00 2001 From: hack Date: Thu, 14 May 2015 17:20:09 +0000 Subject: Update to ACS TDD apply_tdd2idc2015 code to eliminate use of zero-point from header and to only optionally use TDD term based on its presence in the IDCTAB header. All this was done based on discussions with Vera about the calibrations. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39993 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/updatewcs/corrections.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/stwcs/updatewcs') diff --git a/lib/stwcs/updatewcs/corrections.py b/lib/stwcs/updatewcs/corrections.py index e36dcd6..d3641eb 100644 --- a/lib/stwcs/updatewcs/corrections.py +++ b/lib/stwcs/updatewcs/corrections.py @@ -131,9 +131,12 @@ class TDDCorr(object): skew_coeffs = hwcs.idcmodel.refpix['skew_coeffs'] delta_date = rday - skew_coeffs['TDD_DATE'] - hwcs.idcmodel.cx[1,1] = skew_coeffs['TDD_CXA'] + skew_coeffs['TDD_CXB']*delta_date - hwcs.idcmodel.cy[1,1] = skew_coeffs['TDD_CTA'] + skew_coeffs['TDD_CTB']*delta_date - hwcs.idcmodel.cy[1,0] = skew_coeffs['TDD_CYA'] + skew_coeffs['TDD_CYB']*delta_date + if skew_coeffs['TDD_CXB'] is not None: + hwcs.idcmodel.cx[1,1] += skew_coeffs['TDD_CXB']*delta_date + if skew_coeffs['TDD_CTB'] is not None: + hwcs.idcmodel.cy[1,1] += skew_coeffs['TDD_CTB']*delta_date + if skew_coeffs['TDD_CYB'] is not None: + hwcs.idcmodel.cy[1,0] += skew_coeffs['TDD_CYB']*delta_date #print("CX[1,1]_TDD={}, CY[1,1]_TDD={}, CY[1,0]_TDD={}".format(hwcs.idcmodel.cx[1,1],hwcs.idcmodel.cy[1,1],hwcs.idcmodel.cy[1,0])) apply_tdd2idc2015 = classmethod(apply_tdd2idc2015) -- cgit