Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

compound_region_to_list

gammapy.utils.regions.compound_region_to_list(region)[source]

Create list of regions from compound regions.

Parameters
regionsCompoundSkyRegion or SkyRegion

Compound sky region

Returns
regionslist of SkyRegion

List of regions.