pixel_compare#

lsst.analysis.ap.pixel_compare(butler1, butler2, visit, detector, dataset_name='difference_image')#

Compare two difference images for the same data id, pixel by pixel.

Pull the same dataId from two butlers (or two collections of one butler) and inspect the residuals.

Parameters#

butler1, butler2lsst.daf.butler.Butler

Two butlers, possibly the same instance with different collections.

visit, detectorint

Data id to load from both butlers.

dataset_namestr, optional

Butler dataset type name to load from each butler. Defaults to "difference_image".

Returns#

result : PixelCompareResult

Raises#

ValueError

If the two loaded images differ in shape (cannot be aligned by simple subtraction).