SRegion

class grizli.utils.SRegion(inp, label=None, **kwargs)[source]

Bases: object

Helper class for parsing an S_REGION string

Attributes Summary

area Area of shapely polygons
centroid
path Path object
region Polygon string in DS9 region format
shapely Polygon object.

Methods Summary

get_patch(**kwargs) PolygonPatch object
sky_area([unit]) Assuming coordinates provided are RA/Dec degrees, compute area

Attributes Documentation

area

Area of shapely polygons

centroid
path

Path object

region

Polygon string in DS9 region format

shapely

Polygon object.

Methods Documentation

get_patch(**kwargs)[source]

PolygonPatch object

sky_area(unit=Unit("arcmin2"))[source]

Assuming coordinates provided are RA/Dec degrees, compute area