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”, “galactic”}

Frame to transform the region into.

Returns:
region_newSkyRegion

Region in the given frame.