diff options
author | dencheva <dencheva@stsci.edu> | 2008-12-16 12:49:22 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2008-12-16 12:49:22 -0500 |
commit | df9aeee7fcc798b2b1382c7f0b462b30a14559ad (patch) | |
tree | e641b8e0acfcf04860799db0cfa91e02fa28e0c0 /updatewcs/corrections.py | |
parent | 4d45636b0d7f6921d9f32258d35c4a0718c9767e (diff) | |
download | stwcs_hcf-df9aeee7fcc798b2b1382c7f0b462b30a14559ad.tar.gz |
Fixed logic with VA kw update
Apply TDD correction only if TDDCORR == PERFORM
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7385 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'updatewcs/corrections.py')
-rw-r--r-- | updatewcs/corrections.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/updatewcs/corrections.py b/updatewcs/corrections.py index 15fd106..645e98d 100644 --- a/updatewcs/corrections.py +++ b/updatewcs/corrections.py @@ -98,12 +98,11 @@ class VACorr(object): ext_wcs.wcs.crval[0] = ref_wcs.wcs.crval[0] + ext_wcs.vafactor*diff_angles(ext_wcs.wcs.crval[0], ref_wcs.wcs.crval[0]) ext_wcs.wcs.crval[1] = ref_wcs.wcs.crval[1] + ext_wcs.vafactor*diff_angles(ext_wcs.wcs.crval[1], ref_wcs.wcs.crval[1]) ext_wcs.wcs.set() - - kw2update={'CD1_1': ext_wcs.wcs.cd[0,0], 'CD1_2':ext_wcs.wcs.cd[0,1], - 'CD2_1':ext_wcs.wcs.cd[1,0], 'CD2_2':ext_wcs.wcs.cd[1,1], - 'CRVAL1':ext_wcs.wcs.crval[0], 'CRVAL2':ext_wcs.wcs.crval[1]} else: pass + kw2update={'CD1_1': ext_wcs.wcs.cd[0,0], 'CD1_2':ext_wcs.wcs.cd[0,1], + 'CD2_1':ext_wcs.wcs.cd[1,0], 'CD2_2':ext_wcs.wcs.cd[1,1], + 'CRVAL1':ext_wcs.wcs.crval[0], 'CRVAL2':ext_wcs.wcs.crval[1]} return kw2update updateWCS = classmethod(updateWCS) |