lamp_mac/BRISP/
raw_bck.pro
top raw_bck
result = raw_bck(W_in, bck_ch=bck_ch, MASK=MASK, KERNEL=KERNEL)
******* ******* ** User callable ** Call: W4 = raw_bck(w2,bck_ch=[1500,1600],mask=w40,kernel=[9,6]); ** ** 1) Calculate the average 2D bck bckg (ambient) counts in a given channel range ** The bckg channel range is estimated with brisp_rad.pro ** 2) Rescale it to the total channel frame: obtain, for each pixel, ** the total nr of channels (ntot_bck) with I(ch) NE 0 (practically always Ibck(ch)=1) ** 3) For each pixel, generate bck counts I=1 in ntot_bck channels randomly chosen ** 4) Obtain, for each pixel, a random I(ch) with the experimental (kernel averaged) bckg counting rate ** ** input: W_in= TOF sample (3D) ** chrg= TOF ranges containing only backgrounds , default all channels ** possible to select multiple channel ranges [t1a,t1b , t2a,t2b , .....] ** msk = the mask , default is no mask ** kern= mean size [dx,dy] , [dxy] accepted , default=3. Should be odd (symmetric kernel) ** To obtain a "square" kernel: ratio dx:dy= 2:1 (256 pixels) or 3:2 (128 pixels) ** output: background raw data (3D) input of Sqw_pix.pro ** ************** (DR, FF, April 2010) **
Parameters
- W_in
Keywords
- bck_ch
- MASK
- KERNEL
File attributes
Modification date: | Tue Oct 1 14:45:32 2013 |
Lines: | 86 |