Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Oct 6, 2017
1 parent dfcd0f1 commit c5dfe7f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pp_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
""" PP_COMBINE - combine frames based on wcs
v1.0: 2017-10-03, michael.mommert@nau.edu
"""
from __future__ import print_function

from __future__ import print_function, division
# Photometry Pipeline
# Copyright (C) 2016 Michael Mommert, michael.mommert@nau.edu

Expand Down Expand Up @@ -33,6 +33,7 @@
import argparse, shlex
import time
from astropy.io import fits
from past.utils import old_div

### pipeline-specific modules
import _pp_conf
Expand Down Expand Up @@ -105,7 +106,7 @@ def combine(filenames, comoving, targetname,
old_div(float(dec_string[1]), 60.) +
old_div(float(dec_string[2]), 3600.))
if dec_string[0].find('-') > -1:
ref_dec_deg = -1 * dec_deg
ref_dec_deg = -1 * ref_dec_deg

if telescope == 'UKIRTWFCAM':
ref_ra_deg = ref_ra_deg/24.*360.
Expand Down Expand Up @@ -166,14 +167,14 @@ def combine(filenames, comoving, targetname,
obsparam['radec_separator'])
dec_string = header[obsparam['dec']].split(
obsparam['radec_separator'])
ref_ra_deg = 15.*(float(ra_string[0]) +
old_div(float(ra_string[1]), 60.) +
old_div(float(ra_string[2]), 3600.))
ref_dec_deg = (abs(float(dec_string[0])) +
ra_deg = 15.*(float(ra_string[0]) +
old_div(float(ra_string[1]), 60.) +
old_div(float(ra_string[2]), 3600.))
dec_deg = (abs(float(dec_string[0])) +
old_div(float(dec_string[1]), 60.) +
old_div(float(dec_string[2]), 3600.))
if dec_string[0].find('-') > -1:
ref_dec_deg = -1 * dec_deg
dec_deg = -1 * dec_deg

if filename == filenames[0]:
ref_offset_ra = target_ra - ref_ra_deg
Expand Down

0 comments on commit c5dfe7f

Please sign in to comment.