LSST Applications g063fba187b+fee0456c91,g0f08755f38+ea96e5a5a3,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+90257ff92a,g20f6ffc8e0+ea96e5a5a3,g217e2c1bcf+937a289c59,g28da252d5a+daa7da44eb,g2bbee38e9b+253935c60e,g2bc492864f+253935c60e,g3156d2b45e+6e55a43351,g32e5bea42b+31359a2a7a,g347aa1857d+253935c60e,g35bb328faa+a8ce1bb630,g3a166c0a6a+253935c60e,g3b1af351f3+a8ce1bb630,g3e281a1b8c+c5dd892a6c,g414038480c+416496e02f,g41af890bb2+afe91b1188,g599934f4f4+0db33f7991,g7af13505b9+e36de7bce6,g80478fca09+da231ba887,g82479be7b0+a4516e59e3,g858d7b2824+ea96e5a5a3,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+bc6ab8dfbd,gb58c049af0+d64f4d3760,gc28159a63d+253935c60e,gcab2d0539d+3f2b72788c,gcf0d15dbbd+4ea9c45075,gda6a2b7d83+4ea9c45075,gdaeeff99f8+1711a396fd,ge79ae78c31+253935c60e,gef2f8181fd+3031e3cf99,gf0baf85859+c1f95f4921,gfa517265be+ea96e5a5a3,gfa999e8aa5+17cd334064,w.2024.50
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.afw.cameraGeom.cameraConfig.DetectorConfig Class Reference
Inheritance diagram for lsst.afw.cameraGeom.cameraConfig.DetectorConfig:

Public Member Functions

 getCrosstalk (self, numAmps)
 
 bbox (self)
 
 offset (self)
 
 refPos (self)
 
 orientation (self)
 
 pixelSize (self)
 

Public Attributes

 offset
 
 refPos
 

Static Public Attributes

 transformDict
 
 name = pexConfig.Field("Name of detector slot", str)
 
 id = pexConfig.Field("ID of detector slot", int)
 
 bbox_x0 = pexConfig.Field("x0 of pixel bounding box", int)
 
 bbox_y0 = pexConfig.Field("y0 of pixel bounding box", int)
 
 bbox_x1 = pexConfig.Field("x1 of pixel bounding box", int)
 
 bbox_y1 = pexConfig.Field("y1 of pixel bounding box", int)
 
 detectorType
 
 physicalType
 
 serial
 
 offset_x
 
 offset_y
 
 offset_z
 
 refpos_x
 
 refpos_y
 
 yawDeg
 
 pitchDeg
 
 rollDeg
 
 pixelSize_x = pexConfig.Field("Pixel size in the x dimension in mm", float)
 
 pixelSize_y = pexConfig.Field("Pixel size in the y dimension in mm", float)
 
 transposeDetector
 
 crosstalk
 

Detailed Description

A configuration that represents (and can be used to construct) a
Detector.

Definition at line 31 of file cameraConfig.py.

Member Function Documentation

◆ bbox()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.bbox ( self)
Return the detector bounding box from the separate box endpoint
values.

Definition at line 96 of file cameraConfig.py.

96 def bbox(self):
97 """Return the detector bounding box from the separate box endpoint
98 values.
99 """
100 return geom.BoxI(geom.PointI(self.bbox_x0, self.bbox_y0),
101 geom.PointI(self.bbox_x1, self.bbox_y1))
102
AmpInfoBoxKey bbox
Definition Amplifier.cc:117
An integer coordinate rectangle.
Definition Box.h:55

◆ getCrosstalk()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.getCrosstalk ( self,
numAmps )
Return a 2-D numpy array of crosstalk coefficients of the proper shape

Definition at line 83 of file cameraConfig.py.

83 def getCrosstalk(self, numAmps):
84 """Return a 2-D numpy array of crosstalk coefficients of the proper shape"""
85 if not self.crosstalk:
86 return None
87
88 if numAmps != int(np.sqrt(len(self.crosstalk))):
89 numAmps = int(np.sqrt(len(self.crosstalk)))
90 try:
91 return np.array(self.crosstalk, dtype=np.float32).reshape((numAmps, numAmps))
92 except Exception as e:
93 raise RuntimeError(f"Cannot reshape 'crosstalk' coefficients to square matrix: {e}")
94

◆ offset()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.offset ( self)
Return the detector offset as a Point3D from the separate config
values.

Definition at line 104 of file cameraConfig.py.

104 def offset(self):
105 """Return the detector offset as a Point3D from the separate config
106 values.
107 """
108 return geom.Point3D(self.offset_x, self.offset_y, self.offset_z)
109

◆ orientation()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.orientation ( self)
Return the cameraGeom.Orientation() object defined by the
configuration values.

Definition at line 118 of file cameraConfig.py.

118 def orientation(self):
119 """Return the cameraGeom.Orientation() object defined by the
120 configuration values.
121 """
122 return Orientation(self.offset, self.refPos,
123 geom.Angle(self.yawDeg, geom.degrees),
124 geom.Angle(self.pitchDeg, geom.degrees),
125 geom.Angle(self.rollDeg, geom.degrees))
126
A class representing an angle.
Definition Angle.h:128

◆ pixelSize()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.pixelSize ( self)
Return the pixel size as an Extent2D from the separate values.

Definition at line 128 of file cameraConfig.py.

128 def pixelSize(self):
129 """Return the pixel size as an Extent2D from the separate values.
130 """
131 return geom.Extent2D(self.pixelSize_x, self.pixelSize_y)
132
133
table::Point2DKey pixelSize
Definition Detector.cc:166

◆ refPos()

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.refPos ( self)
Return the detector reference position as a Point2D from the
separate config values.

Definition at line 111 of file cameraConfig.py.

111 def refPos(self):
112 """Return the detector reference position as a Point2D from the
113 separate config values.
114 """
115 return geom.Point2D(self.refpos_x, self.refpos_y)
116

Member Data Documentation

◆ bbox_x0

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.bbox_x0 = pexConfig.Field("x0 of pixel bounding box", int)
static

Definition at line 39 of file cameraConfig.py.

◆ bbox_x1

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.bbox_x1 = pexConfig.Field("x1 of pixel bounding box", int)
static

Definition at line 41 of file cameraConfig.py.

◆ bbox_y0

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.bbox_y0 = pexConfig.Field("y0 of pixel bounding box", int)
static

Definition at line 40 of file cameraConfig.py.

◆ bbox_y1

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.bbox_y1 = pexConfig.Field("y1 of pixel bounding box", int)
static

Definition at line 42 of file cameraConfig.py.

◆ crosstalk

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.crosstalk
static
Initial value:
= pexConfig.ListField(
dtype=float,
doc=("Flattened crosstalk coefficient matrix; should have nAmps x nAmps entries. "
"Once 'reshape'-ed, ``coeffs[i][j]`` is the fraction of the j-th amp present on the i-th amp."),
optional=True
)

Definition at line 75 of file cameraConfig.py.

◆ detectorType

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.detectorType
static
Initial value:
= pexConfig.Field(
"Detector type: SCIENCE=0, FOCUS=1, GUIDER=2, WAVEFRONT=3", int)

Definition at line 43 of file cameraConfig.py.

◆ id

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.id = pexConfig.Field("ID of detector slot", int)
static

Definition at line 38 of file cameraConfig.py.

◆ name

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.name = pexConfig.Field("Name of detector slot", str)
static

Definition at line 37 of file cameraConfig.py.

◆ offset

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.offset

Definition at line 122 of file cameraConfig.py.

◆ offset_x

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.offset_x
static
Initial value:
= pexConfig.Field(
"x offset from the origin of the camera in mm in the transposed system.", float)

Definition at line 49 of file cameraConfig.py.

◆ offset_y

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.offset_y
static
Initial value:
= pexConfig.Field(
"y offset from the origin of the camera in mm in the transposed system.", float)

Definition at line 51 of file cameraConfig.py.

◆ offset_z

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.offset_z
static
Initial value:
= pexConfig.Field(
"z offset from the origin of the camera in mm in the transposed system.", float, default=0.0)

Definition at line 53 of file cameraConfig.py.

◆ physicalType

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.physicalType
static
Initial value:
= pexConfig.Field(
"How this specific detector is constructed; e.g. CCD, E2V, HgCdTe ", str, default="CCD")

Definition at line 45 of file cameraConfig.py.

◆ pitchDeg

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.pitchDeg
static
Initial value:
= pexConfig.Field(
"pitch (rotation about y) of the detector in degrees", float)

Definition at line 63 of file cameraConfig.py.

◆ pixelSize_x

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.pixelSize_x = pexConfig.Field("Pixel size in the x dimension in mm", float)
static

Definition at line 67 of file cameraConfig.py.

◆ pixelSize_y

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.pixelSize_y = pexConfig.Field("Pixel size in the y dimension in mm", float)
static

Definition at line 68 of file cameraConfig.py.

◆ refPos

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.refPos

Definition at line 122 of file cameraConfig.py.

◆ refpos_x

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.refpos_x
static
Initial value:
= pexConfig.Field("x position of the reference point in the detector in pixels "
"in transposed coordinates.", float)

Definition at line 55 of file cameraConfig.py.

◆ refpos_y

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.refpos_y
static
Initial value:
= pexConfig.Field("y position of the reference point in the detector in pixels "
"in transposed coordinates.", float)

Definition at line 57 of file cameraConfig.py.

◆ rollDeg

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.rollDeg
static
Initial value:
= pexConfig.Field(
"roll (rotation about x) of the detector in degrees", float)

Definition at line 65 of file cameraConfig.py.

◆ serial

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.serial
static
Initial value:
= pexConfig.Field(
"Serial string associated with this specific detector", str)

Definition at line 47 of file cameraConfig.py.

◆ transformDict

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.transformDict
static
Initial value:
= pexConfig.ConfigField(
"Dictionary of camera transforms keyed on the transform type.", TransformMapConfig)

Definition at line 35 of file cameraConfig.py.

◆ transposeDetector

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.transposeDetector
static
Initial value:
= pexConfig.Field(
"Transpose the pixel grid before orienting in focal plane?", bool)

Definition at line 72 of file cameraConfig.py.

◆ yawDeg

lsst.afw.cameraGeom.cameraConfig.DetectorConfig.yawDeg
static
Initial value:
= pexConfig.Field("yaw (rotation about z) of the detector in degrees. "
"This includes any necessary rotation to go from "
"detector coordinates to camera coordinates "
"after optional transposition.", float)

Definition at line 59 of file cameraConfig.py.


The documentation for this class was generated from the following file: