summaryrefslogtreecommitdiff
path: root/hstwcs/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'hstwcs/__init__.py')
-rw-r--r--hstwcs/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/hstwcs/__init__.py b/hstwcs/__init__.py
index 8b83e1e..a843888 100644
--- a/hstwcs/__init__.py
+++ b/hstwcs/__init__.py
@@ -84,7 +84,8 @@ def makecorr(fname, allowed_corr):
if 'DET2IMCorr' in allowed_corr:
kw2update = det2im.DET2IMCorr.updateWCS(f)
for kw in kw2update:
- f[1].header.update(kw, kw2update[kw])
+ #these kw are written to the primary header
+ f[0].header.update(kw, kw2update[kw])
for i in range(len(f))[1:]:
# Perhaps all ext headers should be corrected (to be consistent)
@@ -106,6 +107,9 @@ def makecorr(fname, allowed_corr):
kw2update = dgeo.DGEOCorr.updateWCS(f)
for kw in kw2update:
f[1].header.update(kw, kw2update[kw])
+
+
+
f.close()
def getNrefchip(fobj):