magoptlib.sh_fitting
Functions
|
Get the (l, m) values for spherical harmonics. |
|
|
|
Module Contents
- magoptlib.sh_fitting.get_m_l_vals(max_sh_order)
Get the (l, m) values for spherical harmonics.
- Parameters:
max_sh_order (int) – Maximum spherical harmonic order.
- Returns:
Two numpy arrays containing the m and l values.
- Return type:
tuple
- magoptlib.sh_fitting.cartesian2spherical_cpu(Bx, By, Bz, theta_vals, phi_vals)
- magoptlib.sh_fitting.precompute_sh_coeffs(Bx, By, Bz, theta_values, phi_values, n_magnets=8, radius=20.0, max_sh_order=24)