LSST Applications g02d81e74bb+86cf3d8bc9,g180d380827+7a4e862ed4,g2079a07aa2+86d27d4dc4,g2305ad1205+e1ca1c66fa,g29320951ab+012e1474a1,g295015adf3+341ea1ce94,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+c429d67c83,g48712c4677+f88676dd22,g487adcacf7+27e1e21933,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+b41db86c35,g5a732f18d5+53520f316c,g64a986408d+86cf3d8bc9,g858d7b2824+86cf3d8bc9,g8a8a8dda67+585e252eca,g99cad8db69+84912a7fdc,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+a2b54eae19,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+6681f309db,gc120e1dc64+f0fcc2f6d8,gc28159a63d+0e5473021a,gcf0d15dbbd+c429d67c83,gdaeeff99f8+f9a426f77a,ge6526c86ff+0433e6603d,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+86cf3d8bc9,w.2024.17
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: