pyrfu.pyrf.average_vdf module#

pyrfu.pyrf.average_vdf.average_vdf(vdf, n_pts, method: str = 'mean')[source]#

Time averages the velocity distribution functions over n_pts in time.

Parameters:
  • vdf (xarray.DataArray) – Time series of the velocity distribution function.

  • n_pts (int) – Number of points (samples) of the averaging window.

  • method ({'mean', 'sum'}, Optional) – Method for averaging. Use ‘sum’ for counts. Default is ‘mean’.

Returns:

vdf_avg – Time series of the time averaged velocity distribution function.

Return type:

xarray.DataArray