A collection of Detectors plus additional coordinate system support.
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, kwargs) |
| | Construct a PupilFactory. More...
|
| |
| def | telescopeDiameter (self) |
| |
| def | findDetectors (self, point, cameraSys) |
| | Find the detectors that cover a point in any camera system. More...
|
| |
| def | findDetectorsList (self, pointList, cameraSys) |
| | Find the detectors that cover a list of points in any camera system. More...
|
| |
| def | getTransform (self, fromSys, toSys) |
| | Get a transform from one CameraSys to another. More...
|
| |
| def | getTransformMap (self) |
| | Obtain the transform registry. More...
|
| |
| def | transform (self, points, fromSys, toSys) |
| | Transform a point or list of points from one camera coordinate system to another. 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 plus additional coordinate system support.
Camera.transform transforms points from one camera coordinate system to another.
Camera.getTransform returns a transform between camera coordinate systems.
Camera.findDetectors finds all detectors overlapping a specified point.
Definition at line 28 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 TransformMap that at least supports FOCAL_PLANE and FIELD_ANGLE coordinates |
| [in] | pupilFactoryClass | a PupilFactory class for this camera [default: afw.cameraGeom.PupilFactory] |
Definition at line 38 of file camera.py.
◆ __contains__()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
|
inherited |
Implement the "in" operator: return true if the specified detector is in the collection.
- Parameters
-
| [in] | key | detector name or ID |
Definition at line 66 of file detectorCollection.py.
◆ __getitem__()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
|
inherited |
Support the [key] operator: return the specified detector.
- Parameters
-
| [in] | key | detector name or ID |
Definition at line 56 of file detectorCollection.py.
◆ __iter__()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__iter__ |
( |
|
self | ) |
|
|
inherited |
Support the iter function: return an iterator over all detectors in this collection.
Definition at line 46 of file detectorCollection.py.
◆ __len__()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__len__ |
( |
|
self | ) |
|
|
inherited |
◆ findDetectors()
| def lsst.afw.cameraGeom.camera.Camera.findDetectors |
( |
|
self, |
|
|
|
point, |
|
|
|
cameraSys |
|
) |
| |
Find the detectors that cover a point in any camera system.
- Parameters
-
| [in] | point | position to use in lookup (lsst.geom.Point2D) |
| [in] | cameraSys | camera coordinate system of point |
- Returns
- a list of zero or more Detectors that overlap the specified point
Definition at line 103 of file camera.py.
◆ findDetectorsList()
| def lsst.afw.cameraGeom.camera.Camera.findDetectorsList |
( |
|
self, |
|
|
|
pointList, |
|
|
|
cameraSys |
|
) |
| |
Find the detectors that cover a list of points in any camera system.
- Parameters
-
| [in] | pointList | a list of points (lsst.geom.Point2D) |
| [in] | cameraSys | the camera coordinate system of the points in pointList |
- Returns
- a list of lists; each list contains the names of all detectors which contain the corresponding point
Definition at line 122 of file camera.py.
◆ getFpBBox()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getFpBBox |
( |
|
self | ) |
|
|
inherited |
Return a focal plane bounding box that encompasses all detectors.
Definition at line 86 of file detectorCollection.py.
◆ getIdIter()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getIdIter |
( |
|
self | ) |
|
|
inherited |
◆ getName()
| def lsst.afw.cameraGeom.camera.Camera.getName |
( |
|
self | ) |
|
Return the camera name.
Definition at line 54 of file camera.py.
◆ getNameIter()
| def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getNameIter |
( |
|
self | ) |
|
|
inherited |
◆ getPupilFactory()
| def lsst.afw.cameraGeom.camera.Camera.getPupilFactory |
( |
|
self, |
|
|
|
visitInfo, |
|
|
|
pupilSize, |
|
|
|
npix, |
|
|
|
kwargs |
|
) |
| |
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. |
| [in] | kwargs | Other keyword arguments for the pupil factory |
Definition at line 59 of file camera.py.
◆ getTransform()
| def lsst.afw.cameraGeom.camera.Camera.getTransform |
( |
|
self, |
|
|
|
fromSys, |
|
|
|
toSys |
|
) |
| |
Get a transform from one CameraSys to another.
- Parameters
-
- Returns
- an lsst.afw.geom.TransformPoint2ToPoint2 that transforms from
fromSys to toSys in the forward direction
- Exceptions
-
| lsst.pex.exceptions.InvalidParameter | if no transform is available. |
| KeyError | if an unknown detector is specified |
Definition at line 150 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 167 of file camera.py.
◆ telescopeDiameter()
| def lsst.afw.cameraGeom.camera.Camera.telescopeDiameter |
( |
|
self | ) |
|
◆ transform()
| def lsst.afw.cameraGeom.camera.Camera.transform |
( |
|
self, |
|
|
|
points, |
|
|
|
fromSys, |
|
|
|
toSys |
|
) |
| |
Transform a point or list of points from one camera coordinate system to another.
- Parameters
-
- Returns
points transformed to toSys (an lsst.geom.Point2D or list of Point2D)
Definition at line 176 of file camera.py.
The documentation for this class was generated from the following file: