sphgrid#
- torchspin.sphgrid(symmetry, N)[source]#
Return a spherical powder-averaging grid.
- Parameters:
- Returns:
phi – Azimuthal angles in radians, shape
(M,).theta – Polar angles in radians, shape
(M,).weights – Solid-angle weights, shape
(M,). Sum is 4π.vecs – Unit vectors on the sphere, shape
(3, M); rows are x, y, z.
- Return type: