region_to_frame#

gammapy.utils.regions.region_to_frame(region, frame)[source]#

Convert a region to a different frame

Parameters
regionSkyRegion

region to transform

frame“icrs” or “galactic”

frame to tranform the region into

Returns
region_newSkyRegion

region in the given frame