calculate_master_pattern#
- KikuchiPatternSimulator.calculate_master_pattern(half_size: int = 500, hemisphere: Literal['upper', 'lower', 'both'] = 'upper', scaling: Literal['linear', 'square'] | None = 'linear') EBSDMasterPattern[source]#
Return a kinematical master pattern in the stereographic projection.
Requires that
reflectorshave structure factors (structure_factor) and Bragg angles (theta) calculated.- Parameters:
- half_size
Number of pixels along the x-direction of the square master pattern. Default is 500. The full size will be 2 * half_size + 1, given a master pattern of shape (1001, 1001) for the default value.
- hemisphere
Which hemisphere(s) to calculate. Options are “upper” (default), “lower”, or “both”.
- scaling
Intensity scaling of the band kinematical intensities, either “linear” (default), \(|F|\), “square”, \(|F|^2\), or None, giving all bands an intensity of 1.
- Returns:
master_patternKinematical master pattern in the stereographic projection.
Notes
The algorithm for selecting which unit vector is within a Kikuchi band is derived from a similar routine in EMsoft.