Page History
...
Code Block |
---|
# cmpars=None # for default # cmpars=(7,0,100) # turn off # cmpars=(7,1,100) # correction in rows # cmpars=(7,1,100) # correction in columns # cmpars=(7,3,100) # correction in rows and columns nda = jungfrau.calib(evt, cmpars=(7, 1, 100)) |
#8 - MEDIAN algorithm for pnCCD
Accounts for pixel mask and apply median correction for different group of pixels, selected by parameter 1:
- par[0] - algorithm # 8
- par[1] - mode of median algorithm for pixel groups: 0 - turned off | +1 - rows in banks (128 pix) | +2 - for rows (512 pix) | +4 columns (512 pix) | +8 banks (512x128 pix)
- par[2] - maximal allowed common mode correction
Code example:
Code Block |
---|
# Call algorithm directly:
from Detector.UtilsPNCCD import common_mode_pnccd
common_mode_pnccd(nda, mask, cmp=(8,5,500)) # median in rows 128 and columns 512
# call through the Detector interface:
pnccd.common_mode_apply(evt, nda, (8,5,500), mask=mask) # new py
# OR
nda = pnccdd.calib(evt, (8,5,500), mask=mask) # generic calib method with mask parameter |
Test of the common mode correction for pnCCD
...
Overview
Content Tools