from_highest_hkl#
- classmethod ReciprocalLatticeVector.from_highest_hkl(phase, hkl, include_zero_vector=False)[source]#
Create a set of unique reciprocal lattice vectors from three highest indices.
- Parameters:
- phase
orix.crystal_map.Phase A phase with a crystal lattice and symmetry.
- hkl
numpy.ndarray,list,ortuple Three highest reciprocal lattice vector indices.
- include_zero_vectorbool
If
True, include the zero vector (000) in the set of vectors.
- phase
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