check_projection#

lsst.images.tests.check_projection(tc: TestCase, projection: Projection, pixel_xy: XY[ndarray], sky_coords: SkyCoord, pixel_frame: Frame, *, pixel_atol: float | None = None, sky_atol: Quantity | None = None) None#

Test a Projection instance against known arrays of pixel and sky coordinates.

Parameters#

tc

Test case object with assert methods to use.

projection

Projection to test.

pixel_xy

Arrays of pixel coordinates.

sky_coords

Corresponding sky coordinates.

pixel_frame

Expected pixel frame.

pixel_atol

Expected absolute precision of pixel points.

sky_atol

Expected absolute precision of sky coordinates.