import_roi#

madcubapy.regions.import_roi(input_file, fitsmap=None, log=False, **kwargs)[source]#

Import a RoI file as a matplotlib patch.

Parameters:
input_filestr or pathlib.Path

Path of the .pyroi file to be imported.

fitsmapMadcubaMap or CCDData

Map object used to transform coordinates.

logbool

If True, print parsed RoI info onscreen.

Returns:
patchPatch

Patch object.

Other Parameters:
**kwargs

Parameters to pass to the Patch class.