reduced darks and flats#

../../../_images/widget1.png

Behavior#

This widget generates reduced dark and/or flat frames from raw darks / flats frames.

Reduction methods#

For both darks and flats you can choose one of the following method:

  • Average: Computes the mean value of raw frames.

  • Median: Computes the median value of raw frames.

  • First: Pick the first raw frame to be used as reduced frame.

  • Last: Pick the last raw frame to be used as reduced frame.

Note

for statistical reasons the mean is typically used for dark frames, while the median is often preferred for flat frames.

Options#

Remove raw EDF files when done (for SPEC only)#

This will remove dark and reference files if they already exist. Only applies if this is an EDF-SPEC scan.

skip if already existing#

This will skip dark and/or flat field generation if the files are already present.

SPEC pattern (legacy)#

Warning

This section is specific for reduction from for edf-SPEC.

To find the reference and dark files, we use Python’s re library. Here are a few examples of how to use it:

  • .*conti_dark.*: Filters files containing the phrase conti_dark.

  • darkend[0-9]{3,4}: Filters files named darkend followed by three or four digits (with the .edf extension).

  • ref*.*[0-9]{3,4}_[0-9]{3,4}: Filters files named ref, followed by any character and ending with X_Y, where X and Y are groups of three or four digits.

For more examples and usage, see the re library page.

How-to videos#