First, we need to create an image that shows the pattern of interest. The data we will use here (xpptut15, run 321) is publicly available as described here The result looks like this: Make a mask selecting one of the rings.Here we use the beam center as obtained using mouse clicks on one of the rings. We select a circle mask using the beam center and select one of the rings. We do NOT store the mask in the calib directory as we do not want to use it for production, only to use the threshold setting version of the beam center fit. Fit the beam center using this maskSetting use_mask_local to true, the locally defined mask will be used. use_mask=True will use the mask as defined in the calibdirectory. LDana In [4]: anaps.FitCircle(use_mask_local=True) plot AvImg_pedSub_cspad using the 5/99.5 percentiles as plot min/max: (1.12247, 46.7645) Select Circle Points by Mouse?: n Select Circle Points with threshold (y/n): y min percentile % of selected points: 98 thresP 10.1181592941 Happy with this threshold (y/n): n min percentile % of selected points: 99 thresP 11.3860747719 Happy with this threshold (y/n): n min percentile % of selected points: 99.8 thresP 16.0652765617 Happy with this threshold (y/n): y x,y: 87393.1655731 -10692.6638104 R 121701.713621 Test the azimuthal integration using the beam center & detector distanceNow we can create azInt objects to test the beam center and detector distance: Done. |
Overview
Content Tools