diff options
author | dencheva <dencheva@stsci.edu> | 2011-03-01 14:26:10 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2011-03-01 14:26:10 -0500 |
commit | 932d650c0f1044861b1c1eea68304728386ca233 (patch) | |
tree | 9cfb264f35e96dba621bf8494b2bb23925610f5d /wcsutil/altwcs.py | |
parent | e279c1b0d7f7e35e9c40c5ecaef66fa47cc8c206 (diff) | |
download | stwcs_hcf-932d650c0f1044861b1c1eea68304728386ca233.tar.gz |
some of the IDC model kw are not used, do not store them in the header. Do not archive ORIENTAT in alternate WCSs but recompute it every time a WCS is restored.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12062 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/altwcs.py')
-rw-r--r-- | wcsutil/altwcs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wcsutil/altwcs.py b/wcsutil/altwcs.py index a750bda..b12d7ca 100644 --- a/wcsutil/altwcs.py +++ b/wcsutil/altwcs.py @@ -73,9 +73,9 @@ def archiveWCS(fname, ext, wcskey=" ", wcsname=" ", clobber=False): for k in hwcs.keys(): key = k[:7] + wkey f[e].header.update(key=key, value=hwcs[k]) - norient = np.rad2deg(np.arctan2(hwcs['CD1_2'],hwcs['CD2_2'])) - okey = 'ORIENT%s' % wkey - f[e].header.update(key=okey, value=norient) + #norient = np.rad2deg(np.arctan2(hwcs['CD1_2'],hwcs['CD2_2'])) + #okey = 'ORIENT%s' % wkey + #f[e].header.update(key=okey, value=norient) closefobj(fname, f) def restoreWCS(f, ext, wcskey=" ", wcsname=" ", clobber=False): @@ -254,7 +254,7 @@ def deleteWCS(fname, ext, wcskey=" ", wcsname=" "): pc2cd(hwcs, key=wkey) for k in hwcs.keys(): del hdr[k] - del hdr['ORIENT'+wkey] + #del hdr['ORIENT'+wkey] prexts.append(i) if prexts != []: print 'Deleted all instances of WCS with key %s in extensions' % wkey, prexts |