summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2010-11-19 15:47:44 -0500
committerdencheva <dencheva@stsci.edu>2010-11-19 15:47:44 -0500
commit4313b5ae94a64940805aa93f74909e18e456feb6 (patch)
tree2fa00c256797fc4707ab03458be1237f3a236380
parent8a108d00213537e41b9f975a743921121bba4fe4 (diff)
downloadstwcs_hcf-4313b5ae94a64940805aa93f74909e18e456feb6.tar.gz
Added a check for instrument/detector kw when reading tdd coeffs, so that it does not print out a wrong warning to the screen.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11211 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r--distortion/mutil.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/distortion/mutil.py b/distortion/mutil.py
index ba6df8f..b5281e5 100644
--- a/distortion/mutil.py
+++ b/distortion/mutil.py
@@ -76,7 +76,11 @@ def readIDCtab (tabname, chip=1, date=None, direction='forward',
detector = 1
# First, read in TDD coeffs if present
phdr = ftab['PRIMARY'].header
- skew_coeffs = read_tdd_coeffs(phdr)
+ instrument = phdr['INSTRUME']
+ if instrument == 'ACS' and detector == 'WFC':
+ skew_coeffs = read_tdd_coeffs(phdr)
+ else:
+ skew_coeffs = None
# Set default filters for SBC
if detector == 'SBC':