pc_tsl#

EBSDDetector.pc_tsl() ndarray[source]#

Return PC in the EDAX TSL convention.

Returns:
new_pc

PC in the EDAX TSL convention.

Notes

The PC coordinate conventions of Bruker, EDAX TSL, Oxford Instruments and EMsoft are given in the class description. The PC is stored in the Bruker convention internally, so the conversion is

\[\begin{split}x_T^* &= x_B^*,\\ y_T^* &= \frac{N_y}{N_x} (1 - y_B^*),\\ z_T^* &= \frac{N_y}{N_x} z_B^*,\end{split}\]

where \(N_x\) and \(N_y\) are number of detector columns and rows, \((x_B^*, y_B^*, z_B^*)\) are the Bruker PC coordinates, and \((x_T^*, y_T^*, z_T^*)\) are the returned EDAX TSL PC coordinates.

Examples

>>> import kikuchipy as kp
>>> det = kp.detectors.EBSDDetector(
...     shape=(60, 80),
...     pc=(0.4, 0.2, 0.6),
...     convention="bruker",
... )
>>> det.pc_tsl()
array([[0.4 , 0.6 , 0.45]])