abtem.bloch.indexing#
Module Contents#
Functions#
Create an array representing disk with antialiased edges. |
|
Create an ellipse with semi-major and semi-minor axes. |
|
Indexes diffraction spots in an array. |
|
Integrate an ellipse around pixels in an array. |
|
Convert Miller indices to Miller-Bravais indices. |
|
Create a mask for overlapping diffraction spots. Spots with the same h and k indices are considered overlapping. |
|
Validate the cell input. |
API#
- abtem.bloch.indexing.antialiased_disk(...) ndarray[source]#
Create an array representing disk with antialiased edges.
- abtem.bloch.indexing.create_ellipse(...) ndarray[source]#
Create an ellipse with semi-major and semi-minor axes.
- abtem.bloch.indexing.index_diffraction_spots(...) ndarray[source]#
Indexes diffraction spots in an array.
- Parameters:
array (ndarray) – The input array containing diffraction spot intensities.
hkl (ndarray) – The Miller indices to index.
sampling (tuple[float, float]) – The sampling rate of the array in the x and y directions [Å].
cell (Cell | ndarray) – The unit cell of the crystal structure.
energy (float) – The energy of the incident electrons [eV].
orientation_matrices (ndarray, optional) – The orientation matrices of the crystal structure. Defaults to None.
radius (float, optional) – The radius of the diffraction spots to integrate. Defaults to None.
- Returns:
A tuple containing the indexed hkl values, wavevector transfer values, pixel coordinates, and intensities.
- Return type:
- abtem.bloch.indexing.integrate_ellipse_around_pixels(...) ndarray[source]#
Integrate an ellipse around pixels in an array.
- abtem.bloch.indexing.miller_to_miller_bravais(...) tuple[int, int, int, int][source]#
Convert Miller indices to Miller-Bravais indices.