s2ball is currently in an open alpha, please provide feedback on GitHub

Utility Functions#

Signal Generators#

Function Name

Description

generate_flm()

Function which generates a 2D set of random harmonic coefficients.

generate_flmn()

Function which generates a 3D set of random Wigner coefficients.

generate_flmp()

Function which generates a 3D set of random Spherical-Laguerre coefficients.

generate_flmnp()

Function which generates a 4D set of random Wigner-Laguerre coefficients.

Indexing Functions#

Function Name

Description

ncoeff()

Computes the number of spherical harmonic coefficients for given band-limit L.

elm2ind()

Converts from spherical harmonic 2D indexing of \((\ell,m)\) to 1D index.

ind2elm()

Converts from 1D spherical harmonic index to 2D index of \((\ell,m)\).

elmn2ind()

Converts from Wigner space 3D indexing of \((\ell,m, n)\) to 1D index.

flm_2d_to_1d()

Converts from 2D indexed harmonic coefficients to 1D indexed coefficients.

flm_1d_to_2d()

Converts from 1D indexed harmnonic coefficients to 2D indexed coefficients.

flmn_3d_to_1d()

Converts from 3D indexed Wigner coefficients to 1D indexed coefficients.

flmn_1d_to_3d()

Converts from 1D indexed Wigner coefficients to 3D indexed coefficients.