wcsAlmostEqualOverBBox

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

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

Parameters:

wcs0 : lsst.afw.geom.SkyWcs

WCS 0

wcs1 : lsst.afw.geom.SkyWcs

WCS 1

bbox : lsst.geom.Box2I or lsst.geom.Box2D

boundaries of pixel grid over which to compare the WCSs

maxDiffSky : lsst.geom.Angle

maximum separation between sky positions computed using Wcs.pixelToSky

maxDiffPix : float

maximum separation between pixel positions computed using Wcs.skyToPixel

nx : int

number of points in x for the grid of pixel positions

ny : int

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