API reference#
This page gives an overview of all public classes and functions within the pysecs package.
SECS Class
The primary class to set up a Spherical Elementary Current System is the SECS class.
|
Spherical Elementary Current System (SECS). |
SECS Methods
The fit() and predict() methods can be called on the created system to fit to data and then predict at any other location.
|
Fits the SECS to the given observations. |
Set all SECs to a unit current amplitude. |
|
|
Build a SECS with an automatically generated grid. |
|
Calculate the predicted magnetic field or currents. |
|
Calculate the predicted magnetic fields. |
|
Calculate the predicted currents. |
Whether this system has any divergence free currents. |
|
Whether this system has any curl free currents. |
|
The number of elementary currents in this system. |
Temporal estimation
The KalmanSECS class couples time steps together with a state-space model on the SEC amplitudes, estimated with a Kalman filter and Rauch-Tung-Striebel smoother.
|
Kalman filter / smoother for time series of SECS amplitudes. |
|
Run the filter (and smoother) over a time series of observations. |
|
Predict magnetic fields or currents from the estimated amplitudes. |
|
Predict magnetic fields; see |
|
Predict currents; see |
Grid generation
SECS.from_observations builds a grid automatically with
make_grid, which can also be called directly for more control.
|
Build a regular SECS grid covering an observation network. |
|
Copy a grid's latitude/longitude nodes onto a shell at another radius. |
Additional functions
The helper functions create the geometrical transforms going from a pole to observation point are described below.
|
Calculate the divergence free magnetic field transfer function. |
|
Calculate the curl free magnetic field transfer function. |
|
Calculate the divergence free current density transfer function. |
|
Calculate the curl free current density transfer function. |
|
Calculate the angular distance between a set of points. |
|
Calculate the bearing (direction) between a set of points. |