select_contour_regions#

madcubapy.regions.select_contour_regions(contour, fig=None, ax=None, fitsmap=None, **kwargs)[source]#

Shows the regions contained in a contour object in a pop-up window and lets the user select closed contours as regions. Returns the indexes of the regions that have been clicked.

Parameters:
contourContourSet

Contour object to plot as polygons with indexes.

axWCSAxes, optional

Ax object to use for displaying the contour.

figFigure, optional

Fig object to use for displaying the contour.

fitsmapMadcubaMap or CCDData, optional

Map object to use for displaying the contour.

Returns:
selected_indexeslist

List with the indexes of the selected Polygons.

Other Parameters:
**kwargs

Parameters to pass to the imshow() function.