pyrfu.mms.feeps_avg_4sc module#

pyrfu.mms.feeps_avg_4sc.feeps_avg_4sc(b_list: Sequence[DataArray], flag: str = 'omni', combined_energies: list | None = None) DataArray[source]#

Average data from 4 spacecrafts while ignoring NaN values. Computes the input quantity at the center of mass of the MMS tetrahedron. When averaging, NaN values are ignored by counting the number of non-NaN values at each time step.

Parameters:
  • b_list (Sequence of DataArray or Dataset) – List of the time series of the quantity for each spacecraft.

  • flag (str, optional) – type of data to be averaged (omnidirectional or pitch-angle distribution). The default is “omni”.

  • combined_energies (list, optional) – Used only if flag is “omni”. List of energy channel indices from each spacecraft to be combined into a common energy channel. The default is None, which means that the initial channels from the omnidirectional data are used. This will likely result to averaging fluxes for much different energies.

Returns:

b_avg – Time series of the input quantity at the center of mass of the MMS tetrahedron.

Return type:

DataArray or Dataset

Raises:

TypeError – If b_list is not a list of DataArray or Dataset