compare_projection_to_legacy_wcs#
- lsst.images.tests.compare_projection_to_legacy_wcs(tc: TestCase, projection: Projection, legacy_wcs: Any, pixel_frame: F, subimage_bbox: Box, is_fits: bool = False) None#
Test a Projection object by comparing it to an equivalent
lsst.afw.geom.SkyWcs.Parameters#
- tc
Test case object with assert methods to use.
- projection
Projection to test.
- legacy_wcs
lsst.afw.geom.SkyWcs Equivalent legacy WCS.
- pixel_frame
Expected pixel frame for the projection.
- subimage_bbox
Bounding box of points to generate for tests.
- is_fits
Whether this projection is expected to be exactly representable as a FIT WCS. If
Falseit is assumed to have a FITS approximation attached instead.