medfilt_1d#
- pyxem.utils.diffraction.medfilt_1d(z, azimuthal_integrator, npt_rad, npt_azim, mask=None, **kwargs)[source]#
Perform the 2D integration and filter along each row using a median filter
- 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 (int) – The number of points in the output pattern
npt_rad (int) – The number of points in the radial space. Too few points may lead to huge rounding errors.
mask (Boolean Array) – A boolean array with pixels to ignore
sum (bool) – Returns the integrated intensity rather than the mean.
**kwargs – Keyword arguments to be passed to ai.integrate2d
- Returns:
tth (numpy.ndarray) – One-dimensional scattering vector axis of z.
I (numpy.ndarray) – One-dimensional azimuthal integral of z.