diff options
author | dencheva <dencheva@stsci.edu> | 2010-09-23 16:49:03 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2010-09-23 16:49:03 -0400 |
commit | 98c196132b6103b6faeecb0288e2afd154eca4fc (patch) | |
tree | bdc9616d17e78fcd09880b36af7943f01f6cd019 /updatewcs/__init__.py | |
parent | eeb95498b61fae9ae48a8d18abe668b1021ee26c (diff) | |
download | stwcs_hcf-98c196132b6103b6faeecb0288e2afd154eca4fc.tar.gz |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10385 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'updatewcs/__init__.py')
-rw-r--r-- | updatewcs/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): """ |