lsst.afw  14.0-38-g278b05818
Public Member Functions | Public Attributes | List of all members
lsst.afw.cameraGeom.testUtils.CameraWrapper Class Reference
Inheritance diagram for lsst.afw.cameraGeom.testUtils.CameraWrapper:

Public Member Functions

def __init__ (self, plateScale=20.0, radialDistortion=0.925, isLsstLike=False)
 Construct a CameraWrapper. More...
 
def nDetectors (self)
 Return the number of detectors. More...
 
def makeDetectorConfigs (self, detFile)
 Construct a list of DetectorConfig, one per detector. More...
 
def makeAmpCatalogs (self, ampFile, isLsstLike=False)
 Construct a list of AmpInfoCatalog, one per detector. More...
 
def makeTestRepositoryItems (self, isLsstLike=False)
 Make camera config and amp catalog dictionary, using default detector and amp files. More...
 

Public Attributes

 plateScale
 
 radialDistortion
 
 detectorNameList
 
 detectorIdList
 
 ampInfoDict
 
 ampCatalogDict
 
 camera
 

Detailed Description

A simple Camera and the data used to construct it

Intended for use with unit tests, thus saves some interesting information.

Definition at line 129 of file testUtils.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.cameraGeom.testUtils.CameraWrapper.__init__ (   self,
  plateScale = 20.0,
  radialDistortion = 0.925,
  isLsstLike = False 
)

Construct a CameraWrapper.

Parameters
[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]isLsstLikemake repository products with one raw image per amplifier (True) or with one raw image per detector (False)

Definition at line 135 of file testUtils.py.

Member Function Documentation

◆ makeAmpCatalogs()

def lsst.afw.cameraGeom.testUtils.CameraWrapper.makeAmpCatalogs (   self,
  ampFile,
  isLsstLike = False 
)

Construct a list of AmpInfoCatalog, one per detector.

Parameters
[in]ampFilepath to amplifier data file
[in]isLsstLikeif True then there is one raw image per amplifier; if False then there is one raw image per detector

Definition at line 208 of file testUtils.py.

◆ makeDetectorConfigs()

def lsst.afw.cameraGeom.testUtils.CameraWrapper.makeDetectorConfigs (   self,
  detFile 
)

Construct a list of DetectorConfig, one per detector.

Definition at line 166 of file testUtils.py.

◆ makeTestRepositoryItems()

def lsst.afw.cameraGeom.testUtils.CameraWrapper.makeTestRepositoryItems (   self,
  isLsstLike = False 
)

Make camera config and amp catalog dictionary, using default detector and amp files.

Parameters
[in]isLsstLikeif True then there is one raw image per amplifier; if False then there is one raw image per detector

Definition at line 341 of file testUtils.py.

◆ nDetectors()

def lsst.afw.cameraGeom.testUtils.CameraWrapper.nDetectors (   self)

Return the number of detectors.

Definition at line 162 of file testUtils.py.

Member Data Documentation

◆ ampCatalogDict

lsst.afw.cameraGeom.testUtils.CameraWrapper.ampCatalogDict

Definition at line 156 of file testUtils.py.

◆ ampInfoDict

lsst.afw.cameraGeom.testUtils.CameraWrapper.ampInfoDict

Definition at line 154 of file testUtils.py.

◆ camera

lsst.afw.cameraGeom.testUtils.CameraWrapper.camera

Definition at line 158 of file testUtils.py.

◆ detectorIdList

lsst.afw.cameraGeom.testUtils.CameraWrapper.detectorIdList

Definition at line 153 of file testUtils.py.

◆ detectorNameList

lsst.afw.cameraGeom.testUtils.CameraWrapper.detectorNameList

Definition at line 152 of file testUtils.py.

◆ plateScale

lsst.afw.cameraGeom.testUtils.CameraWrapper.plateScale

Definition at line 150 of file testUtils.py.

◆ radialDistortion

lsst.afw.cameraGeom.testUtils.CameraWrapper.radialDistortion

Definition at line 151 of file testUtils.py.


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