Base class for Observation's geometric information.
This class must know how to recognize the different types of
distortion coefficients tables and instantiate the correct class for
it.
|
|
__init__(self,
rootname,
idcfile,
idckey=None,
chip=1,
direction='forward',
header=None,
pa_key=None,
new=None,
date=None,
rot=None,
ref_pscale=1.0,
binned=1,
mt_wcs=None)
We need to setup the proper object for the GeometryModel
based on the format of the provided idctab. |
source code
|
|
|
|
apply(self,
pixpos,
delta=None,
pscale=None,
verbose=False,
order=None)
This method applies the model to a pixel position
to calculate the new position. |
source code
|
|
|
|
applyVAFactor(self,
vafactor,
ra_targ,
dec_targ)
Correct the distortion coefficients for the effects of velocity
aberration, IF the VAFACTOR value is present. |
source code
|
|
|
|
wtraxy(self,
pixpos,
wcs,
verbose=False)
Converts input pixel position 'pixpos' into an X,Y position in WCS. |
source code
|
|
|
|
invert(self,
pixpos,
outwcs,
error=None,
maxiter=None)
This method is the reverse of "apply" - it finds a position
which, when distorted, maps to "pixpos". |
source code
|
|
|
|
undistortWCS(self,
shape=None)
This method applies the distortion to a 1x1 box at the reference
position and updates the WCS based on the results. |
source code
|
|
|
|
XYtoSky(self,
pos,
verbose=False,
linear=False)
This method applies the distortion model to a pixel position
and calculates the sky position in RA/Dec. |
source code
|
|
|
|
SkytoXY(self,
skypos,
verbose=False,
hour=False)
This method applies the model to an RA/Dec
and calculates the pixel position. |
source code
|
|
|
|
calcNewCorners(self)
This method will compute a new shape based on the positions of
the corners AFTER applying the geometry model. |
source code
|
|