KVectorGrid#

class de_ebsd.diffraction.KVectorGrid(npx, directions)[source]#

Bases: object

Incident-beam directions covering the sphere.

Attributes:
npx

Half-width of the square Lambert grid; each hemisphere map has shape (2 npx + 1, 2 npx + 1).

directions

Unit vectors, shape (2, 2 npx + 1, 2 npx + 1, 3); index 0 is the northern hemisphere (z >= 0), index 1 the southern.

Methods

flat

All directions as a flat (K, 3) tensor (north first, row-major).

show

Display the sampled incident directions on an interactive sphere.

Attributes

n_directions

npx

directions

flat()[source]#

All directions as a flat (K, 3) tensor (north first, row-major).

show(title='Incident-direction sampling')[source]#

Display the sampled incident directions on an interactive sphere.