ewoksid02.normalization.get_array_normalization#

ewoksid02.normalization.get_array_normalization(azimuthal_integrator, normalization_factor=None, polarization_factor=None, polarization_axis=0, correct_polarization=True, absolute_solidangle=True, correct_solidangle=True, filename_flat=None, filename_mask=None, dummy=None, delta_dummy=None, binning=(1, 1), use_cupy=False, datatype='float32', persistent=True)[source]#

Generate the array of the normalization correction, except the monitor value (per frame) params:

  • azimuthal_integrator (AzimuthalIntegrator): the azimuthal integrator object

  • normalization_factor (float): the normalization factor

  • polarization_factor (float): the polarization factor

  • polarization_axis (int): the polarization axis

  • correct_polarization (bool): if True, applies the polarization correction

  • absolute_solidangle (bool): if True, applies the absolute solid-angle correction

  • correct_solidangle (bool): if True, applies the solid-angle correction

  • filename_flat (str): the filename of the flat-field correction

  • filename_mask (str): the filename of the mask

  • dummy (int): if not None, the value of the dummy pixels to filter

  • delta_dummy (float): if dummy is not None, the tolerance around the dummy value

  • binning (tuple): binning of the data signal, used for binning unification

  • use_cupy (bool): if True, returns a cupy.asarray

  • datatype (str): format of the imported array, if None, datatype is respected

  • persistent (bool): if True, the array is cached in memory and only reloaded if the file modification time changes

returns:
  • numpy.ndarray or cupy.ndarray: the array of the normalization correction

Parameters:
  • azimuthal_integrator (AzimuthalIntegrator)

  • normalization_factor (float)

  • polarization_factor (float)

  • polarization_axis (int)

  • correct_polarization (bool)

  • absolute_solidangle (bool)

  • correct_solidangle (bool)

  • filename_flat (str)

  • filename_mask (str)

  • dummy (int)

  • delta_dummy (float)

  • binning (tuple)

  • use_cupy (bool)

  • datatype (str)

  • persistent (bool)