The LAMP Application

Generated by IDLdoc

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

lamp_mac/BRISP/

brisp_center.pro


top brisp_center

result = brisp_center(M, XYbeam_stop=XYbeam_stop, Rb_stop=Rb_stop, mask_in=mask_in, mask_out=mask_out, noCenter=noCenter, Center=Center, ang_sect=ang_sect)

******* ************ ** User callable ** INPUT: M is a 2D or 3D count from an attenuated direct beam. ** XYbs should be the beam-stop size [X,Y] in pixel unit seen during experiment. ** Rbs should be the beam-stop rays [X,Y] in pixel unit seen during experiment: CHANGED ************************** ** Regions is a (4,n) matrix uses to exclude regions [[x1,y1,nx1,ny1],[x2,y2,nx2,ny2]...] ** /stubes if set then mask short tubes also (BRISP ONLY): not anymore: default mask is with corners masked! ******** ** /nocenter if set then do not fit center, assume ([s1,s2])/2. ** center=[cx,cy] if set then do not fit center ** ** OUTPUT: cxy=[Xcenter,Ycenter] in pixel position (from 0.) ** mask_out is the 2D mask for M (returned only if XYbs or Rbs and/or Regions are present. ** ** ******************** Modification made on 11/03/09 ************************************ ** bad tubes (stored in a .pro file=filein) are now directly imported in brisp_center ** c=brisp_center(W1,Rb_stop=6,mask_in='msk256',mask_out=W40) ** ** Rbs is the beam-stop ray in cm: works for 256 and 128 pixels: care in other cases!!! ** default = 6cm ** ** If no mask, default mask is with 4 corners masked ** ** The subdivision of the tube in a number of pixels lower than ** the default (256) case is taken into account with the parameter kp ** Mask ready only for the case 128 pixels!!!! ** No regrouping of tubes allowed ** ** ******************** Modification made on 11/07/10 ************************************ ** rough masking in angular sector is possible, though not nicely written ** typial coiche ang_sect=[-45, 45] or [45, 90] (the latter implies also [-90,-45]) ** c=brisp_center(W1,Rb_stop=6,mask_in='msk256',mask_out=W40,ang_sect=[-45,45])

Parameters

M

Keywords

XYbeam_stop
Rb_stop
mask_in
mask_out
noCenter
Center
ang_sect

File attributes

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