PointSkyRegion

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

Bases: regions.core.core.SkyRegion

A pixel region in sky coordinates.

Parameters
centerSkyCoord

The position of the point.

metaregions.RegionMeta, optional

A dictionary that stores the meta attributes of this region.

visualRegionVisual, optional

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

Attributes Summary

center

The point position as a astropy.coordinates.SkyCoord.

Methods Summary

contains(skycoord, wcs)

Check whether a sky coordinate falls inside the region.

to_pixel(wcs)

Return the equivalent region defined in pixel coordinates.

Attributes Documentation

center

The point position as a astropy.coordinates.SkyCoord.

Methods Documentation

contains(skycoord, wcs)[source]

Check whether a sky coordinate falls inside the region.

Parameters
skycoordSkyCoord

The position or positions to check.

wcsWCS

The world coordinate system transformation to use to convert between sky and pixel coordinates.

to_pixel(wcs)[source]

Return the equivalent region defined in pixel coordinates.

Parameters
wcsWCS

The world coordinate system transformation to use to convert between sky and pixel coordinates.

Returns
pixel_regionPixelRegion

A pixel region.