from_highest_hkl#

classmethod ReciprocalLatticeVector.from_highest_hkl(phase, hkl)[source]#

Create a set of unique reciprocal lattice vectors from three highest indices.

Parameters:

Examples

>>> from diffpy.structure import Atom, Lattice, Structure
>>> from orix.crystal_map import Phase
>>> from diffsims.crystallography import ReciprocalLatticeVector
>>> phase = Phase(
...     "al",
...     space_group=225,
...     structure=Structure(
...         lattice=Lattice(4.04, 4.04, 4.04, 90, 90, 90),
...         atoms=[Atom("Al", [0, 0, 1])],
...     ),
... )
>>> rlv = ReciprocalLatticeVector.from_highest_hkl(phase, [3, 3, 3])
>>> rlv
ReciprocalLatticeVector (342,), al (m-3m)
[[ 3.  3.  3.]
 [ 3.  3.  2.]
 [ 3.  3.  1.]
 ...
 [-3. -3. -1.]
 [-3. -3. -2.]
 [-3. -3. -3.]]

Vectors are included regardless of whether they are kinematically allowed or not

>>> rlv.allowed.all()
False