Diffraction2D#
- class pyxem.signals.Diffraction2D(*args, **kwargs)[source]#
Bases:
CommonDiffraction
,Signal2D
Signal class for two-dimensional diffraction data in Cartesian coordinates.
Attributes
Methods
Add a ellipse parameters array to a signal as HyperSpy markers.
Add an interactive line profile to the signal plot.
[Deprecated] Add a peak array to the signal as HyperSpy markers.
Diffraction2D.angular_mask
(angle0, angle1[, ...])Get a bool array with True values between angle0 and angle1.
Correct geometric distortion by applying an affine transformation.
Apply gain normalization to experimentally acquired electron diffraction patterns.
Diffraction2D.center_direct_beam
([method, ...])Estimate the direct beam position in each experimentally acquired electron diffraction pattern and translate it to the center of the image square.
Correct bad (dead/hot) pixels by replacing their values with the mean value of neighbors.
Diffraction2D.filter
(func[, inplace])Filters the entire dataset given some function applied to the data.
Find dead pixels in the diffraction images.
Find hot pixels in the diffraction images.
Flip the dataset along the diffraction x-axis.
Flip the dataset along the diffraction y-axis.
Creates a polar reprojection using pyFAI's azimuthal integrate 2d.
Creates a polar reprojection using pyFAI's azimuthal integrate 2d.
Find vectors from the diffraction pattern.
Generate a signal mask for the direct beam.
Estimate the direct beam position in each experimentally acquired electron diffraction pattern.
Diffraction2D.get_variance
(npt[, method, ...])Calculates the variance using one of the methods described in [1]. A shot noise correction
Diffraction2D.intensity_peaks
(peak_array[, ...])Get intensity of a peak in the diffraction data.
Diffraction2D.make_probe_navigation
([method])Refines the peak position using the center of mass.
Diffraction2D.plot
([units])Plot the signal.
Diffraction2D.rotate_diffraction
(angle[, ...])Rotate the diffraction dimensions.
Diffraction2D.shift_diffraction
(shift_x, shift_y)Shift the diffraction patterns in a pixelated STEM signal.
Background subtraction of the diffraction data.
Diffraction2D.template_match
(template[, inplace])Template match the signal dimensions with a binary image.
Diffraction2D.template_match_disk
([disk_r, ...])Template match the signal dimensions with a disk.
Diffraction2D.template_match_ring
([r_inner, ...])Template match the signal dimensions with a ring.
[Deprecated] Template match the signal dimensions with a binary image.
Get a thresholded and masked of the signal.
Examples using Diffraction2D
#

Filtering Data (Averaging Neighboring Patterns etc.)