Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[I] L0108 status 64: 139 pixel with bad gain mode switch . For for jungfrau only!

Dark data processing algorithm

...

    int_lo=1, int_hi=16000, intnlo=6.0, intnhi=6.0

    rms_lo=0.001, rms_hi=16000, rmsnlo=6.0, rmsnhi=6.0

and dynamically evaluate limits for good parameters from spectra.

Code Block
titleevaluate_limits
collapsetrue
def evaluate_limits(arr, nneg=5, npos=5, lim_lo=1, lim_hi=16000, ...):
    ave, std = (arr.mean(), arr.std())
    lo = ave-nneg*std if nneg>0 else lim_lo
    hi = ave+npos*std if npos>0 else lim_hi
    lo, hi = max(lo, lim_lo), min(hi, lim_hi)
    return lo, hi

status 1:  pixel rms exceeds its maximal value for good pixels defined by rms_hi=16000, rmsnhi=6

status 2: pixel rms lower than its minimal value for good pixels defined by rms_lo=0.001, rmsnlo=6

status 4: pixel intensity exceeds int_hi=16000 in more than fraclm=0.1 fraction of events

...

status 16: pixel average intensity exceeds its maximal value for good pixels defined by int_hi=16000, intnhi=6

status 32: pixel average intensity lower than its minimal value for good pixels defined by int_lo=1, intnlo=6

status 64: for jungfrau only pixel with bad gain mode switch.

...