Detector#
- final class lsst.images.cameras.Detector(attributes, amplifiers, frames, visit=None)#
Bases:
objectInformation about a detector in a camera.
- Parameters:
attributes (
DetectorAttributes) – Identifying attributes and metadata for the detector.amplifiers (
Iterable[Amplifier]) – Amplifiers that make up the detector.frames (
CameraFrameSet) – Coordinate systems and transforms for the camera.visit (
int|None, default:None) – Visit number whose geometry to use, orNonefor the nominal detector geometry.
Attributes Summary
Bounding box of the detector's science data region after amplifier assembly (
Box).The coordinate system of this detector's trimmed, assembled pixel grid (
DetectorFrame).ID of the detector (
int).The name of the instrument this detector belongs to (
str).Name of the detector (
str).Nominal position and rotation of the detector (
Orientation).Vendor name or technology type for this detector (
str).Nominal size of a pixel (assumed square) in focal plane coordinate units (
float).Serial number for the detector (
str).The transform from pixels to field angle coordinates (
Transform[DetectorFrame,FieldAngleFrame]).The transform from pixels to focal-plane coordinates (
Transform[DetectorFrame,FocalPlaneFrame]).Enumerated type of the detector (
DetectorType).The ID of the visit this detector is associated with (
intorNone).Methods Summary
copy()Copy the detector.
from_legacy(legacy_detector, *, instrument)Convert from a legacy
lsst.afw.cameraGeom.Detectorinstance.serialize(archive[, save_frames])Serialize this detector to an archive.
to_legacy(*[, is_raw_assembled])Convert to a legacy
lsst.afw.cameraGeom.Detectorinstance.Attributes Documentation
- frame#
The coordinate system of this detector’s trimmed, assembled pixel grid (
DetectorFrame).
- orientation#
Nominal position and rotation of the detector (
Orientation).
- physical_type#
Vendor name or technology type for this detector (
str).This may have a different interpretation for different cameras.
- to_field_angle#
The transform from pixels to field angle coordinates (
Transform[DetectorFrame,FieldAngleFrame]).
- to_focal_plane#
The transform from pixels to focal-plane coordinates (
Transform[DetectorFrame,FocalPlaneFrame]).
- type#
Enumerated type of the detector (
DetectorType).
Methods Documentation
- copy()#
Copy the detector.
This deep-copies all data fields and amplifiers, but only shallow-copies the internal
CameraFrameSet, as that’s conceptually immutable.- Return type:
- static from_legacy(legacy_detector, *, instrument, visit=None, is_raw_assembled=None)#
Convert from a legacy
lsst.afw.cameraGeom.Detectorinstance.- Parameters:
legacy_detector (
TypeAliasType) – Legacy detector to convert.instrument (
str) – Name of the instrument this detector belongs to.visit (
int|None, default:None) – Visit ID, if this camera geometry can be associated with a particular visit.is_raw_assembled (
bool|None, default:None) – Whether to populateAmplifier.assembled_raw_geometry(True) orAmplifier.unassembled_raw_geometry(False). IfNone, this is set tovisit is not None, since we expect to only add a visit ID to detectors that have been assembled.
- Return type:
- serialize(archive, save_frames=True)#
Serialize this detector to an archive.
- Parameters:
archive (
OutputArchive[Any]) – Archive to save to.save_frames (
bool, default:True) – Whether to save theCameraFrameSetheld by this detector. This allows the frame set to be saved once for multiple detectors when they are part of a multi-detector object.
- Return type:
- to_legacy(*, is_raw_assembled=None)#
Convert to a legacy
lsst.afw.cameraGeom.Detectorinstance.- Parameters:
is_raw_assembled (
bool|None, default:None) – Whether to useAmplifier.assembled_raw_geometry(True) orAmplifier.unassembled_raw_geometry(False). IfNone, this is set toself.visit is not None, since we expect to only add a visit ID to detectors that have been assembled.- Return type:
TypeAliasType