bfieldtools.sphtools.compute_sphcoeffs_mesh¶
-
bfieldtools.sphtools.
compute_sphcoeffs_mesh
(mesh, lmax, normalization='default', R=1)¶ Computes multipole moment (spherical harmonics coefficient) transformation from the mesh.
- Parameters
- mesh: mesh object - the surface mesh
- lmax: int
maximum degree l of the fit
- normalization: str
‘default’ (Ylm**2 integrated over solid angle to 1) ‘energy’ (field energy of basis fields normalized to 1 in R-ball)
- R: float
radius in the energy normalization
- Returns
- ——-
- Calm: (lmax*(lmax+2)xNvertices array
transformation from the mesh to alm coefficients (r**l-terms)
- Cblm: (lmax*(lmax+2)xNvertices array
transformation from the mesh to blm coefficients (r**(-l)-terms)