1 from __future__
import absolute_import, division, print_function
25 __all__ = [
"makePixelToTanPixel"]
29 """!Make an XYTransform whose forward direction converts PIXEL to TAN_PIXEL for one detector
31 PIXELS and TAN_PIXELS are defined in @ref afwCameraGeomCoordSys in doc/cameraGeom.dox
33 @param[in] bbox detector bounding box (an lsst.afw.geom.Box2I)
34 @param[in] orientation orientation of detector in focal plane (an lsst.afw.cameraGeom.Orientation)
35 @param[in] focalPlaneToPupil an lsst.afw.math.XYTransform that converts from focal plane (mm)
36 to pupil coordinates (radians) in the forward direction
37 @param[in] pixelSizeMm size of the pixel in mm in X and Y (an lsst.afw.geom.Extent2D)
39 pixelToFocalPlane = orientation.makePixelFpTransform(pixelSizeMm)
41 (pixelToFocalPlane, focalPlaneToPupil))
49 tanPixToPupilAffine = pixelToPupil.linearizeForwardTransform(pixAtPupilCtr)
def makePixelToTanPixel
Make an XYTransform whose forward direction converts PIXEL to TAN_PIXEL for one detector.