Previous topic

WCSUTIL

Next topic

HSTWCS Examples

This Page

HSTWCS API

class stwcs.wcsutil.hstwcs.HSTWCS(fobj=None, ext=None, minerr=0.0, wcskey=' ')

Create a WCS object based on the instrument.

In addition to basic WCS keywords this class provides instrument specific information needed in distortion computation.

Parameters :
 

fobj: string or PyFITS HDUList object or None :

a file name, e.g j9irw4b1q_flt.fits a fully qualified filename[EXTNAME,EXTNUM], e.g. j9irw4b1q_flt.fits[sci,1] a pyfits file object, e.g pyfits.open(‘j9irw4b1q_flt.fits’), in which case the user is responsible for closing the file object.

ext: int or None :

extension number if ext==None, it is assumed the data is in the primary hdu

minerr: float :

minimum value a distortion correction must have in order to be applied. If CPERRja, CQERRja are smaller than minerr, the corersponding distortion is not applied.

wcskey: str :

A one character A-Z or ” ” used to retrieve and define an alternate WCS description.