master_pattern_grid#
- de_ebsd.core.master_pattern_grid(npx, device=None, dtype=torch.float32)[source]#
Northern-hemisphere unit vectors for every master pattern pixel.
Returns a tensor of shape
(2 npx + 1, 2 npx + 1, 3)where element[row, col]is the direction whose square Lambert projection isX = (col - npx)/npx * LandY = (row - npx)/npx * L. Negate the z component for the southern hemisphere.