Skip to content

Commit

Permalink
fixed UKIRT combined image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Mar 16, 2018
1 parent 5bc86a8 commit 41516d7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,15 @@ def prepare(filenames, obsparam, header_update, keep_wcs=False,

# special treatment for UKIRT/WFCAM
if obsparam['telescope_keyword'] == 'UKIRTWFCAM':
ra_deg = (float(header['TELRA'])/24.*360. -
old_div(float(header['JITTER_X']), 3600.))
dec_deg = (float(header['TELDEC']) -
old_div(float(header['JITTER_Y']), 3600.))

try:
ra_deg = (float(header['TELRA'])/24.*360. -
old_div(float(header['JITTER_X']), 3600.))
dec_deg = (float(header['TELDEC']) -
old_div(float(header['JITTER_Y']), 3600.))
except KeyError:
# JITTER keywords not in combined images
pass

# apply flips
xnorm, ynorm = 1, 1
if this_flipx:
Expand Down

0 comments on commit 41516d7

Please sign in to comment.