|
lsst.afw
18.1.0-12-g0d73a3591
|
Functions | |
| def | makeDetectorData (detectorConfig, ampInfoCatalog, focalPlaneToField) |
| def | makeDetector (detectorConfig, ampInfoCatalog, focalPlaneToField) |
| def | copyDetector (detector, ampInfoCatalog=None) |
| def | makeOrientation (detectorConfig) |
| def | makeTransformDict (transformConfigDict) |
| def | makeCameraFromPath (cameraConfig, ampInfoPath, shortNameFunc, pupilFactoryClass=PupilFactory) |
| def | makeCameraFromCatalogs (cameraConfig, ampInfoCatDict, pupilFactoryClass=PupilFactory) |
Variables | |
| list | cameraSysList = [FIELD_ANGLE, FOCAL_PLANE, PIXELS, TAN_PIXELS, ACTUAL_PIXELS] |
| cameraSysMap = dict((sys.getSysName(), sys) for sys in cameraSysList) | |
| def lsst.afw.cameraGeom.cameraFactory.copyDetector | ( | detector, | |
ampInfoCatalog = None |
|||
| ) |
Return a copy of a Detector with possibly-updated amplifier information.
No deep copies are made; the input transformDict is used unmodified
Parameters
----------
detector : `lsst.afw.cameraGeom.Detector`
The Detector to clone
ampInfoCatalog The ampInfoCatalog to use; default use original
Returns
-------
detector : `lsst.afw.cameraGeom.Detector`
New Detector instance.
Definition at line 123 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeCameraFromCatalogs | ( | cameraConfig, | |
| ampInfoCatDict, | |||
pupilFactoryClass = PupilFactory |
|||
| ) |
Construct a Camera instance from a dictionary of detector name: AmpInfoCatalog
Parameters
----------
cameraConfig : `CameraConfig`
Config describing camera and its detectors.
ampInfoCatDict : `dict`
A dictionary of detector name: AmpInfoCatalog
pupilFactoryClass : `type`, optional
Class to attach to camera; `lsst.default afw.cameraGeom.PupilFactory`.
Returns
-------
camera : `lsst.afw.cameraGeom.Camera`
New Camera instance.
Definition at line 224 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeCameraFromPath | ( | cameraConfig, | |
| ampInfoPath, | |||
| shortNameFunc, | |||
pupilFactoryClass = PupilFactory |
|||
| ) |
Make a Camera instance from a directory of ampInfo files
The directory must contain one ampInfo fits file for each detector in cameraConfig.detectorList.
The name of each ampInfo file must be shortNameFunc(fullDetectorName) + ".fits".
Parameters
----------
cameraConfig : `CameraConfig`
Config describing camera and its detectors.
ampInfoPath : `str`
Path to ampInfo data files.
shortNameFunc : callable
A function that converts a long detector name to a short one.
pupilFactoryClass : `type`, optional
Class to attach to camera; default is `lsst.afw.cameraGeom.PupilFactory`.
Returns
-------
camera : `lsst.afw.cameraGeom.Camera`
New Camera instance.
Definition at line 191 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeDetector | ( | detectorConfig, | |
| ampInfoCatalog, | |||
| focalPlaneToField | |||
| ) |
Make a Detector instance from a detector config and amp info catalog
Parameters
----------
detectorConfig : `lsst.pex.config.Config`
Configuration for this detector.
ampInfoCatalog : `lsst.afw.table.AmpInfoCatalog`
amplifier information for this detector
focalPlaneToField : `lsst.afw.geom.TransformPoint2ToPoint2`
FOCAL_PLANE to FIELD_ANGLE Transform
Returns
-------
detector : `lsst.afw.cameraGeom.Detector`
New Detector instance.
Definition at line 102 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeDetectorData | ( | detectorConfig, | |
| ampInfoCatalog, | |||
| focalPlaneToField | |||
| ) |
Build a dictionary of Detector constructor keyword arguments.
The returned dictionary can be passed as keyword arguments to the Detector
constructor, providing all required arguments. However, using these
arguments directly constructs a Detector with knowledge of only the
coordinate systems that are *directly* mapped to its own PIXELS coordinate
system. To construct Detectors with a shared TransformMap for the full
Camera, use makeCameraFromCatalogs or makeCameraFromPath instead of
calling this function or makeDetector directly.
Parameters
----------
detectorConfig : `lsst.pex.config.Config`
Configuration for this detector.
ampInfoCatalog : `lsst.afw.table.AmpInfoCatalog`
amplifier information for this detector
focalPlaneToField : `lsst.afw.geom.TransformPoint2ToPoint2`
FOCAL_PLANE to FIELD_ANGLE Transform
Returns
-------
data : `dict`
Contains the following keys: name, id, type, serial, bbox, orientation,
pixelSize, transforms, ampInfoCatalog, and optionally crosstalk.
The transforms key is a dictionary whose values are Transforms that map
the Detector's PIXEL coordinate system to the CameraSys in the key.
Definition at line 38 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeOrientation | ( | detectorConfig | ) |
Make an Orientation instance from a detector config
Parameters
----------
detectorConfig : `lsst.pex.config.Config`
Configuration for this detector.
Returns
-------
orientation : `lsst.afw.cameraGeom.Orientation`
Location and rotation of the Detector.
Definition at line 148 of file cameraFactory.py.
| def lsst.afw.cameraGeom.cameraFactory.makeTransformDict | ( | transformConfigDict | ) |
Make a dictionary of CameraSys: lsst.afw.geom.Transform from a config dict.
Parameters
----------
transformConfigDict : value obtained from a `lsst.pex.config.ConfigDictField`
registry; keys are camera system names.
Returns
-------
transforms : `dict`
A dict of CameraSys or CameraSysPrefix: lsst.afw.geom.Transform
Definition at line 169 of file cameraFactory.py.
| list lsst.afw.cameraGeom.cameraFactory.cameraSysList = [FIELD_ANGLE, FOCAL_PLANE, PIXELS, TAN_PIXELS, ACTUAL_PIXELS] |
Definition at line 34 of file cameraFactory.py.
| lsst.afw.cameraGeom.cameraFactory.cameraSysMap = dict((sys.getSysName(), sys) for sys in cameraSysList) |
Definition at line 35 of file cameraFactory.py.
1.8.13