diff options
Diffstat (limited to 'wcsutil/wcscorr.py')
-rw-r--r-- | wcsutil/wcscorr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wcsutil/wcscorr.py b/wcsutil/wcscorr.py index 4f5a05d..fae48ce 100644 --- a/wcsutil/wcscorr.py +++ b/wcsutil/wcscorr.py @@ -81,10 +81,10 @@ def init_wcscorr(input, force=False): # Check to see whether or not there is an OPUS alternate WCS present, # if so, get its values directly, otherwise, archive the PRIMARY WCS # as the OPUS values in the WCSCORR table - if 'O' in used_wcskeys: - wkey = 'O' - else: - wkey = ' ' + if 'O' not in used_wcskeys: + altwcs.archiveWCS(fimg,('SCI',extver),wcskey='O', wcsname='OPUS') + wkey = 'O' + wcs = stwcs.wcsutil.HSTWCS(fimg, ext=('SCI', extver), wcskey=wkey) wcshdr = wcs.wcs2header(idc2hdr=idc2header) |