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.
img=pyfits.open("test.fits") header=img[0].header
WCS=astWCS.WCS(header, mode = "pyfits")
|
__init__(self,
headerSource,
extensionName=0,
mode="image")
Creates a WCS object using either the information contained in the
header of the specified .fits image, or from a pyfits.header object. |
source code
|
|
astWCS.WCS object
|
|
|
|
list
|
|
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). |
source code
|
|
list
|
getHalfSizeDeg(self)
Returns the half-width, half-height of the image according to the WCS
in RA and dec degrees. |
source code
|
|
list
|
getImageMinMaxWCSCoords(self)
Returns the minimum, maximum WCS coords defined by the size of the
parent image (as defined by the NAXIS keywords in the image header). |
source code
|
|
list
|
wcs2pix(self,
RADeg,
decDeg)
Returns the pixel coordinates corresponding to the input WCS
coordinates (given in decimal degrees). |
source code
|
|
list
|
pix2wcs(self,
x,
y)
Returns the WCS coordinates corresponding to the input pixel
coordinates. |
source code
|
|
float
|
|
int
|
|
float
|
|
float
|
|
float
|
|