ginga_canvas_object_to_astropy_region
- ginga.util.ap_region.ginga_canvas_object_to_astropy_region(obj, frame='icrs', logger=None)[source]
Convert a Ginga canvas object to an astropy-region object.
- Parameters:
- objsubclass of
CanvasObjectBase
The Ginga canvas object to be converted
- framestr (optional, default: ‘icrs’)
The type of astropy frame that should be generated for Sky regions
- loggera Python logger (optional, default: None)
A logger to which errors will be written
- objsubclass of
- Returns:
- rsubclass of
PixelRegion
orSkyRegion
The corresponding astropy-region object
- rsubclass of