regions_to_compound_region#

gammapy.utils.regions.regions_to_compound_region(regions)[source]#

Create compound region from list of regions, by creating the union.

Parameters
regionsRegions

List of regions.

Returns
compoundCompoundSkyRegion or CompoundPixelRegion

Compound sky region