bfieldtools.sphtools.basis_fields¶
-
bfieldtools.sphtools.
basis_fields
(p, lmax, normalization='default', R=1)¶ Computes magnetic field of each sph coefficient. Ignores the ‘DC’ component l=0.
- Parameters
- p: Nx3 array
coordinates in which the field is computed
- lmax: int
maximum degree l used in the computation
- normalization: string
“default”: the fields correspond to magnetic normalized potential. “unit”: the fields are normalized w.r.t integration over the unit sphere. “energy”: each term in inner/outer basis function with respect to
sphere with radius R is normalized to unit energy
- R: float
Sphere radius that separates inner/outer components
- Returns
- B1: N x 3 x N_lmax array
magnetic field at p for each alpha_lm
- B2: N x 3 x N_lmax array
magnetic field at p for each beta_lm