diff options
author | dencheva <dencheva@stsci.edu> | 2011-03-09 12:19:29 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2011-03-09 12:19:29 -0500 |
commit | 323fea9f61f6220ef4114158c4dd76636d91eab4 (patch) | |
tree | 695d10e1c1378742e8505655e4ef5903a11ffba2 | |
parent | 51b7d025b8f7d12f7572a420d7cf31f5482f934d (diff) | |
download | stwcs_hcf-323fea9f61f6220ef4114158c4dd76636d91eab4.tar.gz |
Fixed a bug - wcskey was not defined when archiving a WCS and an alternate WCS with this key already exists.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12134 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r-- | wcsutil/altwcs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wcsutil/altwcs.py b/wcsutil/altwcs.py index b12d7ca..b483e46 100644 --- a/wcsutil/altwcs.py +++ b/wcsutil/altwcs.py @@ -56,6 +56,7 @@ def archiveWCS(fname, ext, wcskey=" ", wcsname=" ", clobber=False): if not wcsname.strip(): wcsname = f[1].header["WCSNAME"+wcskey] wname = wcsname + wkey = wcskey else: wkey = wcskey wname = wcsname |