calculate_master_pattern#
- KikuchiPatternSimulator.calculate_master_pattern(half_size: Optional[int] = 500, hemisphere: Optional[str] = 'upper', scaling: Optional[str] = 'linear') EBSDMasterPattern[source]#
Calculate a kinematical master pattern in the stereographic projection.
Requires that the
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 be2 * 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 of1.
- 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.