ti_orientations#

orix.data.ti_orientations(allow_download: bool = False) Orientation[source]#

Return orientations in the MTEX orientation convention (crystal2lab) from an orientation map produced from Hough indexing of electron backscatter diffraction patterns of a commercially pure hexagonal close packed titanium sample (6/mmm).

Parameters:
allow_download

Whether to allow downloading the dataset from the internet to the local cache with the pooch Python package. Default is False.

Returns:
ori

Ti orientations of shape (193167,).

Notes

The data set is part of the supplementary material to [Krakow et al., 2017] and carries the CC BY 4.0 license.

Examples

>>> import matplotlib.pyplot as plt
>>> from orix import data, plot
>>> from orix.quaternion.symmetry import D6
>>> ori = data.ti_orientations(allow_download=True)
>>> ori
Orientation (193167,) 622
[[ 0.3027  0.0869 -0.5083  0.8015]
 [ 0.3088  0.0868 -0.5016  0.8034]
 [ 0.3057  0.0818 -0.4995  0.8065]
 ...
 [ 0.4925 -0.1633 -0.668   0.5334]
 [ 0.4946 -0.1592 -0.6696  0.5307]
 [ 0.4946 -0.1592 -0.6696  0.5307]]
>>> ipf_key = plot.IPFColorKeyTSL(D6)
>>> fig, ax = plt.subplots()
>>> _ = ax.imshow(ipf_key.orientation2color(ori).reshape((381, 507, 3)))
../../_images/orix-data-ti_orientations-1.png