From 551af1454d9fefabca536945a556542c4added77 Mon Sep 17 00:00:00 2001 From: dencheva Date: Wed, 29 Oct 2008 20:44:45 +0000 Subject: Added TDD correction to WCS git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7210 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/utils.py') diff --git a/lib/utils.py b/lib/utils.py index 87ff6d9..b29c67c 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -35,6 +35,11 @@ def restoreWCS(fnames): nkw = ('O'+kw)[:7] if backup.has_key(kw): hdr.update(kw, hdr[nkw]) + tddalpha = hdr.get('TDDALPHA', None) + tddbeta = hdr.get('TDDBETA', None) + if tddalpha or tddbeta: + hdr.update('TDDALPHA', 0.0) + hdr.update('TDDBETA', 0.0) fobj.close() def get_archive(header): @@ -74,7 +79,7 @@ def diff_angles(a,b): """ diff = a - b - + if diff > 180.0: diff -= 360.0 -- cgit