diff options
-rw-r--r-- | wcsutil/altwcs.py | 8 | ||||
-rw-r--r-- | wcsutil/hstwcs.py | 4 |
2 files changed, 7 insertions, 5 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 diff --git a/wcsutil/hstwcs.py b/wcsutil/hstwcs.py index 397c9ae..20db803 100644 --- a/wcsutil/hstwcs.py +++ b/wcsutil/hstwcs.py @@ -416,12 +416,14 @@ class HSTWCS(WCS): ext_hdr.update('OCY10', self.idcmodel.cy[1,0]) ext_hdr.update('OCY11', self.idcmodel.cy[1,1]) ext_hdr.update('IDCSCALE', self.idcmodel.refpix['PSCALE']) + """ ext_hdr.update('IDCTHETA', self.idcmodel.refpix['THETA']) ext_hdr.update('IDCXREF', self.idcmodel.refpix['XREF']) ext_hdr.update('IDCYREF', self.idcmodel.refpix['YREF']) ext_hdr.update('IDCV2REF', self.idcmodel.refpix['V2REF']) ext_hdr.update('IDCV3REF', self.idcmodel.refpix['V3REF']) - + """ + def printwcs(self): """ Print the basic WCS keywords. |