Package pydrizzle :: Class DitherProduct
[hide private]
[frames] | no frames]

Class DitherProduct

source code

Pattern --+
          |
         DitherProduct

Builds an object for a set of dithered inputs, each of which will be one of the Observation objects.

Instance Methods [hide private]
 
__init__(self, prodlist, pars=None) source code
 
closeHandle(self)
Close image handle for each member.
source code
 
buildProduct(self, output)
Create Exposure object for meta-chip product after applying distortion model to input members.
source code
 
applyAsnShifts(self, output)
Apply any shifts read in from the ASN table /shiftfile to the WCS of each input's product.
source code
 
computeOffsets(self)
This method will rely on final product's 'rd2xy' method to compute offsets between the different input chips.
source code
 
getExptime(self)
Add up the exposure time for all the members in the pattern, since 'drizzle' doesn't have the necessary information to correctly set this itself.
source code
 
addMembers(self, prodlist, pars, output)
For each entry in prodlist, append the appropriate type of Observation to the members list.
source code
 
getMember(self, memname)
Return the class instance for the member with name memname.
source code
 
getMemberNames(self)
Returns a dictionary with one key for each member.
source code
 
buildPars(self, ref=None)
This method would build a list of parameters to run 'drizzle' one a single input image.
source code
 
buildMetachip(self)
This method combines the results of the member's buildMetachip() methods into a composite WCS.
source code

Inherited from Pattern: DeltaXYtoOffset, computeCubicCoeffs, getHeaderHandle, getProductCorners, getWCS, setNames, transformMetachip

Inherited from Pattern (private): _applyShifts

Class Variables [hide private]

Inherited from Pattern: COPY_SUFFIX, DETECTOR_NAME, IDCKEY, NUM_IMSET, PARITY, PA_KEY, REFDATA

Method Details [hide private]

__init__(self, prodlist, pars=None)
(Constructor)

source code 
Overrides: Pattern.__init__

closeHandle(self)

source code 

Close image handle for each member.

Overrides: Pattern.closeHandle

buildProduct(self, output)

source code 

Create Exposure object for meta-chip product after applying distortion model to input members.

Overrides: Pattern.buildProduct
(inherited documentation)

applyAsnShifts(self, output)

source code 

Apply any shifts read in from the ASN table /shiftfile to the WCS of each input's product.

In the case there are no shifts to apply, copy the product WCS into WCSLIN as the default case.

This method should (eventually?) support updating the shifts without starting from the beginning with these datasets, similar to the 'resetPars' functionality.

Overrides: Pattern.applyAsnShifts

computeOffsets(self)

source code 

This method will rely on final product's 'rd2xy' method to compute offsets between the different input chips.

Overrides: Pattern.computeOffsets

getExptime(self)

source code 

Add up the exposure time for all the members in the pattern, since 'drizzle' doesn't have the necessary information to correctly set this itself.

Overrides: Pattern.getExptime

addMembers(self, prodlist, pars, output)

source code 

For each entry in prodlist, append the appropriate type of Observation to the members list.

If it's a moving target observation apply the wcs of the first observation to all other observations.

Overrides: Pattern.addMembers

getMember(self, memname)

source code 

Return the class instance for the member with name memname.

Overrides: Pattern.getMember

getMemberNames(self)

source code 

Returns a dictionary with one key for each member. The value for each key is a list of all the extension/chip names that make up each member. Output: {member1:[extname1,extname2,...],...}

Overrides: Pattern.getMemberNames

buildPars(self, ref=None)

source code 
This method would build a list of parameters to run 'drizzle'
one a single input image.
   The reference image info 'ref' will be passed as a SkyField object.
   The default output reference frame will be passed as 'def_wcs'
   for comparison to the user's selected object 'ref'.

Overrides: Pattern.buildPars
(inherited documentation)

buildMetachip(self)

source code 

This method combines the results of the member's buildMetachip() methods into a composite WCS. (DitherProduct method)

Overrides: Pattern.buildMetachip