are_equal#

madcubapy.visualization.are_equal(fitsmap_1, fitsmap_2, show_maps=False)[source]#

Compare two maps to check if they are equal.

Parameters:
fitsmap_1MadcubaMap or CCDData

Map object to compare.

fitsmap_2MadcubaMap or CCDData

Map object to compare.

show_mapsbool, default: False

If true both maps are plotted alongside the residuals of their substraction.

Returns:
bool

Returns True if the two maps are the same map.