Skip to content

Commit

Permalink
BUG fix wcs inversion near ra = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Oct 28, 2023
1 parent 29cd722 commit 173c014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esutil/wcsutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ def _lonlatdiff(self, xy):
lonlat[0] = lon
lonlat[1] = lat
diff = lonlat - self.lonlat_answer
diff[0] = wrap_ra_diff(diff[0])
return diff

def _fsolve_xy(self, xyguess, xtol=DEFTOL):
Expand Down

0 comments on commit 173c014

Please sign in to comment.