diff options
author | dencheva <dencheva@stsci.edu> | 2009-04-10 15:45:01 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2009-04-10 15:45:01 -0400 |
commit | 43e08da74ed34236e79493c3cbc9a991cdfc8ae1 (patch) | |
tree | a07bf0f9641f132abcb497365e83629a3a68dbef | |
parent | a02874221f43bb1e9ab184b7f396f5943cc03ae5 (diff) | |
download | stwcs_hcf-43e08da74ed34236e79493c3cbc9a991cdfc8ae1.tar.gz |
Added printwcs function to HSTWCS class
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7873 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r-- | wcsutil/__init__.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py index d21a2ec..b76f633 100644 --- a/wcsutil/__init__.py +++ b/wcsutil/__init__.py @@ -397,7 +397,16 @@ class HSTWCS(WCS): ext_hdr.update('IDCV2REF', self.idcmodel.refpix['V2REF']) ext_hdr.update('IDCV3REF', self.idcmodel.refpix['V3REF']) - + def printwcs(self): + print 'WCS Keywords\n' + print 'CD_11 CD_12: %r %r' % (self.wcs.cd[0,0], self.wcs.cd[0,1]) + print 'CD_21 CD_22: %r %r' % (self.wcs.cd[1,0], self.wcs.cd[1,1]) + print 'CRVAL : %r %r' % (self.wcs.crval[0], self.wcs.crval[1]) + print 'CRPIX : %r %r' % (self.wcs.crpix[0], self.wcs.crpix[1]) + print 'NAXIS : %d %d' % (self.naxis1, self.naxis2) + print 'Plate Scale : %r' % self.pscale + print 'ORIENTAT : %r' % self.orientat + def help(): print 'How to create an HSTWCS object:\n\n' print """ \ |