compare_sky_projection_to_legacy_wcs#
- lsst.images.tests.compare_sky_projection_to_legacy_wcs(sky_projection, legacy_wcs, pixel_frame, subimage_bbox, is_fits=False)#
Test a Projection object by comparing it to an equivalent
lsst.afw.geom.SkyWcs.- Parameters:
sky_projection (
SkyProjection[TypeVar(F, bound=Frame)]) – Projection to test.legacy_wcs (
lsst.afw.geom.SkyWcs) – Equivalent legacy WCS.pixel_frame (
TypeVar(F, bound=Frame)) – Expected pixel frame for the sky_projection.subimage_bbox (
Box) – Bounding box of points to generate for tests.is_fits (
bool, default:False) – Whether this sky_projection is expected to be exactly representable as a FITS WCS. IfFalseit is assumed to have a FITS approximation attached instead.
- Return type: