The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/BRISP/

brisp_rad.pro


top brisp_rad

result = brisp_rad(W_in, XY0=XY0, INCR=INCR, MASK=MASK, Pix=Pix, Nrun_hr=Nrun_hr, eff_dat=eff_dat, bck_ch=bck_ch, bck_slope=bck_slope, el_ch=el_ch, th_min=th_min, th_max=th_max)

******* ********* ** User callable ** radial integration with solid angle and efficiency correction (FF, Apr 2007) ** ** calculate elastic channel position as a function of theta by fitting ** a quadratic law: ch=A0+A1*theta+A2*theta^2 (FF, Apr 2010) ** ** Call: w3=brisp_rad(W2,XY0=C,INCR=6,MASK=w40,bck_ch=[1500,1600],el_ch='elas.txt',th_min=1.,th_max=12.) ** **** ** Input: M =2D or 3D data matrix. ** ***** xy0 =[x0,y0] center determined by "brisp_center.pro" ** incr =Ray increment (width) in pixels units (default 1.0) ** masq =same as M(n,m), contains 1's for masked values otherwise 0's(default) ** xypsiz =size of the pixel in Cm. Default is [.428,1.27] ** dst =Distance sample-detector in Cm. ** **** OPTIONS ** N_run_hr = [Num of run over which M is averaged, Number of hour/run]: due to absence of ** moinitors, is used to propagate errors after integration ** file_eff = file with efficiency values (size =3 X 160, eff in the 2nd column) ** bck_ch = subtraction of a constant bckg evaluated as average between the ** channels given in bck_ch=[ch_min, ch_max] ** \bck_slope = alternative to bck_ch: if given, it subtracts a linear bckg a+b*ch ** where a e b are evaluated by the mean value at the extreme of channels ** ONLY FOR 512 CHANNELS ***** ***** el_ch = namefile where the coefficient of the fit ch=A0+A1*theta+A2*theta^2 are stored ***** th_min, th_max = allows to limit the theta fitting range : ***** lowest and/or highest angles elastic position can be poorly defined ** ** Output: Wout =result of Radial integration. ** ****** X =diagram abscissa: angles (deg). ** error =diagram errors

Parameters

W_in

Keywords

XY0
INCR
MASK
Pix
Nrun_hr
eff_dat
bck_ch
bck_slope
el_ch
th_min
th_max

File attributes

Modification date: Tue Oct 1 14:45:32 2013
Lines: 214