scopesim.detector.detector_array module

Contains DetectorArray and aux functions.

class scopesim.detector.detector_array.DetectorArray(detector_list=None, cmds=None, **kwargs)[source]

Bases: object

Manages the individual Detectors, mostly used for readout.

readout(image_planes, array_effects=None, dtcr_effects=None, **kwargs) HDUList[source]

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_planeslist of ImagePlane objects

The correct image plane is automatically chosen from the list

array_effectslist of Effect objects

A list of effects related to the detector array

dtcr_effectslist of Effect objects

A list of effects related to the detectors

Returns:
latest_exposurefits.HDUList

Output FITS HDU List.

scopesim.detector.detector_array.make_effects_hdu(effects)[source]
scopesim.detector.detector_array.make_primary_hdu(meta)[source]

Create the primary header from meta data.