summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2011-08-19 15:24:02 -0400
committerdencheva <dencheva@stsci.edu>2011-08-19 15:24:02 -0400
commit8293fd263fa47cedbf7063192f6c37f127b6bc7d (patch)
tree570080c7db0ce45324037fd37fbc799917e71f74
parent1491ba51d098661c6887dfd16d47465536231a55 (diff)
downloadstwcs_hcf-8293fd263fa47cedbf7063192f6c37f127b6bc7d.tar.gz
update the values of the idctab coefficients in the SCi extension header when the coefficients are shifted in subarray mode
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13646 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r--lib/stwcs/updatewcs/makewcs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stwcs/updatewcs/makewcs.py b/lib/stwcs/updatewcs/makewcs.py
index 0946b26..e422a4a 100644
--- a/lib/stwcs/updatewcs/makewcs.py
+++ b/lib/stwcs/updatewcs/makewcs.py
@@ -57,6 +57,10 @@ class MakeWCS(object):
'CRPIX1': ext_wcs.wcs.crpix[0],
'CRPIX2': ext_wcs.wcs.crpix[1],
'IDCTAB': ext_wcs.idctab,
+ 'OCX10' : ext_wcs.idcmodel.cx[1,0],
+ 'OCX11' : ext_wcs.idcmodel.cx[1,1],
+ 'OCY10' : ext_wcs.idcmodel.cy[1,0],
+ 'OCY11' : ext_wcs.idcmodel.cy[1,1]
}
return kw2update