Page History
Table of Contents |
---|
Common
The additional analysis function are passed to the cube workflow by adding a det_proc
keys to the detector definition dictionary. The content of this key must be another dictionary with the following sctructure:
Code Block | ||||
---|---|---|---|---|
| ||||
{
name: '<function_name>' # must be the exact DetObjectFunc name,
'func_kwargs1': <...>,
'func_kwargs2': <...>,
...
} |
The function <function_name>
will then be applied to the summed binned detector data and its output will be saved under <detector name>_variable
in the binned hdf5 file, in addition to the full detector data.
Azimuthal integration
pyFAI
Detector definition section with azimuthal integration of the Rayonix:
Code Block | ||||
---|---|---|---|---|
| ||||
# ##### DETECTORS ######################################################################## # List detectors to be cubed. Area detector have additional options such as threshold # Full images will always be saved. # More area detector can be defined following the same syntax, and adding them to varList detDict = {'source':'Rayonix', 'full':1, 'image':1, 'thresADU':-1e5, 'common_mode':0} pix_size = 176e-6 func_kwargs = { 'name': 'azav_pyfai', # must be the name of the smalldata_tools DetObjectFunc 'ai_kwargs': {'dist':1, 'poni1':960*pix_size, 'poni2':960*pix_size}, 'npts': 512, 'int_units' : '2th_deg', 'return2d' : False } det_proc = [func_kwargs] detDict['det_proc'] = det_proc # make list of all variables to be added to the cube varList = ['ipm_dg1/sum','ipm_dg2/sum', detDict] |
The h5 resulting from this detector definition then contains:
Rayonix_azav (Array)
Rayonix_data (Array)
Rayonix_nEntries (Array)
Rayonix_q (Array)
Overview
Content Tools