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, butler2
lsst.daf.butler.Butler Two butlers, possibly the same instance with different collections.
- visit, detector
int Data id to load from both butlers.
- dataset_name
str, optional Butler dataset type name to load from each butler. Defaults to
"difference_image".
Returns#
result :
PixelCompareResultRaises#
- ValueError
If the two loaded images differ in shape (cannot be aligned by simple subtraction).
- butler1, butler2