PointSkyRegion

class regions.PointSkyRegion(center, meta=None, visual=None)[source]

Bases: regions.SkyRegion

A pixel region in sky coordinates.

Parameters:
center : SkyCoord

The position of the point

meta : regions.RegionMeta object, optional

A dictionary which stores the meta attributes of this region.

visual : RegionVisual object, optional

A dictionary which stores the visual meta attributes of this region.

Attributes Summary

center Descriptor class for SkyRegion which takes a scalar SkyCoord object.

Methods Summary

contains(self, skycoord, wcs) Check whether a sky coordinate falls inside the region
to_pixel(self, wcs) Returns the equivalent region defined in pixel coordinates.

Attributes Documentation

center

Descriptor class for SkyRegion which takes a scalar SkyCoord object.

Methods Documentation

contains(self, skycoord, wcs)[source]

Check whether a sky coordinate falls inside the region

Parameters:
skycoord : SkyCoord

The position or positions to check

wcs : WCS instance

The world coordinate system transformation to assume

to_pixel(self, wcs)[source]

Returns the equivalent region defined in pixel coordinates.

Parameters:
wcs : WCS instance

The world coordinate system transformation to assume

Returns:
pixel_region : PixelRegion object.