Skip to content

Commit 34ef838

Browse files
committed
Fix what appears to be an off-by-one error
1 parent 57218ed commit 34ef838

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

astroquery/astrometry_net/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ def solve_from_image(self, image_file_path, *, force_image_upload=False,
441441
sources.reverse()
442442
if verbose:
443443
print(sources)
444+
445+
# It turns out astrometry.net is 1-indexed, so add 1 to the source positions.
446+
sources['xcentroid'] += 1
447+
sources['ycentroid'] += 1
444448
return self.solve_from_source_list(sources['xcentroid'],
445449
sources['ycentroid'],
446450
ccd.header['naxis1'],

0 commit comments

Comments
 (0)