Note

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

compound_region_to_regions

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

Create list of regions from compound regions.

Parameters
regionCompoundSkyRegion or SkyRegion

Compound sky region

Returns
regionsRegions

List of regions.