Package pydrizzle :: Module pydrizzle :: Class SkyField
[hide private]
[frames] | no frames]

Class SkyField

source code


An class for specifying the parameters and building a WCS object
    for a user-specified drizzle product.
The user may optionally modify the values for:
    psize       - size of image's pixels in arc-seconds
    orient      - value of ORIENTAT for the field
    shape       - tuple containing the sizes of the field's x/y axes
    ra,dec      - position of the center of the field
                  decimal (124.5678) or
                  sexagesimal string _in quotes_ ('hh:mm:ss.ss')
    crpix       - tuple for pixel position of reference point in
                    output image
Usage:
    To specify a new field with a fixed output size of 1024x1024:
    --> field = pydrizzle.SkyField(shape=(1024,1024))

    The 'set()' method modifies one of the parameters listed above
    without affecting the remainder of the parameters.
    --> field.set(psize=0.1,orient=0.0)
    --> field.set(ra=123.45678,dec=0.1000,crpix=(521,576))

    View the WCS or user-specified values for this object:
    --> print field

Instance Methods [hide private]
 
__init__(self, shape=None, psize=None, wcs=None) source code
 
mergeWCS(self, wcs, overwrite=True)
Sets up the WCS for this object based on another WCS.
source code
 
set(self, psize=None, orient=None, ra=None, dec=None, shape=None, crpix=None)
Modifies the attributes of the SkyField and updates it's WCS when appropriate.
source code
 
__str__(self)
Prints the WCS information set for this object.
source code
 
help(self)
Creates and prints usage information for this class.
source code
Method Details [hide private]

mergeWCS(self, wcs, overwrite=True)

source code 

Sets up the WCS for this object based on another WCS. This method will NOT update object attributes other than WCS, as all other attributes reflect user-settings.