LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | 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

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

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
 
 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()

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

Definition at line 94 of file cameraConfig.py.

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

◆ getCrosstalk()

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

Definition at line 81 of file cameraConfig.py.

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

◆ offset()

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

Definition at line 102 of file cameraConfig.py.

102  def offset(self):
103  """Return the detector offset as a Point2D from the separate config
104  values.
105  """
106  return geom.Point2D(self.offset_x, self.offset_y)
107 

◆ orientation()

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

Definition at line 116 of file cameraConfig.py.

116  def orientation(self):
117  """Return the cameraGeom.Orientation() object defined by the
118  configuration values.
119  """
120  return Orientation(self.offset, self.refPos,
121  geom.Angle(self.yawDeg, geom.degrees),
122  geom.Angle(self.pitchDeg, geom.degrees),
123  geom.Angle(self.rollDeg, geom.degrees))
124 
A class representing an angle.
Definition: Angle.h:127
int orientation(UnitVector3d const &a, UnitVector3d const &b, UnitVector3d const &c)
orientation computes and returns the orientations of 3 unit vectors a, b and c.
Definition: orientation.cc:135

◆ pixelSize()

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

Definition at line 126 of file cameraConfig.py.

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

◆ refPos()

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

Definition at line 109 of file cameraConfig.py.

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

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 73 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_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.

◆ 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 61 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 65 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 66 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 53 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 55 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 63 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 70 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 57 of file cameraConfig.py.


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