reduced darks and flats#

../../../_images/darkrefwidget1.png

Behavior#

This widget generate dark and/or flat field for an acquisition.

  • Average. Compute the mean value

  • Median. Compute the median value

Two options are existing:

  • remove if existing: this will remove dark and ref files if already existing

  • skip if already existing: this will skip dark and/or flat field generation if files are already there.

Note

the dark and or flat field will be generated inside the acquisition directory

Note

you can access this process without orange by running

tomwer darkref [acquisition folder]

File pattern#

In order to find the ref file and the darkend files we are using python re library. Here are a fiew example of how to use it:

  • .*conti_dark.* will filter files containing conti_dark sentence

  • darkend[0-9]{3,4} will filter files named darkend followed by three or four digit characters (and having the .edf extension)

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

To have more example and usage see the re library page.

How-to videos#

reduced darks and flats