easistrain.func_integration_2D.integration_2D

easistrain.func_integration_2D.integration_2D(root_data, h5file, scan, numScan, detector_name, poni_file, npt_rad, npt_azim, x_unit, im_dark, im_mask, rad_range, azim_range, errorModel, imFlat, gon1, gon2, gon3, chiGon1, omegaGon2, phiGon3)[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

  1. It looks on the image on the h5 file

  2. creates a mask based on the int_max and int_min the user gives

  3. Integrate the 2D image in number of given sectors (npt_azim) and with a given number of points in the radial direction (npt_rad)

4) saves the results in a h5file named Results_name of the h5 file containing the image Definition of the function inputs: :type root_data: :param root_data: the path of the file where the h5 file is saved :type h5file: :param h5file: the name of the h5 file where the images are saved :type scan: :param scan: The name of the group (in h5file) on which the concerned measurement are saved :param detector name: name of the used detector :type poni_file: :param poni_file: the path of the poni file which define the experimental geometry (ai) :param int_min: minimum intensity below which the pixels have to be masked (deleted) :param int_max: maximum intensity above which the pixels have to be masked (deleted) :type npt_rad: :param npt_rad: number of points in the radial direction (number of 2theta points) :type npt_azim: :param npt_azim: number of sectors for the integration in the azimutha direction (around the ring) :type x_unit: :param x_unit: the unity of the x axis (2th_deg or 2th_rad or q_A^-1…) :type im_dark: :param im_dark: the name of the dark image (if no dark image exist please give 0 as argument) :type im_mask: :param im_mask: the name of the mask image (if no mask image exist please give 0 as argument) :type rad_range: :param rad_range: the radial range to integrate in the radial direction (2tth, q, d, …) :type azim_range: :param azim_range: the range of azimuthal range (if we want to integrate just a portion of DS ring)