This class provides methods for accessing information from the World
Coordinate System (WCS) contained in the header of a FITS image.
Conversions between pixel and WCS coordinates can also be performed.
To create a WCS object from a FITS file called "test.fits",
where the image data is contained in extension 0, simply:
WCS=astWCS.WCS("test.fits", 0)
| Method Summary |
| |
__init__(self,
imageFileName,
extensionName)
Creates a WCS object using the information in the header of the
specified .fits image. |
| astWCS.WCS object
|
copy(self)
Copies the WCS object to a new object. |
| list
|
getCentreWCSCoords(self)
Returns the RA and dec coordinates (in decimal degrees) at the centre
of the WCS. |
| float
|
getEpoch(self)
Returns the epoch of the WCS. |
| float
|
getEquinox(self)
Returns the equinox of the WCS. |
| list
|
getFullSizeSkyDeg(self)
Returns the width, height of the image according to the WCS in decimal
degrees on the sky (i.e., with the projection taken into account). |
| list
|
getHalfSizeDeg(self)
Returns the half-width, half-height of the image according to the WCS
in RA and dec degrees. |
| float
|
getPixelSizeDeg(self)
Returns the pixel scale (in degrees) of the WCS. |
| float
|
getRotationDeg(self)
Returns the rotation angle in degrees around the axis, North through
East. |
| int
|
isFlipped(self)
Returns 1 if image is reflected around axis, otherwise returns 0. |
| list
|
pix2wcs(self,
x,
y)
Returns the WCS coordinates corresponding to the input pixel
coordinates. |
| |
updateFromHeader(self)
Updates the WCS object using information from WCS.header. |
| list
|
wcs2pix(self,
RADeg,
decDeg)
Returns the pixel coordinates corresponding to the input WCS
coordinates (given in decimal degrees). |