easistrain.func_integration_2D_OLD.integration_2D¶
- easistrain.func_integration_2D_OLD.integration_2D(root_data, h5file, scan, detector_name, poni_file, npt_rad, npt_azim, x_unit, im_dark, im_mask)[source]¶
Integrates a 2D image using integrate2D pyfai’s function and save the results in a h5file named Results_name of the h5 file containing the image
It looks on the image on th h5 file
creates a mask based on the int_max and int_min the user gives
Integrate the 2D image in number of given sectors (npt_azim) and with a given number of points in the radial direction (npt_rad)
saves the results in a h5file named Results_name of the h5 file containing the image
- Parameters:
root_data – the path of the file where the h5 file is saved
h5file – the name of the h5 file where the images are saved
scan – The name of the group (in h5file) on which the concerned measurement are saved
name (detector) – name of rhe used detector
poni_file – the path of the poni file which define the experimental geometry (ai)
int_min – minimum intensity below which the pixels have to be masked (deleted)
int_max – maximum intensity above which the pixels have to be masked (deleted)
npt_rad – number of points in the radial direction (number of 2theta points)
npt_azim – number of sectors for the integration in the azimutha direction (around the ring)
x_unit – the unity of the x axis (2th_deg or 2th_rad or q_A^-1…)
im_dark – the name of the dark image (if no dark image exist please give 0 as argument)
im_mask – the name of the mask image (if no mask image exist please give 0 as argument)