Average data
- pyspedas.avg_data(names, trange=[], res=None, width=None, newname=None, new_names=None, suffix=None, overwrite=False)
Get a new tplot variable with averaged data.
- Parameters:
names (
str/list
ofstr
) – List of pytplot names.trange (
list
offloat
, optional) – Start time, end time. If empty, the data start and end time will be used.res (
float
, optional) – Time resolution in seconds for averaging data. It can be less than 1 sec. Default is 60 sec.width (
int
, optional) – Number of values for the averaging window. If res is set, then width is ignored.newname (
str/list
ofstr
, optional) – List of new names for pytplot variables. If not given, then a suffix is applied.new_names (
str/list
ofstr
,optional (Deprecated)
) – List of new names for pytplot variables. If not given, then a suffix is applied.suffix (
str
, optional) – A suffix to apply. Default is ‘-avg’.overwrite (
bool
, optional) – Replace the existing tplot name. Default is False.
- Returns:
n_names – List of new pytplot names.
- Return type:
str/list
ofstr