soxs_mbias¶
A zero-second exposure will contain only read-noise, and \(\sim\)half of the pixels within this Gaussian distribution centred around zero counts will always contain negative flux. To avoid negative counts, an offset bias voltage is applied at the amplifier stage so that even when no photons are detected, the A/D converter will always register a positive value. This bias-voltage offset must be accounted for in the data reduction process.
The purpose of the soxs_mbias recipe is to provide a master-bias frame that can be subtracted from science/calibration frames to remove the contribution of pixel counts resulting from the bias voltage.
Usage¶
The soxs_mbias recipe can be run with the following convention:
soxspipe [-Vx] mbias <inputFrames> [-o <outputDirectory> -s <pathToSettingsFile>]
To rerun a previously executed soxs_mbias recipe, you can find the execution command at the end of the recipe log file (found in the workspace products/soxs_mbias directory). Use the -x flag to overwrite the product files if they already exist. For example, from the root of your workspace, you would run a command like:
soxspipe mbias sof/20251010T091927_VIS_1X1_1_MBIAS_SOXS.sof -s ./sessions/base/soxspipe.yaml -x
To adjust the default settings for the soxs_mbias recipe, open the soxspipe.yaml file referenced in the command above in a text editor, navigate to the soxs_mbias dictionary, save the file and rerun the recipe command. The settings’ descriptions can be found in Table 1.
Product files are written in the products/soxs_mbias, and QC plots are in the qc/soxs_mbias workspace directory. A report of the product files, QC plots and metrics is also printed to the terminal. The QC metrics calculated for soxs_mbias are found in Table 4.
Reduction Tips¶
The soxs_mbias recipe is one of the simpler recipes, and therefore, it is typically very robust against failures. To reduce the time it takes to run the recipe (at the expense of allowing a few more outlying pixels into your master bias frame), you can experiment with reducing both frame-clipping-iterations and stacked-clipping-iterations (although speed gains will be very moderate).
Parameters¶
Parameter |
Description |
Type |
Entry Point |
Related Util |
|---|---|---|---|---|
|
number of \(\sigma\) from the median frame flux beyond which pixel is added to the bad-pixel mask |
float |
settings file |
|
|
number of \(\sigma\)-clipping iterations to perform when adding pixels to the bad-pixel mask |
int |
settings file |
|
|
number of \(\sigma\) deviations from the median pixel flux beyond which pixel is excluded from stack |
float |
settings file |
|
|
number of \(\sigma\)-clipping iterations to perform before stacking |
int |
settings file |
Input¶
Data Type |
Content |
Related OB |
Min. Frame Count |
|---|---|---|---|
FITS images |
raw bias frames (UV-VIS/AC exposures with exptime = 0) |
|
5 |
Output¶
Label |
Content |
Data Type |
PRO CATG |
PRO TYPE |
PRO TECH |
|---|---|---|---|---|---|
|
Master bias frame (frame containing typical bias-voltage applied to the detector) |
FITS image |
|
|
|
QC Metrics¶
Label |
Description |
Unit |
Acceptable Range |
|---|---|---|---|
|
Fraction of bad pixels |
- |
- |
|
Median flux level of master bias |
electrons |
VIS: [0, 2000] |
|
Number of bad pixels |
- |
- |
|
Maximum periodic pattern noise ratio in raw bias frames |
- |
VIS: [0,3] |
|
RON in single BIAS |
electrons |
VIS: [0,15] |
|
Combined RON in MBIAS |
electrons |
VIS: [0,10] |
|
Slope of BIAS in X direction |
- |
VIS: [-3,1] |
|
Slope of BIAS in Y direction |
- |
VIS: [0.0,0.6] |