pysecs.KalmanSECS.fit_J#

KalmanSECS.fit_J(obs_loc: ndarray, obs_J: ndarray, times: ndarray, obs_std: ndarray | None = None) → KalmanSECS#

Run the filter (and smoother) over a time series of currents.

The current density counterpart of fit(); see SECS.fit_J() for the current observations.

Parameters:
  • obs_loc (ndarray (nobs, 3 [lat, lon, r])) – Current observation locations on a SEC shell, fixed over the time series.

  • obs_J (ndarray (ntimes, nobs, 2 [Jx, Jy] or 3 [Jx, Jy, Jz])) – Observed horizontal sheet current densities (A/m). Non-finite values are treated as missing data at that time step.

  • times (ndarray (ntimes,)) – Observation times, see fit().

  • obs_std (ndarray, same shape as obs_J, optional) – 1-sigma standard errors of the currents, see fit().

Returns:

This estimator, with the amplitudes stored in sec_amps.

Return type:

KalmanSECS