Reference/API

regions Package

Regions is Astropy coordinated package to provide tools for region handling.

Functions

make_example_dataset([data, config])

Make an example dataset.

Classes

AnnulusPixelRegion()

A base class for annulus pixel regions.

AnnulusSphericalSkyRegion()

A base class for spherical sky annulus regions.

AsymmetricAnnulusPixelRegion(center, ...[, ...])

Helper class for asymmetric annuli sky regions.

AsymmetricAnnulusSkyRegion(center, ...[, ...])

Helper class for asymmetric annuli sky regions.

CRTFRegionParserError

A generic error class for CRTF region parsing.

CRTFRegionParserWarning

A generic warning class for CRTF region parsing.

CircleAnnulusPixelRegion(center, ...[, ...])

A circular annulus in pixel coordinates.

CircleAnnulusSkyRegion(center, inner_radius, ...)

A circular annulus in sky coordinates.

CircleAnnulusSphericalSkyRegion(center, ...)

Class for a circular annulus sky region, where the circular annulus is interpreted within a spherical geometry reference frame.

CirclePixelRegion(center, radius[, meta, visual])

A circle defined using pixel coordinates.

CircleSkyRegion(center, radius[, meta, visual])

A circle defined using sky coordinates.

CircleSphericalSkyRegion(center, radius[, ...])

Class for a circular sky region, where the circle is interpreted within a spherical geometry reference frame.

ComplexSphericalSkyRegion()

Base class for complex cases, where the definitional parameters do not / cannot transform between coordinate frames (including RangeSphericalSkyRegion).

CompoundPixelRegion(region1, region2, operator)

A class that represents the logical combination of two regions in pixel coordinates.

CompoundSkyRegion(region1, region2, operator)

A class that represents the logical combination of two regions in sky coordinates.

CompoundSphericalSkyRegion(region1, region2, ...)

A class that represents the logical combination of two regions in spherical sky coordinates.

EllipseAnnulusPixelRegion(center, ...[, ...])

A elliptical annulus in pixel coordinates.

EllipseAnnulusSkyRegion(center, inner_width, ...)

A elliptical annulus in SkyCoord coordinates.

EllipsePixelRegion(center, width, height[, ...])

An ellipse in pixel coordinates.

EllipseSkyRegion(center, width, height[, ...])

An ellipse defined using sky coordinates.

LinePixelRegion(start, end[, meta, visual])

A line in pixel coordinates.

LineSkyRegion(start, end[, meta, visual])

A line in sky coordinates.

LuneSphericalSkyRegion(center_gc1, center_gc2)

Class for a spherical "lune", the intersection between to great circles in spherical geometry.

Meta([seq])

A base class for region metadata.

PixCoord(x, y)

A class for pixel coordinates.

PixelRegion()

Base class for all regions defined in pixel coordinates.

PointPixelRegion(center[, meta, visual])

A point position in pixel coordinates.

PointSkyRegion(center[, meta, visual])

A pixel region in sky coordinates.

PolygonPixelRegion(vertices[, meta, visual, ...])

A polygon in pixel coordinates.

PolygonSkyRegion(vertices[, meta, visual])

A polygon defined using vertices in sky coordinates.

PolygonSphericalSkyRegion(vertices[, meta, ...])

A spherical polygon defined using vertices in sky coordinates.

RangeSphericalSkyRegion([frame, ...])

Sky Region defined within a range of longitude and/or latitudes.

RectangleAnnulusPixelRegion(center, ...[, ...])

A rectangular annulus in pixel coordinates.

RectangleAnnulusSkyRegion(center, ...[, ...])

A rectangular annulus in SkyCoord coordinates.

RectanglePixelRegion(center, width, height)

A rectangle in pixel coordinates.

RectangleSkyRegion(center, width, height[, ...])

A rectangle in sky coordinates.

Region()

Base class for all regions.

RegionBoundingBox(ixmin, ixmax, iymin, iymax)

A rectangular bounding box in integer (not float) pixel indices.

RegionMask(data, bbox)

Class for a region mask.

RegionMeta([seq])

A dictionary subclass that holds the meta attributes of the region.

RegionVisual([seq])

A dictionary subclass which holds the visual attributes of the region.

Regions([regions])

Class to hold a list of Region objects.

RegularPolygonPixelRegion(center, nvertices, ...)

A regular polygon in pixel coordinates.

SkyRegion()

Base class for all regions defined in celestial coordinates.

SphericalSkyRegion()

Base class for all spherical sky regions (compared to the implicitly planar SkyRegions).

TextPixelRegion(center, text[, meta, visual])

A text string in pixel coordinates.

TextSkyRegion(center, text[, meta, visual])

A text string in sky coordinates.