assert_sky_coords_close#

lsst.images.tests.assert_sky_coords_close(test_sky, expected_sky, atol, *, label='sky_coords')#

Assert that two astropy sky-coordinate sets are close.

Great-circle separations are used instead of per-axis RA/Dec comparisons, so the comparison is correct across the RA = 0 meridian and near the poles.

Parameters:
  • test_sky (SkyCoord) – Sky coordinates to test, of the same shape as expected_sky.

  • expected_sky (SkyCoord) – Expected sky coordinates.

  • atol (Quantity) – Maximum allowed great-circle separation.

  • label (str, default: 'sky_coords') – Prefix prepended to the failure message.

Return type:

None

This page was last modified on .