From 98c196132b6103b6faeecb0288e2afd154eca4fc Mon Sep 17 00:00:00 2001 From: dencheva Date: Thu, 23 Sep 2010 20:49:03 +0000 Subject: git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10385 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'updatewcs/__init__.py') diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index 8992b69..0dd21d4 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -78,10 +78,10 @@ def updatewcs(input, vacorr=True, tddcorr=True, dgeocorr=True, d2imcorr=True, acorr = apply_corrections.setCorrections(f, vacorr=vacorr, \ tddcorr=tddcorr,dgeocorr=dgeocorr, d2imcorr=d2imcorr) - if 'MakeWCS' in acorr and newIDCTAB(fname): + if 'MakeWCS' in acorr and newIDCTAB(f): print "New IDCTAB file detected. This invalidates all WCS's." print "Deleting all previous WCS's" - cleanWCS(fname) + cleanWCS(f) #restore the original WCS keywords #wcsutil.restoreWCS(f, ext=[], wcskey='O', clobber=True) @@ -308,11 +308,11 @@ def newIDCTAB(fname): def cleanWCS(fname): # A new IDCTAB means all previously computed WCS's are invalid # We are deleting all of them except the original OPUS WCS.nvalidates all WCS's. - keys = altwcs.wcskeys(pyfits.getheader(fname, ext=1)) + keys = wcsutil.wcskeys(pyfits.getheader(fname, ext=1)) f = pyfits.open(fname, mode='update') fext = range(len(f)) for key in keys: - altwcs.deleteWCS(fname, ext=fext,wcskey=key) + wcsutil.deleteWCS(fname, ext=fext,wcskey=key) def getCorrections(instrument): """ -- cgit