From 23da6a7f1385b6361043b4c9512316314c3c5fe2 Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 19 Dec 2008 18:07:30 +0000 Subject: Added the option of 'N/A' as a value of a dgeo file. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7403 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/apply_corrections.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'updatewcs') diff --git a/updatewcs/apply_corrections.py b/updatewcs/apply_corrections.py index 832fa32..9c7f22a 100644 --- a/updatewcs/apply_corrections.py +++ b/updatewcs/apply_corrections.py @@ -89,6 +89,8 @@ def applyDgeoCorr(fname, udgeocorr): try: # get DGEOFILE kw from primary header fdgeo0 = pyfits.getval(fname, 'DGEOFILE') + if fdgeo0 == 'N/A': + return False fdgeo0 = fileutil.osfn(fdgeo0) if not fileutil.findFile(fdgeo0): print 'Kw DGEOFILE exists in primary header but file %s not found\n' % fdgeo0 -- cgit