lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 Construct a CameraWrapper. More...
 
def nDetectors
 Return the number of detectors. More...
 
def makeDetectorConfigs
 Construct a list of DetectorConfig, one per detector. More...
 
def makeAmpCatalogs
 Construct a list of AmpInfoCatalog, one per detector. More...
 
def makeTestRepositoryItems
 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 122 of file testUtils.py.

Constructor & Destructor Documentation

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 PUPIL 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 128 of file testUtils.py.

Member Function Documentation

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 201 of file testUtils.py.

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

Construct a list of DetectorConfig, one per detector.

Definition at line 159 of file testUtils.py.

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 334 of file testUtils.py.

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

Return the number of detectors.

Definition at line 155 of file testUtils.py.

Member Data Documentation

lsst.afw.cameraGeom.testUtils.CameraWrapper.ampCatalogDict

Definition at line 149 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.ampInfoDict

Definition at line 147 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.camera

Definition at line 151 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.detectorIdList

Definition at line 146 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.detectorNameList

Definition at line 145 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.plateScale

Definition at line 143 of file testUtils.py.

lsst.afw.cameraGeom.testUtils.CameraWrapper.radialDistortion

Definition at line 144 of file testUtils.py.


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