azimuthal_integrate2d#
- pyxem.utils.diffraction.azimuthal_integrate2d(z, azimuthal_integrator, npt_rad, npt_azim=None, mask=None, sum=False, **kwargs)[source]#
Calculate the azimuthal integral of z around a determined origin.
This method is used for signals where the origin is constant, compared to azimuthal_integrate which is used when the origin in the data changes and is iterated over.
- Parameters:
z (numpy.ndarray) – Two-dimensional data array containing the signal.
azimuthal_integrator (pyFAI.azimuthal_integrator.AzimuthalIntegrator object) – An AzimuthalIntegrator that is already initialised and used to calculate the integral.
npt_rad (int) – The number of radial points to integrate
npt_azim (int) – The number of azimuthal points to integrate
mask (Boolean Array) – The mask used to ignore points.
sum (bool) – If True the sum is returned, otherwise the average is returned.
**kwargs – Keyword arguments to be passed to ai.integrate2d
- Returns:
I – Two-dimensional azimuthal integral of z.
- Return type: