wcsAlmostEqualOverBBox

lsst.afw.geom.wcsAlmostEqualOverBBox(wcs0, wcs1, bbox, maxDiffSky=4.84814e-08 rad, maxDiffPix=0.01, nx=5, ny=5)

Test if two WCS are almost equal over a grid of pixel positions.

Parameters:
wcs0lsst.afw.geom.SkyWcs

WCS 0

wcs1lsst.afw.geom.SkyWcs

WCS 1

bboxlsst.geom.Box2I or lsst.geom.Box2D

boundaries of pixel grid over which to compare the WCSs

maxDiffSkylsst.geom.Angle

maximum separation between sky positions computed using Wcs.pixelToSky

maxDiffPixfloat

maximum separation between pixel positions computed using Wcs.skyToPixel

nxint

number of points in x for the grid of pixel positions

nyint

number of points in y for the grid of pixel positions

Returns:
almostEqual: bool

True if two WCS are almost equal over a grid of pixel positions, else False