Home | Trees | Indices | Help |
---|
|
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", simply:
WCS=astWCS.WCS("test.fits")
Likewise, to create a WCS object from the pyfits.header of "test.fits":
img=pyfits.open("test.fits") header=img[0].header WCS=astWCS.WCS(header, mode = "pyfits")
|
|||
|
|||
astWCS.WCS object |
|
||
|
|||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
bool |
|
||
float |
|
||
int |
|
||
float |
|
||
float |
|
||
float |
|
||
float |
|
||
float |
|
|
Creates a WCS object using either the information contained in the header of the specified .fits image, or from a pyfits.header object. Set mode = "pyfits" if the headerSource is a pyfits.header. For some images from some archives, particular header keywords such as COMMENT or HISTORY may contain unprintable strings. If you encounter this, try setting zapKeywords = ['COMMENT', 'HISTORY'] (for example).
Note: The meta data provided by headerSource is stored in WCS.header as a pyfits.header object. |
Copies the WCS object to a new object.
|
Updates the WCS object using information from WCS.header. This routine should be called whenever changes are made to WCS keywords in WCS.header. |
Returns the RA and dec coordinates (in decimal degrees) at the centre of the WCS.
|
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).
|
Returns the half-width, half-height of the image according to the WCS in RA and dec degrees.
|
Returns the minimum, maximum WCS coords defined by the size of the parent image (as defined by the NAXIS keywords in the image header).
|
Returns the pixel coordinates corresponding to the input WCS coordinates (given in decimal degrees). RADeg, decDeg can be single floats, or lists or numpy arrays.
|
Returns the WCS coordinates corresponding to the input pixel coordinates.
|
Returns True if the given RA, dec coordinate is within the image boundaries.
|
Returns the rotation angle in degrees around the axis, North through East.
|
Returns 1 if image is reflected around axis, otherwise returns 0.
|
Returns the pixel scale of the WCS. This is the average of the x, y pixel scales.
|
Returns the pixel scale along the x-axis of the WCS in degrees.
|
Returns the pixel scale along the y-axis of the WCS in degrees.
|
Returns the equinox of the WCS.
|
Returns the epoch of the WCS.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jul 5 14:41:35 2017 | http://epydoc.sourceforge.net |