ewoksid02.normalization.get_array_polarization#

ewoksid02.normalization.get_array_polarization(azimuthal_integrator=None, polarization_factor=None, polarization_axis=0, use_cupy=False, correct=True, persistent=True)[source]#

Generate the array of the polarization correction, eventually applying the mask and dummy pixel filtering params:

  • azimuthal_integrator (AzimuthalIntegrator): the azimuthal integrator object

  • polarization_factor (float): the polarization factor

  • polarization_axis (int): the polarization axis

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

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

  • 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 polarization correction

Parameters:
  • azimuthal_integrator (AzimuthalIntegrator)

  • polarization_factor (float)

  • polarization_axis (int)

  • use_cupy (bool)

  • correct (bool)

  • persistent (bool)

Return type:

ndarray