lsst.afw g10abae039c+de8826df4f
Loading...
Searching...
No Matches
lsst.afw.cameraGeom.testUtils.DetectorWrapper Class Reference

Public Member Functions

 __init__ (self, name="detector 1", id=1, detType=DetectorType.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, physicalType="CCD", cameraBuilder=None)
 

Public Attributes

 name = name
 
 id = int(id)
 
 type = detType
 
 serial = serial
 
 bbox = bbox
 
 pixelSize = lsst.geom.Extent2D(*pixelSize)
 
 ampExtent = lsst.geom.Extent2I(*ampExtent)
 
 plateScale = float(plateScale)
 
 orientation = orientation
 
 radialDistortion = float(radialDistortion)
 
dict transMap
 
 crosstalk = crosstalk
 
 physicalType = physicalType
 
list ampList = []
 
 detector = camera[self.name]
 

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.

Parameters
----------
name : `str` (optional)
    Detector name.
id : `int` (optional)
    Detector ID.
detType : `lsst.afw.cameraGeom.DetectorType` (optional)
    Detector type.
serial : `str` (optional)
    Serial "number".
bbox : `lsst.geom.Box2I` (optional)
    Bounding box; defaults to (0, 0), (1024x1024).
numAmps : `int` (optional)
    Number of amplifiers.
pixelSize : `lsst.geom.Point2D` (optional)
    Pixel size (mm).
ampExtent : `lsst.geom.Extent2I` (optional)
    Dimensions of amplifier image bbox.
orientation : `lsst.afw.cameraGeom.Orientation` (optional)
    Orientation of CCC in focal plane.
plateScale : `float` (optional)
    Plate scale in arcsec/mm; 20.0 is for LSST.
radialDistortion : `float` (optional)
    Radial 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
crosstalk : `iterable` (optional)
    Crosstalk coefficient matrix. If None, then no crosstalk correction
    can be performed.
modFunc : `callable` (optional)
    A function that can modify attributes just before constructing the
    detector; modFunc receives one argument: a DetectorWrapper with all
    attributes except detector set.
physicalType : `str` (optional)
    The physical type of the device, e.g. CCD, E2V, HgCdTe

Definition at line 42 of file testUtils.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.afw.cameraGeom.testUtils.DetectorWrapper.__init__ ( self,
name = "detector 1",
id = 1,
detType = DetectorType.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,
physicalType = "CCD",
cameraBuilder = None )

Definition at line 86 of file testUtils.py.

Member Data Documentation

◆ ampExtent

lsst.afw.cameraGeom.testUtils.DetectorWrapper.ampExtent = lsst.geom.Extent2I(*ampExtent)

Definition at line 113 of file testUtils.py.

◆ ampList

list lsst.afw.cameraGeom.testUtils.DetectorWrapper.ampList = []

Definition at line 142 of file testUtils.py.

◆ bbox

lsst.afw.cameraGeom.testUtils.DetectorWrapper.bbox = bbox

Definition at line 111 of file testUtils.py.

◆ crosstalk

lsst.afw.cameraGeom.testUtils.DetectorWrapper.crosstalk = crosstalk

Definition at line 138 of file testUtils.py.

◆ detector

lsst.afw.cameraGeom.testUtils.DetectorWrapper.detector = camera[self.name]

Definition at line 167 of file testUtils.py.

◆ id

lsst.afw.cameraGeom.testUtils.DetectorWrapper.id = int(id)

Definition at line 106 of file testUtils.py.

◆ name

lsst.afw.cameraGeom.testUtils.DetectorWrapper.name = name

Definition at line 105 of file testUtils.py.

◆ orientation

lsst.afw.cameraGeom.testUtils.DetectorWrapper.orientation = orientation

Definition at line 115 of file testUtils.py.

◆ physicalType

lsst.afw.cameraGeom.testUtils.DetectorWrapper.physicalType = physicalType

Definition at line 139 of file testUtils.py.

◆ pixelSize

lsst.afw.cameraGeom.testUtils.DetectorWrapper.pixelSize = lsst.geom.Extent2D(*pixelSize)

Definition at line 112 of file testUtils.py.

◆ plateScale

lsst.afw.cameraGeom.testUtils.DetectorWrapper.plateScale = float(plateScale)

Definition at line 114 of file testUtils.py.

◆ radialDistortion

lsst.afw.cameraGeom.testUtils.DetectorWrapper.radialDistortion = float(radialDistortion)

Definition at line 116 of file testUtils.py.

◆ serial

lsst.afw.cameraGeom.testUtils.DetectorWrapper.serial = serial

Definition at line 108 of file testUtils.py.

◆ transMap

dict lsst.afw.cameraGeom.testUtils.DetectorWrapper.transMap
Initial value:
= {
FOCAL_PLANE: self.orientation.makePixelFpTransform(self.pixelSize),
tanPixelSys: pixelToTanPixel,
actualPixelSys: afwGeom.makeRadialTransform([0, 0.95, 0.01]),
}

Definition at line 131 of file testUtils.py.

◆ type

lsst.afw.cameraGeom.testUtils.DetectorWrapper.type = detType

Definition at line 107 of file testUtils.py.


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