make_orthogonal_rectangle_sky_regions#

gammapy.utils.regions.make_orthogonal_rectangle_sky_regions(start_pos, end_pos, wcs, height, nbin=1)[source]#

Utility returning an array of regions to make orthogonal projections.

Parameters:
start_posSkyCoord

First sky coordinate defining the line to which the orthogonal boxes made.

end_posSkyCoord

Second sky coordinate defining the line to which the orthogonal boxes made.

heightQuantity

Height of the rectangle region.

wcsWCS

WCS projection object.

nbinint, optional

Number of boxes along the line. Default is 1.

Returns:
regionslist of RectangleSkyRegion

Regions in which the profiles are made.