lsst.afw  14.0-60-ga423a1d65+2
Public Member Functions | Public Attributes | List of all members
lsst.afw.cameraGeom.testUtils.DetectorWrapper Class Reference

A Detector and the data used to construct it. More...

Inheritance diagram for lsst.afw.cameraGeom.testUtils.DetectorWrapper:

Public Member Functions

def __init__ (self, name="detector 1", id=1, detType=SCIENCE, serial="xkcd722", bbox=None, numAmps=3, pixelSize=(0.02, 0.02), ampExtent=(5, 6), orientation=Orientation(), plateScale=20.0, radialDistortion=0.925, crosstalk=None, modFunc=None)
 Construct a DetectorWrapper. More...
 

Public Attributes

 name
 
 id
 
 type
 
 serial
 
 bbox
 
 pixelSize
 
 ampExtent
 
 plateScale
 
 radialDistortion
 
 ampInfo
 
 orientation
 
 transMap
 
 crosstalk
 
 detector
 

Detailed Description

A Detector and the data used to construct it.

Intended for use with unit tests, thus saves a copy of all input parameters. Does not support setting details of amplifiers.

Definition at line 23 of file testUtils.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.cameraGeom.testUtils.DetectorWrapper.__init__ (   self,
  name = "detector 1",
  id = 1,
  detType = SCIENCE,
  serial = "xkcd722",
  bbox = None,
  numAmps = 3,
  pixelSize = (0.02, 0.02),
  ampExtent = (5, 6),
  orientation = Orientation(),
  plateScale = 20.0,
  radialDistortion = 0.925,
  crosstalk = None,
  modFunc = None 
)

Construct a DetectorWrapper.

Parameters
[in]namedetector name
[in]iddetector ID (int)
[in]detTypedetector type (an lsst.afw.cameraGeom.DetectorType)
[in]serialserial "number" (a string)
[in]bboxbounding box; defaults to (0, 0), (1024x1024) (an lsst.afw.geom.Box2I)
[in]numAmpsnumber of amplifiers (int)
[in]pixelSizepixel size (mm) (an lsst.afw.geom.Point2D)
[in]ampExtentdimensions of amplifier image bbox (an lsst.afw.geom.Extent2I)
[in]orientationorientation of CCC in focal plane (lsst.afw.cameraGeom.Orientation)
[in]plateScaleplate scale in arcsec/mm; 20.0 is for LSST
[in]radialDistortionradial distortion, in mm/rad^2 (the r^3 coefficient of the radial distortion polynomial that converts FIELD_ANGLE in radians to FOCAL_PLANE in mm); 0.925 is the value Dave Monet measured for lsstSim data
[in]crosstalkcrosstalk coefficient matrix
[in]modFunca function that can modify attributes just before constructing the detector; modFunc receives one argument: a DetectorWrapper with all attributes except detector set.

Definition at line 44 of file testUtils.py.

Member Data Documentation

◆ ampExtent

lsst.afw.cameraGeom.testUtils.DetectorWrapper.ampExtent

Definition at line 76 of file testUtils.py.

◆ ampInfo

lsst.afw.cameraGeom.testUtils.DetectorWrapper.ampInfo

Definition at line 80 of file testUtils.py.

◆ bbox

lsst.afw.cameraGeom.testUtils.DetectorWrapper.bbox

Definition at line 74 of file testUtils.py.

◆ crosstalk

lsst.afw.cameraGeom.testUtils.DetectorWrapper.crosstalk

Definition at line 112 of file testUtils.py.

◆ detector

lsst.afw.cameraGeom.testUtils.DetectorWrapper.detector

Definition at line 115 of file testUtils.py.

◆ id

lsst.afw.cameraGeom.testUtils.DetectorWrapper.id

Definition at line 68 of file testUtils.py.

◆ name

lsst.afw.cameraGeom.testUtils.DetectorWrapper.name

Definition at line 67 of file testUtils.py.

◆ orientation

lsst.afw.cameraGeom.testUtils.DetectorWrapper.orientation

Definition at line 91 of file testUtils.py.

◆ pixelSize

lsst.afw.cameraGeom.testUtils.DetectorWrapper.pixelSize

Definition at line 75 of file testUtils.py.

◆ plateScale

lsst.afw.cameraGeom.testUtils.DetectorWrapper.plateScale

Definition at line 77 of file testUtils.py.

◆ radialDistortion

lsst.afw.cameraGeom.testUtils.DetectorWrapper.radialDistortion

Definition at line 78 of file testUtils.py.

◆ serial

lsst.afw.cameraGeom.testUtils.DetectorWrapper.serial

Definition at line 70 of file testUtils.py.

◆ transMap

lsst.afw.cameraGeom.testUtils.DetectorWrapper.transMap

Definition at line 105 of file testUtils.py.

◆ type

lsst.afw.cameraGeom.testUtils.DetectorWrapper.type

Definition at line 69 of file testUtils.py.


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