addDetectorBuilderFromConfig¶
-
lsst.afw.cameraGeom.
addDetectorBuilderFromConfig
(cameraBuilder, detectorConfig, amplifiers, focalPlaneToField)¶ Build a dictionary of Detector constructor keyword arguments.
The returned dictionary can be passed as keyword arguments to the Detector constructor, providing all required arguments. However, using these arguments directly constructs a Detector with knowledge of only the coordinate systems that are directly mapped to its own PIXELS coordinate system. To construct Detectors with a shared TransformMap for the full Camera, use makeCameraFromCatalogs or makeCameraFromPath instead of calling this function or makeDetector directly.
Parameters: - cameraBuilder :
lsst.afw.cameraGeonm.Camera.Builder
Camera builder object to which the new Detector Builder should be added.
- detectorConfig :
lsst.pex.config.Config
Configuration for this detector.
- amplifiers :
list
[Amplifier
] amplifier information for this detector
- focalPlaneToField :
lsst.afw.geom.TransformPoint2ToPoint2
FOCAL_PLANE to FIELD_ANGLE Transform
Returns: - detectorBuilder :
lsst.afw.cameraGeom.Detector.InCameraBuilder
A builder object for a detector corresponding to the given config, associated with the given camera builder object.
- cameraBuilder :