pysecs.SECS#
- class pysecs.SECS(sec_df_loc: ndarray | None = None, sec_cf_loc: ndarray | None = None)#
Spherical Elementary Current System (SECS).
The algorithm is implemented directly in spherical coordinates from the equations of the 1999 Amm & Viljanen paper [1]. The magnetic field of the curl-free system is implemented from Equation 2.15 of the Vanhamäki & Juusola review chapter [2].
- Parameters:
References
Methods
__init__([sec_df_loc, sec_cf_loc])fit(obs_loc, obs_B[, obs_std, epsilon, ...])Fits the SECS to the given observations.
Set all SECs to a unit current amplitude.
from_observations(obs_loc, r_shell[, ...])Build a SECS with an automatically generated grid.
predict(pred_loc[, J, return_var])Calculate the predicted magnetic field or currents.
predict_B(pred_loc[, return_var])Calculate the predicted magnetic fields.
predict_J(pred_loc[, return_var])Calculate the predicted currents.
Attributes