From eb7ec1682d4b311e68cbd9d66914eeeff1ee3605 Mon Sep 17 00:00:00 2001 From: hack Date: Thu, 27 Oct 2011 21:13:27 +0000 Subject: Renamed the 'STWCSVER' keyword in headerlets to 'UPWCSVER' to be consistent with the keyword name used by 'updatewcs'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13919 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/headerlet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/stwcs/wcsutil/headerlet.py') diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py index b2b4ca2..95d93dc 100644 --- a/lib/stwcs/wcsutil/headerlet.py +++ b/lib/stwcs/wcsutil/headerlet.py @@ -936,9 +936,9 @@ def create_headerlet(filename, sciext='SCI', hdrname=None, destim=None, wcskey=" # get the version of STWCS used to create the WCS of the science file. try: - upwcsver = fobj[0].header.ascard['STWCSVER'] + upwcsver = fobj[0].header.ascard['UPWCSVER'] except KeyError: - upwcsver = pyfits.Card("STWCSVER", " ", + upwcsver = pyfits.Card("UPWCSVER", " ", "Version of STWCS used to update the WCS") try: pywcsver = fobj[0].header.ascard['PYWCSVER'] @@ -2131,7 +2131,7 @@ class Headerlet(pyfits.HDUList): header = self[0].header assert('DESTIM' in header and header['DESTIM'].strip()) assert('HDRNAME' in header and header['HDRNAME'].strip()) - assert('STWCSVER' in header) + assert('UPWCSVER' in header) def verify_hdrname(self,dest): """ -- cgit