summaryrefslogtreecommitdiff
path: root/hstwcs/det2im.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2009-03-26 17:38:27 -0400
committerdencheva <dencheva@stsci.edu>2009-03-26 17:38:27 -0400
commita02874221f43bb1e9ab184b7f396f5943cc03ae5 (patch)
tree30e56b5db4a85c03110b2cf494ebd01527a3da18 /hstwcs/det2im.py
parentf4f7b6033617c1943e2348820f9698960259e44b (diff)
downloadstwcs_hcf-a02874221f43bb1e9ab184b7f396f5943cc03ae5.tar.gz
Added minerr parameter toHSTWCS and D@IMERR kw to primary header. This allows the detector to image correction to be switched off on the command line
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7820 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/det2im.py')
-rw-r--r--hstwcs/det2im.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hstwcs/det2im.py b/hstwcs/det2im.py
index 7ec9fc2..164eff6 100644
--- a/hstwcs/det2im.py
+++ b/hstwcs/det2im.py
@@ -14,10 +14,11 @@ class DET2IMCorr(object):
d2imfile = fobj[0].header['D2IMFILE']
axiscorr = cls.getAxisCorr(d2imfile)
+ d2imerr = pyfits.getdata(d2imfile, ext=1).max()
if axiscorr == None:
new_kw = {}
else:
- new_kw = {'D2IMEXT': d2imfile, 'AXISCORR': axiscorr}
+ new_kw = {'D2IMEXT': d2imfile, 'AXISCORR': axiscorr, 'D2IMERR': d2imerr}
cls.applyDet2ImCorr(fobj, axiscorr)
return new_kw