1 from __future__
import absolute_import, division, print_function
25 __all__ = [
"makePixelToTanPixel"]
29 """!Make a Transform 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] focalPlaneToField an lsst.afw.geom.Transform that converts from focal plane (mm)
36 to field angle 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)
38 @return a TransformPoint2ToPoint2 whose forward direction converts PIXEL to TAN_PIXEL
40 pixelToFocalPlane = orientation.makePixelFpTransform(pixelSizeMm)
41 pixelToField = pixelToFocalPlane.then(focalPlaneToField)
53 return pixelToField.then(fieldToTanPix)
TransformPoint2ToPoint2 makeTransform(AffineTransform const &affine)
Wrap an AffineTransform as a Transform.
AffineTransform linearizeTransform(TransformPoint2ToPoint2 const &original, Point2D const &inPoint)
Approximate a Transform by its local linearization.
def makePixelToTanPixel
Make a Transform whose forward direction converts PIXEL to TAN_PIXEL for one detector.