From a02874221f43bb1e9ab184b7f396f5943cc03ae5 Mon Sep 17 00:00:00 2001 From: dencheva Date: Thu, 26 Mar 2009 21:38:27 +0000 Subject: 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 --- hstwcs/det2im.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hstwcs/det2im.py') 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 -- cgit