Skip to content

Commit

Permalink
Make CDELT1 negative, for visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Jul 15, 2018
1 parent 8576895 commit 7cc2209
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megaradrp/processing/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ def update_wcs_from_ipa(hdr, pa):
hdr['PC2_2'] = cos_pa
hdr['PC1_2'] = sin_pa
hdr['PC2_1'] = -sin_pa
# CDELT1 must be negative
hdr['CDELT1'] = -abs(hdr['CDELT1'])

return hdr

0 comments on commit 7cc2209

Please sign in to comment.