forward_sht#

de_ebsd.index.spherical.forward_sht(values, theta, phi, bandwidth, weights=None)[source]#

Stateless forward transform on a separable grid (dense design matrix).

values has shape (..., N_theta, N_phi) (real or complex), sampled at the theta/phi nodes. Returns complex coefficients (..., (L + 1) ** 2). weights are the quadrature weights (N_theta, N_phi); if omitted the Gauss-Legendre weights for this bandwidth are used, which assumes theta / phi are the canonical grid from gauss_legendre_grid(). For repeated transforms prefer SphericalHarmonicTransform.