export_roi#

madcubapy.regions.export_roi(patch, filename, format='pyroi', coord_frame='image', fitsmap=None, patch_info=None)[source]#

Export a region of interest (ROI) to a specified file format.

Parameters:
patchPatch

Patch object to export.

filenamestr or Path

Path of the output file.

formatstr, optional

The export format. Options: 'pyroi' (default), 'crtf'.

coord_framestr

Coordinate frame to use. Options: 'world' and 'image'.

fitsmapMadcubaMap or CCDData

Map object used to transform coordinates.

patch_infostr

Custom information text to add to the roi file.