pyrfu.pyrf.nanavg_4sc module#

pyrfu.pyrf.nanavg_4sc.nanavg_4sc(b_list: Sequence[DataArray]) 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.

Returns:

b_avg – Time series of the input quantity a the enter of mass of the MMS tetrahedron.

Return type:

DataArray or Dataset

Raises:

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