24 __all__ = [
"makePixelToTanPixel"]
28 """!Make a Transform whose forward direction converts PIXELS to TAN_PIXELS for one detector 30 PIXELS and TAN_PIXELS are defined in @ref afwCameraGeomCoordSys in doc/cameraGeom.dox 32 @param[in] bbox detector bounding box (an lsst.afw.geom.Box2I) 33 @param[in] orientation orientation of detector in focal plane (an lsst.afw.cameraGeom.Orientation) 34 @param[in] focalPlaneToField an lsst.afw.geom.Transform that converts from focal plane (mm) 35 to field angle coordinates (radians) in the forward direction 36 @param[in] pixelSizeMm size of the pixel in mm in X and Y (an lsst.afw.geom.Extent2D) 37 @return a TransformPoint2ToPoint2 whose forward direction converts PIXELS to TAN_PIXELS 39 pixelToFocalPlane = orientation.makePixelFpTransform(pixelSizeMm)
40 pixelToField = pixelToFocalPlane.then(focalPlaneToField)
52 return pixelToField.then(fieldToTanPix)
AffineTransform linearizeTransform(TransformPoint2ToPoint2 const &original, Point2D const &inPoint)
Approximate a Transform by its local linearization.
std::shared_ptr< TransformPoint2ToPoint2 > makeTransform(AffineTransform const &affine)
Wrap an AffineTransform as a Transform.
def makePixelToTanPixel(bbox, orientation, focalPlaneToField, pixelSizeMm)
Make a Transform whose forward direction converts PIXELS to TAN_PIXELS for one detector.