Skip to content

Commit fb7c224

Browse files
committed
Force the center pixel to be the center of image
This helps ensure better consistency between the solutions. If it is not set then astrometry.net will pick CRPIX on its own. That ensures the headers cannot be compared, though the angular positions calculated from the WCS should be very close.
1 parent 46773f1 commit fb7c224

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/astrometry_net/tests/test_astrometry_net_remote.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def test_solve_image_upload():
6767
result = a.solve_from_image(image,
6868
force_image_upload=True,
6969
downsample_factor=1)
70+
downsample_factor=1,
71+
crpix_center=True)
7072
expected_result = fits.getheader(os.path.join(DATA_DIR,
7173
'thumbnail-wcs-sol.fit'))
7274
for key in result:
@@ -111,7 +113,7 @@ def test_solve_image_detect_source_local():
111113
downsample_factor=1,
112114
fwhm=1.5, detect_threshold=5,
113115
center_ra=135.618, center_dec=49.786,
114-
radius=0.5)
116+
radius=0.5, crpix_center=True)
115117
expected_result = fits.getheader(os.path.join(DATA_DIR,
116118
'thumbnail-wcs-sol-from-photutils.fit'))
117119
for key in result:

0 commit comments

Comments
 (0)