From 05439c51eb88fd5f38705bd811466565c60c9894 Mon Sep 17 00:00:00 2001 From: hack Date: Wed, 26 May 2010 17:49:27 +0000 Subject: The default value for 'skew_coeffs' in STWCS.distortion.mutil needed to be reset to None so that logic in STWCS.updatewcs.corrections can recognize that there are no TDD coefficients available from the IDCTAB for use. The default set of skew_coeffs in STWCS.updatewcs needed to be updated to include the TDDORDER key and value with a default value of 1 as appropriate for the hard-coded default coeffs. These changes were needed to allow betadrizzle/updatewcs to work correctly with IDCTAB files which do not yet have the TDD coeffs in the PRIMARY header. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9438 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/corrections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updatewcs/corrections.py') diff --git a/updatewcs/corrections.py b/updatewcs/corrections.py index eac4b6e..861b8ab 100644 --- a/updatewcs/corrections.py +++ b/updatewcs/corrections.py @@ -95,7 +95,7 @@ class TDDCorr(object): # Using default pre-SM4 coefficients skew_coeffs = {'TDD_A':[0.095,0.090/2.5], 'TDD_B':[-0.029,-0.030/2.5], - 'TDD_DATE':2004.5} + 'TDD_DATE':2004.5,'TDDORDER':1} if not isinstance(ext_wcs.date_obs,float): year,month,day = ext_wcs.date_obs.split('-') -- cgit