LSST Applications g1cfbe01172+01aa18f939,g20cdd03214+31e6b93548,g28da252d5a+ea8665a95b,g2bbee38e9b+9ec6cc348d,g2bc492864f+9ec6cc348d,g347aa1857d+9ec6cc348d,g3a166c0a6a+9ec6cc348d,g4322eb9e3a+65eff1e020,g461a3dce89+b86e4b8053,g50ff169b8f+f991eae79d,g52b1c1532d+b86e4b8053,g607f77f49a+31e6b93548,g78056777b3+8ae2798781,g858d7b2824+31e6b93548,g8cd86fa7b1+4851e61ca4,g9ddcbc5298+f24b38b85a,ga1e77700b3+3309dba821,gae0086650b+b86e4b8053,gb0e22166c9+6076c0b52b,gbb886bcc26+dccb771098,gbd462c55f0+dc07f8e65d,gc0c51c7ec2+31e6b93548,gc120e1dc64+a417ce3171,gc28159a63d+9ec6cc348d,gc2a6998b7e+f95f64aeae,gcdd4ae20e8+507450c4cd,gcf0d15dbbd+507450c4cd,gd1535ee943+bcf88ba65f,gd598c5cd71+66126f91fb,gdaeeff99f8+006e14e809,gdbce86181e+39d5515b1a,ge3d4d395c2+b12d4d6a95,ge79ae78c31+9ec6cc348d,gf048a9a2f4+d9c36e6b63,gfbcc870c63+ea41c4420b,w.2024.27
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: