gauss_legendre_grid#

de_ebsd.index.spherical.gauss_legendre_grid(bandwidth, device=None, dtype=torch.float64)[source]#

Build the exact quadrature grid for bandwidth L.

Returns (theta, phi, weights):

  • theta – (L + 1,) colatitude nodes, arccos of the Gauss-Legendre nodes (in [0, pi]).

  • phi – (2 L + 2,) equiangular azimuth nodes 2 pi k / N_phi.

  • weights – (L + 1, 2 L + 2) quadrature weights w_theta[j] * (2 pi / N_phi) such that sum weights[j, k] f(theta_j, phi_k) integrates any band-limited f over the sphere exactly.