scopesim.detector.detector_manager.DetectorManager#
- class scopesim.detector.detector_manager.DetectorManager(detector_list=None, cmds=None, **kwargs)#
Bases:
SequenceManages the individual Detectors, mostly used for readout.
- __init__(detector_list=None, cmds=None, **kwargs)#
Methods
__init__([detector_list, cmds])count(value)S.count(value) -> integer -- return number of occurrences of value
index(value[, start, stop])S.index(value, [start, [stop]]) -> integer -- return first index of value.
Return the (initially empty) HDUList produced by the readout.
readout(image_planes[, array_effects, ...])Read out the detector array into a FITS HDU List.
- count(value)#
S.count(value) -> integer – return number of occurrences of value
- index(value, start=0, stop=None)#
S.index(value, [start, [stop]]) -> integer – return first index of value. Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
- readout(image_planes, array_effects=None, dtcr_effects=None, **kwargs) HDUList#
Read out the detector array into a FITS HDU List.
Select the relevant image plane to extract images from.
Apply detector array effects (apply to the entire image plane)
Make a series of Detectors for each row in a DetectorList object.
Iterate through all Detectors, extract image from image_plane.
Apply all effects (to all Detectors).
Add necessary header keywords (not implemented).
Generate a HDUList with the ImageHDUs and any extras:
add
PrimaryHDUwith meta data regarding observation in headeradd
ImageHDUobjectsadd
ASCIITableHDUwith Effects meta data in final table extension (not implemented)
- Parameters:
- Returns:
latest_exposure – Output FITS HDU List.
- Return type:
fits.HDUList