Skip to content

Commit

Permalink
fixed ra_deg/dec_deg
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Nov 17, 2018
1 parent 4130199 commit 434fdd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ def add_registration(data, extraction_data, imagestretch='linear'):
if refcat.shape[0] > 0:
try:
w = wcs.WCS(header)
world_coo = np.array(list(zip(refcat['ra.deg'],
refcat['dec.deg'])))
world_coo = np.array(list(zip(refcat['ra_deg'],
refcat['dec_deg'])))
img_coo = w.wcs_world2pix(world_coo, True)
img_coo = [c for c
in img_coo if (c[0] > 0 and c[1] > 0 and
Expand Down

0 comments on commit 434fdd5

Please sign in to comment.