ImageDataDiff
objects have the following diff attributes:
diff_dimensions
: If the two arrays contain either a different number of dimensions or different sizes in any dimension, this contains a 2-tuple of the shapes of each array. Currently no further comparison is performed on images that don't have the exact same dimensions.
diff_pixels
: If the two images contain any different pixels, this contains a list of 2-tuples of the array index where the difference was found, and another 2-tuple containing the different values. For example, if the pixel at (0, 0) contains different values this would look like:
[(0, 0), (1.1, 2.2)]
where 1.1 and 2.2 are the values of that pixel in each array. This array only contains up to self.numdiffs
differences, for storage efficiency.
diff_total
: The total number of different pixels found between the arrays. Although diff_pixels
does not necessarily contain all the different pixel values, this can be used to get a count of the total number of differences found.
diff_ratio
: Contains the ratio of diff_total
to the total number of pixels in the arrays.
Diff two image data arrays (really any array from a PRIMARY HDU or an IMAGE extension HDU, though the data unit is assumed to be "pixels").
The following pages refer to to this document either explicitly or contain code examples using this.
astropy.io.fits.diff.TableDataDiff
astropy.io.fits.diff.RawDataDiff
astropy.io.fits.diff.HDUDiff
astropy.io.fits.diff.ImageDataDiff
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them