A collection of Detectors that also supports coordinate transformation.
More...
|
| def | __init__ (self, name, detectorList, transformMap, pupilFactoryClass=PupilFactory) |
| | Construct a Camera. More...
|
| |
| def | getName (self) |
| | Return the camera name. More...
|
| |
| def | getPupilFactory (self, visitInfo, pupilSize, npix) |
| | Construct a PupilFactory. More...
|
| |
| def | telescopeDiameter (self) |
| |
| def | findDetectors (self, cameraPoint) |
| | Find the detectors that cover a given cameraPoint, or empty list. More...
|
| |
| def | findDetectorsList (self, cameraPointList, coordSys) |
| | Find the detectors that cover a list of points specified by x and y coordinates in any system. More...
|
| |
| def | getTransformMap (self) |
| | Obtain the transform registry. More...
|
| |
| def | transform (self, cameraPoint, toSys) |
| | Transform a CameraPoint to a different CameraSys. More...
|
| |
| def | makeCameraPoint (self, point, cameraSys) |
| | Make a CameraPoint from a Point2D and a CameraSys. More...
|
| |
| def | __init__ (self, detectorList) |
| | Construct a DetectorCollection. More...
|
| |
| def | __iter__ (self) |
| | Support the iter function: return an iterator over all detectors in this collection. More...
|
| |
| def | __len__ (self) |
| | Support the len function: return the number of detectors. More...
|
| |
| def | __getitem__ (self, key) |
| | Support the [key] operator: return the specified detector. More...
|
| |
| def | __contains__ (self, key) |
| | Implement the "in" operator: return true if the specified detector is in the collection. More...
|
| |
| def | getNameIter (self) |
| | Get an iterator over detector names. More...
|
| |
| def | getIdIter (self) |
| | Get an iterator over detector IDs. More...
|
| |
| def | getFpBBox (self) |
| | Return a focal plane bounding box that encompasses all detectors. More...
|
| |
A collection of Detectors that also supports coordinate transformation.
Definition at line 30 of file camera.py.
◆ __init__()
| def lsst.afw.cameraGeom.camera.Camera.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
detectorList, |
|
|
|
transformMap, |
|
|
|
pupilFactoryClass = PupilFactory |
|
) |
| |
Construct a Camera.
- Parameters
-
| [in] | name | name of camera |
| [in] | detectorList | a sequence of detectors in index order |
| [in] | transformMap | a CameraTransformMap whose native system is FOCAL_PLANE and that at least supports PUPIL coordinates |
| [in] | pupilFactoryClass | a PupilFactory class for this camera [default: afw.cameraGeom.PupilFactory] |
Definition at line 34 of file camera.py.
◆ findDetectors()
| def lsst.afw.cameraGeom.camera.Camera.findDetectors |
( |
|
self, |
|
|
|
cameraPoint |
|
) |
| |
Find the detectors that cover a given cameraPoint, or empty list.
- Parameters
-
| [in] | cameraPoint | position to use in lookup |
- Returns
- a list of zero or more Detectors that overlap the specified point
Definition at line 140 of file camera.py.
◆ findDetectorsList()
| def lsst.afw.cameraGeom.camera.Camera.findDetectorsList |
( |
|
self, |
|
|
|
cameraPointList, |
|
|
|
coordSys |
|
) |
| |
Find the detectors that cover a list of points specified by x and y coordinates in any system.
- Parameters
-
| [in] | cameraPointList | a list of cameraPoints |
| [in] | coordSys | the camera coordinate system in which cameraPointList is defined |
- Returns
- a list of lists; each list contains the names of all detectors which contain the corresponding point
Definition at line 161 of file camera.py.
◆ getName()
| def lsst.afw.cameraGeom.camera.Camera.getName |
( |
|
self | ) |
|
Return the camera name.
Definition at line 50 of file camera.py.
◆ getPupilFactory()
| def lsst.afw.cameraGeom.camera.Camera.getPupilFactory |
( |
|
self, |
|
|
|
visitInfo, |
|
|
|
pupilSize, |
|
|
|
npix |
|
) |
| |
Construct a PupilFactory.
- Parameters
-
| [in] | visitInfo | VisitInfo object for a particular exposure. |
| [in] | pupilSize | Size in meters of constructed Pupil array. Note that this may be larger than the actual diameter of the illuminated pupil to accommodate zero-padding. |
| [in] | npix | Constructed Pupils will be npix x npix. |
Definition at line 55 of file camera.py.
◆ getTransformMap()
| def lsst.afw.cameraGeom.camera.Camera.getTransformMap |
( |
|
self | ) |
|
Obtain the transform registry.
- Returns
- a TransformMap
- Note
- : TransformRegistries are immutable, so this should be safe.
Definition at line 190 of file camera.py.
◆ makeCameraPoint()
| def lsst.afw.cameraGeom.camera.Camera.makeCameraPoint |
( |
|
self, |
|
|
|
point, |
|
|
|
cameraSys |
|
) |
| |
◆ telescopeDiameter()
| def lsst.afw.cameraGeom.camera.Camera.telescopeDiameter |
( |
|
self | ) |
|
◆ transform()
| def lsst.afw.cameraGeom.camera.Camera.transform |
( |
|
self, |
|
|
|
cameraPoint, |
|
|
|
toSys |
|
) |
| |
The documentation for this class was generated from the following file: