CameraFrameSet#
- class lsst.images.CameraFrameSet(instrument, ast)#
Bases:
FrameSetA
FrameSetthat manages the coordinate systems of a camera.The
CameraFrameSetclass constructor is considered a private implementation detail. At present, instances can only be obtained by loading them from storage (viadeserialize) or converting a legacylsst.afw.cameraGeomobject (from_legacy).- Parameters:
instrument (
str) – Short (butler dimension) name of the instrument.ast (
FrameSet) – AST frame set describing the camera’s coordinate systems.
Attributes Summary
Name of the instrument (
str).Methods Summary
detector(detector, *[, visit])Return a detector pixel-coordinate frame for this instrument.
field_angle([visit])Return a field angle frame for this instrument.
focal_plane([visit])Return a focal plane frame for this instrument.
from_legacy(camera)Construct a transform from a legacy
lsst.afw.cameraGeom.Camera.get(in_frame, out_frame)Return the
Transformthat maps the two frames, orNoneif at least one is not known to theFrameSet.serialize(archive)Serialize the frame set to an archive.
Attributes Documentation
Methods Documentation
- detector(detector, *, visit=None)#
Return a detector pixel-coordinate frame for this instrument.
- Parameters:
detector (
int) – ID of the detector.visit (
int|None, default:None) – ID for the visit this frame will correspond to. This only needs to be provided in contexts where camera frames will be related to the sky via aSkyProjection.
- Return type:
- field_angle(visit=None)#
Return a field angle frame for this instrument.
- Parameters:
visit (
int|None, default:None) – ID for the visit this frame will correspond to. This only needs to be provided in contexts where camera frames will be related to the sky via aSkyProjection.- Return type:
- focal_plane(visit=None)#
Return a focal plane frame for this instrument.
- Parameters:
visit (
int|None, default:None) – ID for the visit this frame will correspond to. This only needs to be provided in contexts where camera frames will be related to the sky via aSkyProjection.- Return type:
- classmethod from_legacy(camera)#
Construct a transform from a legacy
lsst.afw.cameraGeom.Camera.- Parameters:
camera (
Any) – Anlsst.afw.cameraGeom.Camerainstance to convert.- Return type:
- get(in_frame, out_frame)#
Return the
Transformthat maps the two frames, orNoneif at least one is not known to theFrameSet.
- serialize(archive)#
Serialize the frame set to an archive.
- Parameters:
archive (
OutputArchive[Any]) – Archive to serialize to.- Returns:
Serialized form of the frame set.
- Return type: