3.1.18. combineFlatStreams

Combine two flat field streams into a single unified flat.

This primitive takes two streams of pre-processed flat fields (typically ‘FDDDF’ flats in the main stream and ‘DFFFD’ flats in a secondary stream) and creates a combined flat field by taking the maximum value at each pixel position. This produces a flat field with all fibers illuminated (FFFFF flat configuration).

3.1.18.1. Parameters

adinputslist of AstroData

Primary stream of flat objects (typically FDDDF flats).

suffixstr

Suffix to be added to output files.

stream_2str

Name of the secondary stream to combine with the main stream (typically ‘DFFFD_flats’).

3.1.18.2. Returns

list of AstroData

List containing a single AstroData object with the combined flat field data.

3.1.18.3. Parameter defaults and options

suffix               ''                   Filename suffix
stream_2             None                 Second stream to combine

3.1.18.4. Algorithm

Todo

add description

3.1.18.5. Issues and Limitations

Todo

add description