pyrfu.pyrf.avg_4sc module#

pyrfu.pyrf.avg_4sc.avg_4sc(b_list)[source]#

Computes the input quantity at the center of mass of the MMS tetrahedron.

Parameters:

b_list (list of xarray.DataArray) – 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:

xarray.DataArray

Examples

>>> from pyrfu.mms import get_data
>>> from pyrfu.pyrf import avg_4sc

Time interval

>>> tint = ["2019-09-14T07:54:00.000", "2019-09-14T08:11:00.000"]

Spacecraft indices

>>> b_mms = [get_data("B_gse_fgm_srvy_l2", tint, i) for i in range(1, 5)]
>>> b_xyz = avg_4sc(b_mms)