scopesim.detector.detector_manager.DetectorManager#

class scopesim.detector.detector_manager.DetectorManager(detector_list=None, cmds=None, **kwargs)#

Bases: Sequence

Manages 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.

latest_exposure()

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.

latest_exposure() HDUList#

Return the (initially empty) HDUList produced by the readout.

readout(image_planes, array_effects=None, dtcr_effects=None, **kwargs) HDUList#

Read out the detector array into a FITS HDU List.

  1. Select the relevant image plane to extract images from.

  2. Apply detector array effects (apply to the entire image plane)

  3. Make a series of Detectors for each row in a DetectorList object.

  4. Iterate through all Detectors, extract image from image_plane.

  5. Apply all effects (to all Detectors).

  6. Add necessary header keywords (not implemented).

  7. Generate a HDUList with the ImageHDUs and any extras:

  • add PrimaryHDU with meta data regarding observation in header

  • add ImageHDU objects

  • add ASCIITableHDU with Effects meta data in final table extension (not implemented)

Parameters:
  • image_planes (list of ImagePlane objects) – The correct image plane is automatically chosen from the list

  • array_effects (list of Effect objects) – A list of effects related to the detector array

  • dtcr_effects (list of Effect objects) – A list of effects related to the detectors

Returns:

latest_exposure – Output FITS HDU List.

Return type:

fits.HDUList